Lines Matching defs:avctx
55 AVCodecContext *avctx;
492 static int speedhq_decode_frame(AVCodecContext *avctx, AVFrame *frame,
495 SHQContext * const s = avctx->priv_data;
502 if (buf_size < 4 || avctx->width < 8 || avctx->width % 8 != 0)
504 if (buf_size < avctx->width*avctx->height / 64 / 4)
519 avctx->coded_width = FFALIGN(avctx->width, 16);
520 avctx->coded_height = FFALIGN(avctx->height, 16);
522 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
659 static av_cold int speedhq_decode_init(AVCodecContext *avctx)
663 SHQContext * const s = avctx->priv_data;
665 s->avctx = avctx;
671 ff_blockdsp_init(&s->bdsp, avctx);
672 ff_idctdsp_init(&s->idsp, avctx);
675 switch (avctx->codec_tag) {
679 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
684 avctx->pix_fmt = AV_PIX_FMT_YUVA420P;
689 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
694 avctx->pix_fmt = AV_PIX_FMT_YUVA422P;
699 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
704 avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
709 avctx->pix_fmt = AV_PIX_FMT_YUVA422P;
714 avctx->pix_fmt = AV_PIX_FMT_YUVA444P;
717 av_log(avctx, AV_LOG_ERROR, "Unknown NewTek SpeedHQ FOURCC provided (%08X)\n",
718 avctx->codec_tag);
723 avctx->colorspace = AVCOL_SPC_BT470BG;
724 avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;