MCPcopy Create free account
hub / github.com/MaartenBaert/ssr / ParseCodecOptionDouble

Function ParseCodecOptionDouble

src/AV/Output/BaseEncoder.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 return clamp(value_int, min, max) * multiply;
34}
35double 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
45BaseEncoder::BaseEncoder(Muxer* muxer, AVStream* stream, AVCodecContext* codec_context, AVCodec* codec, AVDictionary** options) {
46

Callers 2

PrepareStreamMethod · 0.85
PrepareStreamMethod · 0.85

Calls 2

LibavExceptionClass · 0.85
clampFunction · 0.85

Tested by

no test coverage detected