Lines Matching refs:avctx
39 AVCodecContext *avctx;
114 av_log(a->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", a->mb_x, a->mb_y);
157 if (!(a->avctx->flags & CODEC_FLAG_GRAY)) {
163 static int decode_frame(AVCodecContext *avctx,
167 MDECContext * const a = avctx->priv_data;
173 if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0)
207 static av_cold int decode_init(AVCodecContext *avctx)
209 MDECContext * const a = avctx->priv_data;
211 a->mb_width = (avctx->coded_width + 15) / 16;
212 a->mb_height = (avctx->coded_height + 15) / 16;
214 a->avctx = avctx;
216 ff_blockdsp_init(&a->bdsp, avctx);
218 ff_idctdsp_init(&a->idsp, avctx);
223 if (avctx->idct_algo == FF_IDCT_AUTO)
224 avctx->idct_algo = FF_IDCT_SIMPLE;
225 avctx->pix_fmt = AV_PIX_FMT_YUVJ420P;
226 avctx->color_range = AVCOL_RANGE_JPEG;
231 static av_cold int decode_init_thread_copy(AVCodecContext *avctx)
233 MDECContext * const a = avctx->priv_data;
235 a->avctx = avctx;
240 static av_cold int decode_end(AVCodecContext *avctx)
242 MDECContext * const a = avctx->priv_data;