Lines Matching defs:avctx
51 AVCodecContext *avctx;
206 if ((frame_width == s->avctx->width && frame_height == s->avctx->height) &&
216 frame_x >= s->avctx->width ||
217 frame_width > s->avctx->width ||
218 frame_x + frame_width > s->avctx->width) {
219 av_log(s->avctx, AV_LOG_ERROR,
225 frame_y >= s->avctx->height ||
226 frame_height > s->avctx->height ||
227 frame_y + frame_height > s->avctx->height) {
228 av_log(s->avctx, AV_LOG_ERROR,
237 (frame_x || frame_y || (frame_width != s->avctx->width) ||
238 (frame_height != s->avctx->height))) {
241 s->avctx->height * frame->linesize[0]);
258 av_log(s->avctx, AV_LOG_ERROR, "Incomplete palette\n");
273 av_log(s->avctx, AV_LOG_ERROR,
315 av_log(s->avctx, AV_LOG_ERROR,
363 av_log(s->avctx, AV_LOG_ERROR,
376 static av_cold int vmdvideo_decode_end(AVCodecContext *avctx)
378 VmdVideoContext *s = avctx->priv_data;
387 static av_cold int vmdvideo_decode_init(AVCodecContext *avctx)
389 VmdVideoContext *s = avctx->priv_data;
397 s->avctx = avctx;
398 avctx->pix_fmt = AV_PIX_FMT_PAL8;
401 if (s->avctx->extradata_size != VMD_HEADER_SIZE) {
402 av_log(s->avctx, AV_LOG_ERROR, "expected extradata size of %d\n",
406 vmd_header = (unsigned char *)avctx->extradata;
433 static int vmdvideo_decode_frame(AVCodecContext *avctx, AVFrame *frame,
438 VmdVideoContext *s = avctx->priv_data;
447 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)