Lines Matching defs:avctx
87 &he[0].sym, sizeof(*he), 2, 0, 0, c->avctx);
103 av_log(c->avctx, AV_LOG_ERROR, "Cannot build Huffman codes\n");
147 av_log(c->avctx, AV_LOG_ERROR, "Plane has more than one symbol "
163 av_log(c->avctx, AV_LOG_ERROR, "Decoding error\n");
175 av_log(c->avctx, AV_LOG_ERROR,
181 av_log(c->avctx, AV_LOG_WARNING,
213 const int cmask = compute_cmask(plane_no, c->interlaced, c->avctx->pix_fmt);
263 av_log(c->avctx, AV_LOG_ERROR, "Cannot build Huffman codes\n");
308 av_log(c->avctx, AV_LOG_ERROR, "Plane has more than one symbol "
324 av_log(c->avctx, AV_LOG_ERROR, "Decoding error\n");
334 av_log(c->avctx, AV_LOG_ERROR,
341 av_log(c->avctx, AV_LOG_WARNING,
560 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
565 UtvideoContext *c = avctx->priv_data;
572 if ((ret = ff_thread_get_buffer(avctx, frame, 0)) < 0)
630 av_log(avctx, AV_LOG_ERROR, "Not enough data for frame information\n");
638 av_log(avctx, AV_LOG_ERROR, "Insufficient data for a plane\n");
647 av_log(avctx, AV_LOG_ERROR, "Incorrect slice size\n");
663 av_log(avctx, AV_LOG_ERROR, "Insufficient data for a plane\n");
673 av_log(avctx, AV_LOG_ERROR, "Incorrect slice size\n");
685 av_log(avctx, AV_LOG_ERROR, "Not enough data for frame information\n");
690 av_log(avctx, AV_LOG_DEBUG, "frame information flags %"PRIX32"\n",
695 max_slice_size += 4*avctx->width;
702 av_log(avctx, AV_LOG_ERROR, "Cannot allocate temporary buffer\n");
707 switch (c->avctx->pix_fmt) {
712 frame->linesize[i], avctx->width,
713 avctx->height, plane_start[i],
720 frame->linesize[i], avctx->width,
721 avctx->height, c->slices, 0);
725 avctx->width, avctx->height, c->slices,
731 frame->linesize[i], avctx->width,
732 avctx->height, c->slices, 0);
736 avctx->width, avctx->height, c->slices,
743 avctx->width, avctx->height);
749 frame->linesize[i] / 2, avctx->width,
750 avctx->height, plane_start[i],
758 avctx->width, avctx->height);
763 avctx->width >> !!i, avctx->height >> !!i,
770 avctx->width >> !!i, avctx->height >> !!i,
774 avctx->width >> !!i,
775 avctx->height >> !!i,
781 avctx->width >> !!i, avctx->height >> !!i,
785 avctx->width >> !!i,
786 avctx->height >> !!i,
795 avctx->width >> !!i, avctx->height,
802 avctx->width >> !!i, avctx->height,
806 avctx->width >> !!i, avctx->height,
812 avctx->width >> !!i, avctx->height,
816 avctx->width >> !!i, avctx->height,
825 avctx->width, avctx->height,
832 avctx->width, avctx->height,
836 avctx->width, avctx->height,
842 avctx->width, avctx->height,
846 avctx->width, avctx->height,
855 avctx->width >> !!i, avctx->height >> !!i,
864 avctx->width >> !!i, avctx->height,
882 static av_cold int decode_init(AVCodecContext *avctx)
884 UtvideoContext * const c = avctx->priv_data;
887 c->avctx = avctx;
895 switch (avctx->codec_tag) {
898 avctx->pix_fmt = AV_PIX_FMT_GBRP;
902 avctx->pix_fmt = AV_PIX_FMT_GBRAP;
906 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
907 avctx->colorspace = AVCOL_SPC_BT470BG;
911 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
912 avctx->colorspace = AVCOL_SPC_BT470BG;
916 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
917 avctx->colorspace = AVCOL_SPC_BT470BG;
922 avctx->pix_fmt = AV_PIX_FMT_YUV420P10;
927 avctx->pix_fmt = AV_PIX_FMT_YUV422P10;
932 avctx->pix_fmt = AV_PIX_FMT_GBRP10;
937 avctx->pix_fmt = AV_PIX_FMT_GBRAP10;
941 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
942 avctx->colorspace = AVCOL_SPC_BT709;
946 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
947 avctx->colorspace = AVCOL_SPC_BT709;
951 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
952 avctx->colorspace = AVCOL_SPC_BT709;
957 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
958 avctx->colorspace = AVCOL_SPC_BT470BG;
963 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
964 avctx->colorspace = AVCOL_SPC_BT709;
969 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
970 avctx->colorspace = AVCOL_SPC_BT470BG;
975 avctx->pix_fmt = AV_PIX_FMT_YUV444P;
976 avctx->colorspace = AVCOL_SPC_BT709;
981 avctx->pix_fmt = AV_PIX_FMT_GBRP;
986 avctx->pix_fmt = AV_PIX_FMT_GBRAP;
989 av_log(avctx, AV_LOG_ERROR, "Unknown Ut Video FOURCC provided (%08X)\n",
990 avctx->codec_tag);
994 av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &h_shift, &v_shift);
995 if ((avctx->width & ((1<<h_shift)-1)) ||
996 (avctx->height & ((1<<v_shift)-1))) {
997 avpriv_request_sample(avctx, "Odd dimensions");
1001 if (c->pack && avctx->extradata_size >= 16) {
1002 av_log(avctx, AV_LOG_DEBUG, "Encoder version %d.%d.%d.%d\n",
1003 avctx->extradata[3], avctx->extradata[2],
1004 avctx->extradata[1], avctx->extradata[0]);
1005 av_log(avctx, AV_LOG_DEBUG, "Original format %"PRIX32"\n",
1006 AV_RB32(avctx->extradata + 4));
1007 c->compression = avctx->extradata[8];
1009 avpriv_request_sample(avctx, "Unknown compression type");
1010 c->slices = avctx->extradata[9] + 1;
1011 } else if (!c->pro && avctx->extradata_size >= 16) {
1012 av_log(avctx, AV_LOG_DEBUG, "Encoder version %d.%d.%d.%d\n",
1013 avctx->extradata[3], avctx->extradata[2],
1014 avctx->extradata[1], avctx->extradata[0]);
1015 av_log(avctx, AV_LOG_DEBUG, "Original format %"PRIX32"\n",
1016 AV_RB32(avctx->extradata + 4));
1017 c->frame_info_size = AV_RL32(avctx->extradata + 8);
1018 c->flags = AV_RL32(avctx->extradata + 12);
1021 avpriv_request_sample(avctx, "Frame info not 4 bytes");
1022 av_log(avctx, AV_LOG_DEBUG, "Encoding parameters %08"PRIX32"\n", c->flags);
1026 } else if (c->pro && avctx->extradata_size == 8) {
1027 av_log(avctx, AV_LOG_DEBUG, "Encoder version %d.%d.%d.%d\n",
1028 avctx->extradata[3], avctx->extradata[2],
1029 avctx->extradata[1], avctx->extradata[0]);
1030 av_log(avctx, AV_LOG_DEBUG, "Original format %"PRIX32"\n",
1031 AV_RB32(avctx->extradata + 4));
1035 av_log(avctx, AV_LOG_ERROR,
1037 avctx->extradata_size);
1044 static av_cold int decode_end(AVCodecContext *avctx)
1046 UtvideoContext * const c = avctx->priv_data;