MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / decode_init

Function decode_init

libavcodec/nuv.c:250–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static av_cold int decode_init(AVCodecContext *avctx) {
251 NuvContext *c = avctx->priv_data;
252 avctx->pix_fmt = PIX_FMT_YUV420P;
253 c->pic.data[0] = NULL;
254 c->decomp_buf = NULL;
255 c->quality = -1;
256 c->width = 0;
257 c->height = 0;
258 c->codec_frameheader = avctx->codec_tag == MKTAG('R', 'J', 'P', 'G');
259 if (avctx->extradata_size)
260 get_quant(avctx, c, avctx->extradata, avctx->extradata_size);
261 dsputil_init(&c->dsp, avctx);
262 if (!codec_reinit(avctx, avctx->width, avctx->height, -1))
263 return 1;
264 return 0;
265}
266
267static av_cold int decode_end(AVCodecContext *avctx) {
268 NuvContext *c = avctx->priv_data;

Callers

nothing calls this directly

Calls 3

get_quantFunction · 0.85
dsputil_initFunction · 0.85
codec_reinitFunction · 0.85

Tested by

no test coverage detected