• 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

86 static int get_quant(AVCodecContext *avctx, NuvContext *c, const uint8_t *buf,
91 av_log(avctx, AV_LOG_ERROR, "insufficient rtjpeg quant data\n");
114 static int codec_reinit(AVCodecContext *avctx, int width, int height,
117 NuvContext *c = avctx->priv_data;
131 if ((ret = av_image_check_size(height, width, 0, avctx)) < 0)
133 avctx->width = c->width = width;
134 avctx->height = c->height = height;
138 av_log(avctx, AV_LOG_ERROR,
151 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
156 NuvContext *c = avctx->priv_data;
161 int result, init_frame = !avctx->frame_number;
172 av_log(avctx, AV_LOG_ERROR, "coded frame too small\n");
182 ret = get_quant(avctx, c, buf, buf_size);
190 av_log(avctx, AV_LOG_ERROR, "not a nuv video frame\n");
214 av_log(avctx, AV_LOG_ERROR, "error during lzo decompression\n");
224 av_log(avctx, AV_LOG_ERROR, "Too small NUV video frame\n");
231 av_log(avctx, AV_LOG_ERROR, "Unknown secondary frame header (wrong codec_tag?)\n");
237 if ((result = codec_reinit(avctx, w, h, q)) < 0)
254 if ((result = ff_reget_buffer(avctx, c->pic)) < 0)
257 memset(c->pic->data[0], 0, avctx->height * c->pic->linesize[0]);
258 memset(c->pic->data[1], 0x80, avctx->height * c->pic->linesize[1] / 2);
259 memset(c->pic->data[2], 0x80, avctx->height * c->pic->linesize[2] / 2);
270 av_log(avctx, AV_LOG_ERROR, "uncompressed frame too short\n");
292 av_log(avctx, AV_LOG_ERROR, "unknown compression\n");
303 static av_cold int decode_init(AVCodecContext *avctx)
305 NuvContext *c = avctx->priv_data;
312 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
318 c->codec_frameheader = avctx->codec_tag == MKTAG('R', 'J', 'P', 'G');
320 if (avctx->extradata_size)
321 get_quant(avctx, c, avctx->extradata, avctx->extradata_size);
323 ff_rtjpeg_init(&c->rtj, avctx);
325 if ((ret = codec_reinit(avctx, avctx->width, avctx->height, -1)) < 0)
331 static av_cold int decode_end(AVCodecContext *avctx)
333 NuvContext *c = avctx->priv_data;