MCPcopy Create free account
hub / github.com/IENT/YUView / setProfileLevel

Method setProfileLevel

YUViewLib/src/ffmpeg/AVCodecParametersWrapper.cpp:324–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324void AVCodecParametersWrapper::setProfileLevel(int profile, int level)
325{
326 if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 ||
327 this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60)
328 {
329 auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(this->param);
330 p->profile = profile;
331 p->level = level;
332 this->profile = profile;
333 this->level = level;
334 }
335}
336
337void AVCodecParametersWrapper::setSampleAspectRatio(int num, int den)
338{

Callers 1

decoderFFmpegMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected