Lines Matching refs:avctx
50 AVCodecContext *avctx;
205 if ((frame_width == s->avctx->width && frame_height == s->avctx->height) &&
215 frame_x >= s->avctx->width ||
216 frame_width > s->avctx->width ||
217 frame_x + frame_width > s->avctx->width) {
218 av_log(s->avctx, AV_LOG_ERROR,
224 frame_y >= s->avctx->height ||
225 frame_height > s->avctx->height ||
226 frame_y + frame_height > s->avctx->height) {
227 av_log(s->avctx, AV_LOG_ERROR,
236 (frame_x || frame_y || (frame_width != s->avctx->width) ||
237 (frame_height != s->avctx->height))) {
240 s->avctx->height * frame->linesize[0]);
257 av_log(s->avctx, AV_LOG_ERROR, "Incomplete palette\n");
272 av_log(s->avctx, AV_LOG_ERROR,
308 av_log(s->avctx, AV_LOG_ERROR,
354 av_log(s->avctx, AV_LOG_ERROR,
367 static av_cold int vmdvideo_decode_end(AVCodecContext *avctx)
369 VmdVideoContext *s = avctx->priv_data;
378 static av_cold int vmdvideo_decode_init(AVCodecContext *avctx)
380 VmdVideoContext *s = avctx->priv_data;
388 s->avctx = avctx;
389 avctx->pix_fmt = AV_PIX_FMT_PAL8;
392 if (s->avctx->extradata_size != VMD_HEADER_SIZE) {
393 av_log(s->avctx, AV_LOG_ERROR, "expected extradata size of %d\n",
397 vmd_header = (unsigned char *)avctx->extradata;
419 vmdvideo_decode_end(avctx);
426 static int vmdvideo_decode_frame(AVCodecContext *avctx,
432 VmdVideoContext *s = avctx->priv_data;
442 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)