| 87 | } |
| 88 | |
| 89 | static gdouble get_quality(int codec, gdouble quality) |
| 90 | { |
| 91 | float low, high, gran; |
| 92 | int dir; |
| 93 | hb_audio_quality_get_limits(codec, &low, &high, &gran, &dir); |
| 94 | if (dir) |
| 95 | { |
| 96 | // Quality values are inverted |
| 97 | quality = high - quality + low; |
| 98 | } |
| 99 | return quality; |
| 100 | } |
| 101 | |
| 102 | static gdouble get_ui_quality(GhbValue *settings) |
| 103 | { |
no test coverage detected