Lines Matching defs:avctx
237 static av_cold int dvvideo_decode_init(AVCodecContext *avctx)
240 DVVideoContext *s = avctx->priv_data;
243 ff_idctdsp_init(&s->idsp, avctx);
248 if (avctx->lowres){
261 return ff_dvvideo_init(avctx);
379 static int dv_decode_video_segment(AVCodecContext *avctx, void *arg)
381 DVVideoContext *s = avctx->priv_data;
396 const int log2_blocksize = 3-s->avctx->lowres;
418 if (avctx->error_concealment) {
463 ff_dlog(avctx, "MB block: %d, %d ", mb_index, j);
481 ff_dlog(avctx, "***pass 2 size=%d MB#=%d\n", put_bits_count(&pb), mb_index);
504 ff_dlog(avctx, "***pass 3 size=%d\n", put_bits_count(&vs_pb));
513 ff_dlog(avctx, "start %d:%d\n", mb_index, j);
518 av_log(avctx, AV_LOG_ERROR,
527 av_log(avctx, AV_LOG_ERROR, "Concealing bitstream errors\n");
610 static int dvvideo_decode_frame(AVCodecContext *avctx, AVFrame *frame,
615 DVVideoContext *s = avctx->priv_data;
620 sys = ff_dv_frame_profile(avctx, s->sys, buf, buf_size);
622 av_log(avctx, AV_LOG_ERROR, "could not find dv frame profile\n");
629 av_log(avctx, AV_LOG_ERROR, "Error initializing the work tables.\n");
639 avctx->pix_fmt = s->sys->pix_fmt;
640 avctx->framerate = av_inv_q(s->sys->time_base);
642 ret = ff_set_dimensions(avctx, s->sys->width, s->sys->height);
652 ff_set_sar(avctx, s->sys->sar[is16_9]);
655 if ((ret = ff_thread_get_buffer(avctx, frame, 0)) < 0)
660 if (avctx->height == 720) {
663 } else if (avctx->height == 1080) {
673 avctx->execute(avctx, dv_decode_video_segment, s->work_chunks, NULL,