Lines Matching defs:avctx
301 if (s->avctx->codec->id == AV_CODEC_ID_VP5)
325 if (s->avctx->codec->id == AV_CODEC_ID_VP5) {
350 if (s->avctx->skip_loop_filter >= AVDISCARD_ALL ||
351 (s->avctx->skip_loop_filter >= AVDISCARD_NONKEY
525 AVCodecContext *avctx = s->avctx;
529 s->plane_width[0] = s->plane_width[3] = avctx->coded_width;
530 s->plane_width[1] = s->plane_width[2] = avctx->coded_width/2;
531 s->plane_height[0] = s->plane_height[3] = avctx->coded_height;
532 s->plane_height[1] = s->plane_height[2] = avctx->coded_height/2;
539 s->mb_width = (avctx->coded_width +15) / 16;
540 s->mb_height = (avctx->coded_height+15) / 16;
543 ff_set_dimensions(avctx, 0, 0);
544 av_log(avctx, AV_LOG_ERROR, "picture too big\n");
566 static int ff_vp56_decode_mbs(AVCodecContext *avctx, void *, int, int);
568 int ff_vp56_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
572 VP56Context *s = avctx->priv_data;
600 ret = ff_get_buffer(avctx, p, AV_GET_BUFFER_FLAG_REF);
603 ff_set_dimensions(avctx, 0, 0);
607 if (avctx->pix_fmt == AV_PIX_FMT_YUVA420P) {
612 ff_set_dimensions(avctx, 0, 0);
624 if (avctx->pix_fmt == AV_PIX_FMT_YUVA420P) {
625 int bak_w = avctx->width;
626 int bak_h = avctx->height;
627 int bak_cw = avctx->coded_width;
628 int bak_ch = avctx->coded_height;
635 av_log(avctx, AV_LOG_ERROR, "Alpha reconfiguration\n");
636 avctx->width = bak_w;
637 avctx->height = bak_h;
638 avctx->coded_width = bak_cw;
639 avctx->coded_height = bak_ch;
647 avctx->execute2(avctx, ff_vp56_decode_mbs, 0, 0, (avctx->pix_fmt == AV_PIX_FMT_YUVA420P) + 1);
659 static int ff_vp56_decode_mbs(AVCodecContext *avctx, void *data,
662 VP56Context *s0 = avctx->priv_data;
739 if (!s->have_undamaged_frame || !avctx->error_concealment) {
776 av_cold int ff_vp56_init_context(AVCodecContext *avctx, VP56Context *s,
781 s->avctx = avctx;
782 avctx->pix_fmt = has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P;
783 if (avctx->skip_alpha) avctx->pix_fmt = AV_PIX_FMT_YUV420P;
786 ff_hpeldsp_init(&s->hdsp, avctx->flags);
788 ff_vp3dsp_init(&s->vp3dsp, avctx->flags);