Lines Matching defs:avctx
32 static int zerocodec_decode_frame(AVCodecContext *avctx, AVFrame *pic,
35 ZeroCodecContext *zc = avctx->priv_data;
47 av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
51 prev += (avctx->height - 1) * prev_pic->linesize[0];
59 av_log(avctx, AV_LOG_ERROR, "Could not reset inflate: %d.\n", zret);
63 if ((ret = ff_get_buffer(avctx, pic, AV_GET_BUFFER_FLAG_REF)) < 0)
69 dst = pic->data[0] + (avctx->height - 1) * pic->linesize[0];
76 for (i = 0; i < avctx->height; i++) {
78 zstream->avail_out = avctx->width << 1;
82 av_log(avctx, AV_LOG_ERROR,
88 for (j = 0; j < avctx->width << 1; j++)
104 static av_cold int zerocodec_decode_close(AVCodecContext *avctx)
106 ZeroCodecContext *zc = avctx->priv_data;
115 static av_cold int zerocodec_decode_init(AVCodecContext *avctx)
117 ZeroCodecContext *zc = avctx->priv_data;
119 avctx->pix_fmt = AV_PIX_FMT_UYVY422;
120 avctx->bits_per_raw_sample = 8;
126 return ff_inflate_init(&zc->zstream, avctx);
129 static void zerocodec_decode_flush(AVCodecContext *avctx)
131 ZeroCodecContext *zc = avctx->priv_data;