Lines Matching defs:avctx
139 AVCodecContext *avctx;
365 end = start + stride * (f->avctx->height - h + 1) - (1 << log2w);
383 av_log(f->avctx, AV_LOG_ERROR, "wordstream overread\n");
397 av_log(f->avctx, AV_LOG_ERROR, "bytestream overread\n");
408 av_log(f->avctx, AV_LOG_ERROR, "wordstream overread\n");
414 av_log(f->avctx, AV_LOG_ERROR, "wordstream overread\n");
423 av_log(f->avctx, AV_LOG_ERROR, "mv out of pic\n");
435 const int width = f->avctx->width;
436 const int height = f->avctx->height;
463 av_log(f->avctx, AV_LOG_ERROR, "lengths %d %d %d %d\n", bitstream_size, bytestream_size, wordstream_size,
505 av_log(f->avctx, AV_LOG_ERROR, "%d bits left before decode_i_block()\n", get_bits_left(&f->pre_gb));
512 av_log(f->avctx, AV_LOG_ERROR, "error dc run != 0\n");
532 av_log(f->avctx, AV_LOG_ERROR, "run %d overflow\n", i);
539 av_log(f->avctx, AV_LOG_ERROR, "0 coeff\n");
544 av_log(f->avctx, AV_LOG_ERROR, "run %d overflow\n", i);
562 int stride = f->avctx->width;
571 if (!(f->avctx->flags & AV_CODEC_FLAG_GRAY)) {
641 av_log(f->avctx, AV_LOG_ERROR, "invalid data in read_huffman_tables\n");
659 av_log(f->avctx, AV_LOG_ERROR, "ptr overflow in read_huffman_tables\n");
701 av_log(f->avctx, AV_LOG_ERROR,
728 const int width = f->avctx->width;
729 const int height = f->avctx->height;
736 av_log(f->avctx, AV_LOG_ERROR, "packet size too small\n");
751 av_log(f->avctx, AV_LOG_ERROR, "unk bit 1\n");
753 av_log(f->avctx, AV_LOG_ERROR, "unk bit 2\n");
776 const int width = f->avctx->width;
777 const int height = f->avctx->height;
786 av_log(f->avctx, AV_LOG_ERROR, "packet size too small\n");
795 av_log(f->avctx, AV_LOG_ERROR, "size mismatch %d %d %d\n",
802 av_log(f->avctx, AV_LOG_ERROR, "Error reading Huffman tables.\n");
832 av_log(f->avctx, AV_LOG_ERROR, "end mismatch\n");
837 static int decode_frame(AVCodecContext *avctx, AVFrame *picture,
842 FourXContext *const f = avctx->priv_data;
848 av_assert0(avctx->width % 16 == 0 && avctx->height % 16 == 0);
851 av_log(f->avctx, AV_LOG_ERROR, "size mismatch %d %"PRIu32"\n",
865 av_log(f->avctx, AV_LOG_ERROR, "cfrm in version %d\n", f->version);
873 av_log(f->avctx, AV_LOG_ERROR, "sizes invalid\n");
878 if (f->cfrm[i].id && f->cfrm[i].id < avctx->frame_number)
879 av_log(f->avctx, AV_LOG_ERROR, "lost c frame %d\n",
904 av_log(f->avctx, AV_LOG_ERROR, "realloc failure\n");
915 if (id != avctx->frame_number)
916 av_log(f->avctx, AV_LOG_ERROR, "cframe id mismatch %d %d\n",
917 id, avctx->frame_number);
931 if ((ret = ff_get_buffer(avctx, picture, 0)) < 0)
937 av_log(f->avctx, AV_LOG_ERROR, "decode i2 frame failed\n");
943 av_log(f->avctx, AV_LOG_ERROR, "decode i frame failed\n");
949 av_log(f->avctx, AV_LOG_ERROR, "decode p frame failed\n");
953 av_log(avctx, AV_LOG_ERROR, "ignoring snd_ chunk length:%d\n",
956 av_log(avctx, AV_LOG_ERROR, "ignoring unknown chunk length:%d\n",
963 (const uint8_t*)f->frame_buffer, avctx->width * 2,
964 avctx->width * 2, avctx->height);
974 static av_cold int decode_end(AVCodecContext *avctx)
976 FourXContext * const f = avctx->priv_data;
992 static av_cold int decode_init(AVCodecContext *avctx)
995 FourXContext * const f = avctx->priv_data;
998 if (avctx->extradata_size != 4 || !avctx->extradata) {
999 av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n");
1002 if((avctx->width % 16) || (avctx->height % 16)) {
1003 av_log(avctx, AV_LOG_ERROR, "unsupported width/height\n");
1007 ret = av_image_check_size(avctx->width, avctx->height, 0, avctx);
1011 f->frame_buffer = av_mallocz(avctx->width * avctx->height * 2);
1012 f->last_frame_buffer = av_mallocz(avctx->width * avctx->height * 2);
1016 f->version = AV_RL32(avctx->extradata) >> 16;
1017 ff_blockdsp_init(&f->bdsp, avctx);
1019 f->avctx = avctx;
1022 avctx->pix_fmt = AV_PIX_FMT_RGB565;
1024 avctx->pix_fmt = AV_PIX_FMT_BGR555;