Lines Matching defs:avctx
34 static av_cold int decode_init(AVCodecContext *avctx)
36 if (avctx->width & 1) {
37 av_log(avctx, AV_LOG_ERROR, "frwu needs even width\n");
40 avctx->pix_fmt = AV_PIX_FMT_UYVY422;
45 static int decode_frame(AVCodecContext *avctx, AVFrame *pic,
48 FRWUContext *s = avctx->priv_data;
53 if (avpkt->size < avctx->width * 2 * avctx->height + 4 + 2*8) {
54 av_log(avctx, AV_LOG_ERROR, "Packet is too small.\n");
58 av_log(avctx, AV_LOG_ERROR, "incorrect marker\n");
62 if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
70 int field_h = (avctx->height + !field) >> 1;
71 int field_size, min_field_size = avctx->width * 2 * field_h;
78 av_log(avctx, AV_LOG_ERROR, "Field size %i is too small (required %i)\n", field_size, min_field_size);
82 av_log(avctx, AV_LOG_ERROR, "Packet is too small, need %i, have %i\n", field_size, (int)(buf_end - buf));
93 memcpy(dst, buf, avctx->width * 2);
94 buf += avctx->width * 2;