| 1103 | } |
| 1104 | |
| 1105 | void |
| 1106 | ghb_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 | |
| 1133 | static gint |
| 1134 | find_opt_entry(const combo_opts_t *opts, const GhbValue *gval) |
no test coverage detected