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

Function ghb_vquality_range

gtk/src/hb-backend.c:1105–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103}
1104
1105void
1106ghb_vquality_range(
1107 signal_user_data_t *ud,
1108 float *min,
1109 float *max,
1110 float *step,
1111 float *page,
1112 gint *digits,
1113 int *direction)
1114{
1115 float min_step;
1116 gint vcodec;
1117 vcodec = ghb_settings_video_encoder_codec(ud->settings, "VideoEncoder");
1118
1119 *page = 10;
1120 *digits = 0;
1121 hb_video_quality_get_limits(vcodec, min, max, &min_step, direction);
1122 *step = ghb_settings_combo_double(ud->prefs, "VideoQualityGranularity");
1123
1124 if (*step < min_step)
1125 *step = min_step;
1126
1127 if ((int)(*step * 100) % 10 != 0)
1128 *digits = 2;
1129 else if ((int)(*step * 10) % 10 != 0)
1130 *digits = 1;
1131}
1132
1133static gint
1134find_opt_entry(const combo_opts_t *opts, const GhbValue *gval)

Callers 3

vcodec_changed_cbFunction · 0.85
set_widget_rangesFunction · 0.85

Tested by

no test coverage detected