Lines Matching refs:avctx
32 AVCodecContext *avctx;
252 static int decode_frame(AVCodecContext *avctx,
257 QpegContext * const a = avctx->priv_data;
265 av_log(avctx, AV_LOG_ERROR, "Packet is too small\n");
274 if ((ret = ff_get_buffer(avctx, p, AV_GET_BUFFER_FLAG_REF)) < 0)
283 qpeg_decode_intra(a, outdata, p->linesize[0], avctx->width, avctx->height);
285 qpeg_decode_inter(a, outdata, p->linesize[0], avctx->width, avctx->height, delta, ctable, ref->data[0]);
303 static void decode_flush(AVCodecContext *avctx){
304 QpegContext * const a = avctx->priv_data;
308 pal_size = FFMIN(1024U, avctx->extradata_size);
309 pal_src = avctx->extradata + avctx->extradata_size - pal_size;
315 static av_cold int decode_end(AVCodecContext *avctx)
317 QpegContext * const a = avctx->priv_data;
325 static av_cold int decode_init(AVCodecContext *avctx){
326 QpegContext * const a = avctx->priv_data;
328 a->avctx = avctx;
329 avctx->pix_fmt= AV_PIX_FMT_PAL8;
331 decode_flush(avctx);
336 decode_end(avctx);