Lines Matching defs:avctx
44 AVCodecContext *avctx;
69 av_log(c->avctx, AV_LOG_ERROR, "Palette change runs beyond entry 256\n");
73 av_log(c->avctx, AV_LOG_ERROR, "Palette data runs beyond chunk size\n");
98 const int width = c->avctx->width;
100 uint8_t *pend = c->prev_frame + width*c->avctx->height;
107 blocks = (c->avctx->width >> 2) * (c->avctx->height >> 2);
112 av_log(c->avctx, AV_LOG_ERROR, "Insufficient data\n");
129 av_log(c->avctx, AV_LOG_ERROR, "Insufficient data\n");
174 av_log(c->avctx, AV_LOG_ERROR, "Invalid opcode seen @%d\n", blk);
192 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
195 VBDecContext * const c = avctx->priv_data;
207 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
215 if (FFABS(j) > avctx->height) {
216 av_log(avctx, AV_LOG_ERROR, "GMV out of range\n");
219 offset = i + j * avctx->width;
224 av_log(avctx, AV_LOG_ERROR, "Frame size invalid\n");
241 for (i = 0; i < avctx->height; i++) {
242 memcpy(outptr, srcptr, avctx->width);
243 srcptr += avctx->width;
255 static av_cold int decode_init(AVCodecContext *avctx)
257 VBDecContext * const c = avctx->priv_data;
259 c->avctx = avctx;
260 avctx->pix_fmt = AV_PIX_FMT_PAL8;
262 c->frame = av_mallocz(avctx->width * avctx->height);
263 c->prev_frame = av_mallocz(avctx->width * avctx->height);
271 static av_cold int decode_end(AVCodecContext *avctx)
273 VBDecContext *c = avctx->priv_data;