MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_update_multipass

Function ghb_update_multipass

gtk/src/videohandler.c:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void
68ghb_update_multipass(signal_user_data_t *ud)
69{
70 GtkWidget *multi_pass = ghb_builder_widget("VideoMultiPassBox");
71 GtkWidget *turbo_multi_pass = ghb_builder_widget("VideoTurboMultiPass");
72 int encoder = ghb_get_video_encoder(ud->settings);
73
74 gboolean constant_quality = ghb_dict_get_bool(ud->settings, "vquality_type_constant");
75 gboolean supports_multi_pass = hb_video_multipass_is_supported(encoder, constant_quality);
76 gboolean turbo_supported = (encoder & HB_VCODEC_X264_MASK) || (encoder & HB_VCODEC_X265_MASK);
77
78 gtk_widget_set_sensitive(multi_pass, supports_multi_pass);
79 gtk_widget_set_visible(turbo_multi_pass, turbo_supported);
80}
81
82G_MODULE_EXPORT void
83vcodec_changed_cb (GtkWidget *widget, gpointer data)

Callers 2

vcodec_changed_cbFunction · 0.85
vquality_type_changed_cbFunction · 0.85

Calls 4

ghb_builder_widgetFunction · 0.85
ghb_get_video_encoderFunction · 0.85
ghb_dict_get_boolFunction · 0.85

Tested by

no test coverage detected