• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:avctx

101 static av_cold int decode_init(AVCodecContext *avctx)
103 ProresContext *ctx = avctx->priv_data;
108 avctx->bits_per_raw_sample = PRORES_BITS_PER_SAMPLE;
111 avctx->coded_frame = &ctx->picture;
126 const int data_size, AVCodecContext *avctx)
133 av_log(avctx, AV_LOG_ERROR, "frame data too small\n");
139 av_log(avctx, AV_LOG_ERROR,
146 if (width != avctx->width || height != avctx->height) {
147 av_log(avctx, AV_LOG_ERROR,
149 avctx->width, avctx->height, width, height);
155 av_log(avctx, AV_LOG_ERROR,
165 avctx->pix_fmt = PIX_FMT_YUV422P10;
168 avctx->pix_fmt = PIX_FMT_YUV444P10;
171 av_log(avctx, AV_LOG_ERROR,
195 av_log_missing_feature(avctx, "alpha channel", 0);
202 av_log(avctx, AV_LOG_ERROR, "header data too small\n");
217 av_log(avctx, AV_LOG_ERROR, "header data too small\n");
234 const int data_size, AVCodecContext *avctx)
243 av_log(avctx, AV_LOG_ERROR, "picture header too small\n");
249 av_log(avctx, AV_LOG_ERROR, "picture data too small\n");
256 av_log(avctx, AV_LOG_ERROR,
265 ctx->num_x_mbs = (avctx->width + 15) >> 4;
266 ctx->num_y_mbs = (avctx->height +
276 av_log(avctx, AV_LOG_ERROR, "invalid number of slices\n");
289 av_log(avctx, AV_LOG_ERROR, "slice table too small\n");
304 av_log(avctx, AV_LOG_ERROR, "out of slice data\n");
504 static int decode_slice(AVCodecContext *avctx, void *tdata)
507 ProresContext *ctx = avctx->priv_data;
515 AVFrame *pic = avctx->coded_frame;
544 av_log(avctx, AV_LOG_ERROR, "slice data too small\n");
557 av_log(avctx, AV_LOG_ERROR, "invalid data size\n");
603 AVCodecContext *avctx)
627 return avctx->execute(avctx, decode_slice,
636 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
639 ProresContext *ctx = avctx->priv_data;
640 AVFrame *picture = avctx->coded_frame;
648 av_log(avctx, AV_LOG_ERROR, "invalid frame\n");
654 frame_hdr_size = decode_frame_header(ctx, buf, buf_size, avctx);
661 avctx->release_buffer(avctx, picture);
664 if (avctx->get_buffer(avctx, picture) < 0)
668 pic_data_size = decode_picture_header(ctx, buf, buf_size, avctx);
672 if (decode_picture(ctx, pic_num, avctx))
679 *(AVFrame*) data = *avctx->coded_frame;
685 static av_cold int decode_close(AVCodecContext *avctx)
687 ProresContext *ctx = avctx->priv_data;
690 avctx->release_buffer(avctx, &ctx->picture);