Lines Matching refs:avctx
37 AVCodecContext *avctx;
110 av_log(a->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", a->mb_x, a->mb_y);
149 if(!(a->avctx->flags&CODEC_FLAG_GRAY)){
155 static int decode_frame(AVCodecContext *avctx,
161 MDECContext * const a = avctx->priv_data;
167 ff_thread_release_buffer(avctx, p);
170 if(ff_thread_get_buffer(avctx, p) < 0){
171 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
214 static av_cold void mdec_common_init(AVCodecContext *avctx){
215 MDECContext * const a = avctx->priv_data;
217 dsputil_init(&a->dsp, avctx);
219 a->mb_width = (avctx->coded_width + 15) / 16;
220 a->mb_height = (avctx->coded_height + 15) / 16;
222 avctx->coded_frame= &a->picture;
223 a->avctx= avctx;
226 static av_cold int decode_init(AVCodecContext *avctx){
227 MDECContext * const a = avctx->priv_data;
230 mdec_common_init(avctx);
234 if( avctx->idct_algo == FF_IDCT_AUTO )
235 avctx->idct_algo = FF_IDCT_SIMPLE;
238 avctx->pix_fmt= PIX_FMT_YUVJ420P;
243 static av_cold int decode_init_thread_copy(AVCodecContext *avctx){
244 MDECContext * const a = avctx->priv_data;
247 avctx->coded_frame = p;
248 a->avctx= avctx;
255 static av_cold int decode_end(AVCodecContext *avctx){
256 MDECContext * const a = avctx->priv_data;
259 avctx->release_buffer(avctx, &a->picture);