| 65 | } |
| 66 | |
| 67 | void |
| 68 | ghb_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 | |
| 82 | G_MODULE_EXPORT void |
| 83 | vcodec_changed_cb (GtkWidget *widget, gpointer data) |
no test coverage detected