• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:avctx

35 static av_cold int utvideo_decode_init(AVCodecContext *avctx)
37 UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
42 if (avctx->extradata_size != 4*4) {
43 av_log(avctx, AV_LOG_ERROR, "Extradata size mismatch.\n");
48 info.version = AV_RL32(avctx->extradata);
49 info.original_format = AV_RL32(avctx->extradata + 4);
50 info.frameinfo_size = AV_RL32(avctx->extradata + 8);
51 info.flags = AV_RL32(avctx->extradata + 12);
54 switch (avctx->codec_tag) {
57 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
58 avctx->colorspace = AVCOL_SPC_BT709;
62 avctx->pix_fmt = AV_PIX_FMT_YUYV422;
63 avctx->colorspace = AVCOL_SPC_BT709;
68 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
72 avctx->pix_fmt = AV_PIX_FMT_YUYV422;
76 avctx->pix_fmt = AV_PIX_FMT_BGR24;
80 avctx->pix_fmt = AV_PIX_FMT_RGB32;
84 av_log(avctx, AV_LOG_ERROR,
85 "Not a Ut Video FOURCC: %X\n", avctx->codec_tag);
90 utv->buf_size = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height);
94 av_log(avctx, AV_LOG_ERROR, "Unable to allocate output buffer.\n");
99 avctx->coded_frame = av_frame_alloc();
102 avctx->bits_per_raw_sample = 8;
105 avctx->coded_frame->interlaced_frame = info.flags & 0x800 ? 1 : 0;
108 avctx->coded_frame->top_field_first = 1;
114 utv->codec = CCodec::CreateInstance(UNFCC(avctx->codec_tag), "libavcodec");
117 begin_ret = utv->codec->DecodeBegin(format, avctx->width, avctx->height,
122 av_log(avctx, AV_LOG_ERROR,
130 static int utvideo_decode_frame(AVCodecContext *avctx, void *data,
133 UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
134 AVFrame *pic = avctx->coded_frame;
135 int w = avctx->width, h = avctx->height;
146 switch (avctx->pix_fmt) {
161 pic->linesize[0] = -1 * w * (avctx->pix_fmt == AV_PIX_FMT_BGR24 ? 3 : 4);
172 static av_cold int utvideo_decode_close(AVCodecContext *avctx)
174 UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
177 av_frame_free(&avctx->coded_frame);