Lines Matching defs:avctx
50 static av_cold int decode_end(AVCodecContext *avctx)
52 C93DecoderContext * const c93 = avctx->priv_data;
60 static av_cold int decode_init(AVCodecContext *avctx)
62 C93DecoderContext *s = avctx->priv_data;
63 avctx->pix_fmt = AV_PIX_FMT_PAL8;
73 static inline int copy_block(AVCodecContext *avctx, uint8_t *to,
88 av_log(avctx, AV_LOG_ERROR, "invalid offset %d during C93 decoding\n",
123 static int decode_frame(AVCodecContext *avctx, AVFrame *rframe,
128 C93DecoderContext * const c93 = avctx->priv_data;
135 if ((ret = ff_set_dimensions(avctx, WIDTH, HEIGHT)) < 0)
140 if ((ret = ff_reget_buffer(avctx, newpic, 0)) < 0)
170 if ((ret = copy_block(avctx, out, copy_from, offset, 8, stride)) < 0)
184 avpriv_request_sample(avctx, "block overlap %d %d %d %d", from_x, x+i, from_y, y+j);
187 if ((ret = copy_block(avctx, &out[j*stride+i],
234 av_log(avctx, AV_LOG_ERROR, "unexpected type %x at %dx%d\n",