| 33 | return clamp(value_int, min, max) * multiply; |
| 34 | } |
| 35 | double ParseCodecOptionDouble(const QString& key, const QString& value, double min, double max, double multiply) { |
| 36 | bool parsed; |
| 37 | double value_double = value.toDouble(&parsed); |
| 38 | if(!parsed) { |
| 39 | Logger::LogError("[ParseCodecOptionDouble] " + Logger::tr("Error: Option '%1' could not be parsed!").arg(key)); |
| 40 | throw LibavException(); |
| 41 | } |
| 42 | return clamp(value_double, min, max) * multiply; |
| 43 | } |
| 44 | |
| 45 | BaseEncoder::BaseEncoder(Muxer* muxer, AVStream* stream, AVCodecContext* codec_context, AVCodec* codec, AVDictionary** options) { |
| 46 |
no test coverage detected