| 248 | } |
| 249 | |
| 250 | static 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 | |
| 267 | static av_cold int decode_end(AVCodecContext *avctx) { |
| 268 | NuvContext *c = avctx->priv_data; |
nothing calls this directly
no test coverage detected