Lines Matching defs:avctx
40 static av_cold int mvc_decode_init(AVCodecContext *avctx)
42 MvcContext *s = avctx->priv_data;
43 int width = avctx->width;
44 int height = avctx->height;
47 if (avctx->codec_id == AV_CODEC_ID_MVC1) {
53 if ((ret = ff_set_dimensions(avctx, width, height)) < 0)
56 avctx->pix_fmt = (avctx->codec_id == AV_CODEC_ID_MVC1) ? AV_PIX_FMT_RGB555
58 s->vflip = avctx->extradata_size >= 9 &&
59 !memcmp(avctx->extradata + avctx->extradata_size - 9, "BottomUp", 9);
63 static int decode_mvc1(AVCodecContext *avctx, GetByteContext *gb,
80 av_log(avctx, AV_LOG_WARNING, "buffer overflow\n");
136 static int decode_mvc2(AVCodecContext *avctx, GetByteContext *gb,
150 av_log(avctx, AV_LOG_WARNING, "dimension mismatch\n");
153 avpriv_request_sample(avctx, "bitmap feature");
228 static int mvc_decode_frame(AVCodecContext *avctx, AVFrame *frame,
231 MvcContext *s = avctx->priv_data;
235 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
239 if (avctx->codec_id == AV_CODEC_ID_MVC1)
240 ret = decode_mvc1(avctx, &gb, frame->data[0],
241 avctx->width, avctx->height, frame->linesize[0]);
243 ret = decode_mvc2(avctx, &gb, frame->data[0],
244 avctx->width, avctx->height, frame->linesize[0],