Lines Matching defs:avctx
44 AVCodecContext *avctx;
61 static av_cold int tqi_decode_init(AVCodecContext *avctx)
63 TqiContext *t = avctx->priv_data;
65 ff_blockdsp_init(&t->bdsp, avctx);
67 ff_idctdsp_init(&t->idsp, avctx);
71 avctx->framerate = (AVRational){ 15, 1 };
72 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
88 av_log(t->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n",
97 static inline void tqi_idct_put(AVCodecContext *avctx, AVFrame *frame,
100 TqiContext *t = avctx->priv_data;
111 if (!(avctx->flags & AV_CODEC_FLAG_GRAY)) {
127 static int tqi_decode_frame(AVCodecContext *avctx, AVFrame *frame,
133 TqiContext *t = avctx->priv_data;
139 t->avctx = avctx;
146 ret = ff_set_dimensions(avctx, w, h);
150 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
168 tqi_idct_put(avctx, frame, t->block);
177 static av_cold int tqi_decode_end(AVCodecContext *avctx)
179 TqiContext *t = avctx->priv_data;