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

Function resolution_limit_changed_cb

gtk/src/callbacks.c:3734–3758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3732}
3733
3734G_MODULE_EXPORT void
3735resolution_limit_changed_cb (GtkWidget *widget, gpointer data)
3736{
3737 ghb_log_func();
3738 signal_user_data_t *ud = ghb_ud();
3739
3740 ghb_widget_to_setting(ud->settings, widget);
3741 ghb_clear_presets_selection(ud);
3742 ghb_live_reset(ud);
3743
3744 const gchar * resolution_limit;
3745 int width, height;
3746
3747 resolution_limit = ghb_dict_get_string(ud->settings, "resolution_limit");
3748 ghb_lookup_resolution_limit_dimensions(resolution_limit, &width, &height);
3749 if (width >= 0 && height >= 0)
3750 {
3751 ghb_dict_set_int(ud->settings, "PictureWidth", width);
3752 ghb_dict_set_int(ud->settings, "PictureHeight", height);
3753 }
3754
3755 ghb_set_scale(ud, GHB_PIC_KEEP_HEIGHT);
3756
3757 update_preview = TRUE;
3758}
3759
3760G_MODULE_EXPORT void
3761generic_entry_changed_cb (GtkEntry *entry, gpointer data)

Callers

nothing calls this directly

Calls 8

ghb_udFunction · 0.85
ghb_widget_to_settingFunction · 0.85
ghb_live_resetFunction · 0.85
ghb_dict_get_stringFunction · 0.85
ghb_dict_set_intFunction · 0.85
ghb_set_scaleFunction · 0.85

Tested by

no test coverage detected