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

Method setAVPixelFormat

YUViewLib/src/ffmpeg/AVCodecParametersWrapper.cpp:313–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void AVCodecParametersWrapper::setAVPixelFormat(AVPixelFormat format)
314{
315 if (this->libVer.avformat.major == 57 || this->libVer.avformat.major == 58 ||
316 this->libVer.avformat.major == 59 || this->libVer.avformat.major == 60)
317 {
318 auto p = reinterpret_cast<AVCodecParameters_57_58_59_60 *>(this->param);
319 p->format = format;
320 this->format = format;
321 }
322}
323
324void AVCodecParametersWrapper::setProfileLevel(int profile, int level)
325{

Callers 1

decoderFFmpegMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected