• 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

136     AVCodecContext *avctx;
351 uint16_t *end = start + stride * (f->avctx->height - h + 1) - (1 << log2w);
374 av_log(f->avctx, AV_LOG_ERROR, "wordstream overread\n");
388 av_log(f->avctx, AV_LOG_ERROR, "bytestream overread\n");
399 av_log(f->avctx, AV_LOG_ERROR, "wordstream overread\n");
405 av_log(f->avctx, AV_LOG_ERROR, "wordstream overread\n");
414 av_log(f->avctx, AV_LOG_ERROR, "mv out of pic\n");
426 const int width = f->avctx->width;
427 const int height = f->avctx->height;
454 av_log(f->avctx, AV_LOG_ERROR, "lengths %d %d %d %d\n", bitstream_size, bytestream_size, wordstream_size,
496 av_log(f->avctx, AV_LOG_ERROR, "%d bits left before decode_i_block()\n", get_bits_left(&f->gb));
503 av_log(f->avctx, AV_LOG_ERROR, "error dc run != 0\n");
526 av_log(f->avctx, AV_LOG_ERROR, "0 coeff\n");
531 av_log(f->avctx, AV_LOG_ERROR, "run %d oveflow\n", i);
549 int stride = f->avctx->width;
558 if (!(f->avctx->flags & CODEC_FLAG_GRAY)) {
628 av_log(f->avctx, AV_LOG_ERROR, "invalid data in read_huffman_tables\n");
646 av_log(f->avctx, AV_LOG_ERROR, "ptr overflow in read_huffman_tables\n");
688 av_log(f->avctx, AV_LOG_ERROR,
714 const int width = f->avctx->width;
715 const int height = f->avctx->height;
722 av_log(f->avctx, AV_LOG_ERROR, "packet size too small\n");
737 av_log(f->avctx, AV_LOG_ERROR, "unk bit 1\n");
739 av_log(f->avctx, AV_LOG_ERROR, "unk bit 2\n");
762 const int width = f->avctx->width;
763 const int height = f->avctx->height;
772 av_log(f->avctx, AV_LOG_ERROR, "packet size too small\n");
781 av_log(f->avctx, AV_LOG_ERROR, "size mismatch %d %d %d\n",
788 av_log(f->avctx, AV_LOG_ERROR, "Error reading Huffman tables.\n");
818 av_log(f->avctx, AV_LOG_ERROR, "end mismatch\n");
823 static int decode_frame(AVCodecContext *avctx, void *data,
828 FourXContext *const f = avctx->priv_data;
835 av_assert0(avctx->width % 16 == 0 && avctx->height % 16 == 0);
838 av_log(f->avctx, AV_LOG_ERROR, "size mismatch %d %"PRIu32"\n",
852 av_log(f->avctx, AV_LOG_ERROR, "cfrm in version %d\n", f->version);
860 av_log(f->avctx, AV_LOG_ERROR, "sizes invalid\n");
865 if (f->cfrm[i].id && f->cfrm[i].id < avctx->frame_number)
866 av_log(f->avctx, AV_LOG_ERROR, "lost c frame %d\n",
889 av_log(f->avctx, AV_LOG_ERROR, "realloc failure\n");
900 if (id != avctx->frame_number)
901 av_log(f->avctx, AV_LOG_ERROR, "cframe id mismatch %d %d\n",
902 id, avctx->frame_number);
916 if ((ret = ff_get_buffer(avctx, picture, 0)) < 0)
922 av_log(f->avctx, AV_LOG_ERROR, "decode i2 frame failed\n");
928 av_log(f->avctx, AV_LOG_ERROR, "decode i frame failed\n");
934 av_log(f->avctx, AV_LOG_ERROR, "decode p frame failed\n");
938 av_log(avctx, AV_LOG_ERROR, "ignoring snd_ chunk length:%d\n",
941 av_log(avctx, AV_LOG_ERROR, "ignoring unknown chunk length:%d\n",
948 (const uint8_t*)f->frame_buffer, avctx->width * 2,
949 avctx->width * 2, avctx->height);
959 static av_cold int decode_end(AVCodecContext *avctx)
961 FourXContext * const f = avctx->priv_data;
977 static av_cold int decode_init(AVCodecContext *avctx)
979 FourXContext * const f = avctx->priv_data;
982 if (avctx->extradata_size != 4 || !avctx->extradata) {
983 av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n");
986 if((avctx->width % 16) || (avctx->height % 16)) {
987 av_log(avctx, AV_LOG_ERROR, "unsupported width/height\n");
991 ret = av_image_check_size(avctx->width, avctx->height, 0, avctx);
995 f->frame_buffer = av_mallocz(avctx->width * avctx->height * 2);
996 f->last_frame_buffer = av_mallocz(avctx->width * avctx->height * 2);
998 decode_end(avctx);
1002 f->version = AV_RL32(avctx->extradata) >> 16;
1003 ff_blockdsp_init(&f->bdsp, avctx);
1005 f->avctx = avctx;
1009 avctx->pix_fmt = AV_PIX_FMT_RGB565;
1011 avctx->pix_fmt = AV_PIX_FMT_BGR555;