Lines Matching defs:avctx
48 static int decode_mvdv(MidiVidContext *s, AVCodecContext *avctx, AVFrame *frame)
65 nb_blocks = (avctx->width / 2) * (avctx->height / 2);
70 skip_linesize = avctx->width >> 1;
72 mask_size = (FFALIGN(avctx->width, 32) >> 2) * (avctx->height >> 2) >> 3;
73 padding = (FFALIGN(avctx->width, 32) - avctx->width) >> 2;
84 for (int y = 0; y < avctx->height >> 2; y++) {
85 for (int x = 0; x < avctx->width >> 2; x++) {
110 for (int y = avctx->height - 2; y >= 0; y -= 2) {
115 for (int x = 0; x < avctx->width; x += 2) {
191 static int decode_frame(AVCodecContext *avctx, AVFrame *rframe,
194 MidiVidContext *s = avctx->priv_data;
217 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
220 ret = decode_mvdv(s, avctx, frame);
236 static av_cold int decode_init(AVCodecContext *avctx)
238 MidiVidContext *s = avctx->priv_data;
239 int ret = av_image_check_size(avctx->width, avctx->height, 0, avctx);
241 if (avctx->width & 3 || avctx->height & 3)
245 av_log(avctx, AV_LOG_ERROR, "Invalid image size %dx%d.\n",
246 avctx->width, avctx->height);
250 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
255 s->skip = av_calloc(avctx->width >> 1, avctx->height >> 1);
262 static void decode_flush(AVCodecContext *avctx)
264 MidiVidContext *s = avctx->priv_data;
269 static av_cold int decode_close(AVCodecContext *avctx)
271 MidiVidContext *s = avctx->priv_data;