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

Method avcodecOpen2

YUViewLib/src/ffmpeg/FFmpegVersionHandler.cpp:471–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469 return ret;
470}
471int FFmpegVersionHandler::avcodecOpen2(AVCodecContextWrapper &decCtx,
472 AVCodecWrapper & codec,
473 AVDictionaryWrapper & dict)
474{
475 auto d = dict.getDictionary();
476 int ret = this->lib.avcodec.avcodec_open2(decCtx.getCodec(), codec.getAVCodec(), &d);
477 dict.setDictionary(d);
478 return ret;
479}
480
481AVFrameSideDataWrapper FFmpegVersionHandler::getSideData(AVFrameWrapper & frame,
482 AVFrameSideDataType type)

Callers 1

createDecoderMethod · 0.80

Calls 4

getDictionaryMethod · 0.80
getCodecMethod · 0.80
getAVCodecMethod · 0.80
setDictionaryMethod · 0.80

Tested by

no test coverage detected