Lines Matching defs:avctx
119 int ff_hevc_decode_short_term_rps(GetBitContext *gb, AVCodecContext *avctx,
141 av_log(avctx, AV_LOG_ERROR,
154 av_log(avctx, AV_LOG_ERROR,
179 av_log(avctx, AV_LOG_ERROR,
224 av_log(avctx, AV_LOG_ERROR, "Too many refs in a short term RPS.\n");
234 av_log(avctx, AV_LOG_ERROR,
247 av_log(avctx, AV_LOG_ERROR,
262 static int decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx,
274 av_log(avctx, AV_LOG_DEBUG, "Main profile bitstream\n");
276 av_log(avctx, AV_LOG_DEBUG, "Main 10 profile bitstream\n");
278 av_log(avctx, AV_LOG_DEBUG, "Main Still Picture profile bitstream\n");
280 av_log(avctx, AV_LOG_DEBUG, "Range Extension profile bitstream\n");
282 av_log(avctx, AV_LOG_WARNING, "Unknown HEVC profile: %d\n", ptl->profile_idc);
336 static int parse_ptl(GetBitContext *gb, AVCodecContext *avctx,
340 if (decode_profile_tier_level(gb, avctx, &ptl->general_ptl) < 0 ||
342 av_log(avctx, AV_LOG_ERROR, "PTL information too short\n");
358 decode_profile_tier_level(gb, avctx, &ptl->sub_layer_ptl[i]) < 0) {
359 av_log(avctx, AV_LOG_ERROR,
365 av_log(avctx, AV_LOG_ERROR,
455 int ff_hevc_decode_nal_vps(GetBitContext *gb, AVCodecContext *avctx,
468 av_log(avctx, AV_LOG_DEBUG, "Decoding VPS\n");
472 av_log(avctx, AV_LOG_WARNING, "Truncating likely oversized VPS "
484 av_log(avctx, AV_LOG_ERROR, "vps_reserved_three_2bits is not three\n");
493 av_log(avctx, AV_LOG_ERROR, "vps_reserved_ffff_16bits is not 0xffff\n");
498 av_log(avctx, AV_LOG_ERROR, "vps_max_sub_layers out of range: %d\n",
503 if (parse_ptl(gb, avctx, &vps->ptl, vps->vps_max_sub_layers) < 0)
515 av_log(avctx, AV_LOG_ERROR, "vps_max_dec_pic_buffering_minus1 out of range: %d\n",
520 av_log(avctx, AV_LOG_WARNING, "vps_max_num_reorder_pics out of range: %d\n",
522 if (avctx->err_recognition & AV_EF_EXPLODE)
531 av_log(avctx, AV_LOG_ERROR, "too many layer_id_included_flags\n");
548 av_log(avctx, AV_LOG_ERROR,
564 av_log(avctx, AV_LOG_ERROR,
585 static void decode_vui(GetBitContext *gb, AVCodecContext *avctx,
592 av_log(avctx, AV_LOG_DEBUG, "Decoding VUI\n");
603 av_log(avctx, AV_LOG_WARNING,
661 av_log(avctx, AV_LOG_WARNING, "Invalid default display window\n");
674 avctx->flags2 & AV_CODEC_FLAG2_IGNORE_CROP) {
675 av_log(avctx, AV_LOG_DEBUG,
697 av_log(avctx, AV_LOG_WARNING,
707 av_log(avctx, AV_LOG_INFO, "Retry got %"PRIu32"/%"PRIu32" fps\n",
721 av_log(avctx, AV_LOG_WARNING,
741 av_log(avctx, AV_LOG_WARNING,
780 static int scaling_list_data(GetBitContext *gb, AVCodecContext *avctx, ScalingList *sl, HEVCSPS *sps)
798 av_log(avctx, AV_LOG_ERROR,
856 static int map_pixel_format(AVCodecContext *avctx, HEVCSPS *sps)
885 av_log(avctx, AV_LOG_ERROR,
906 int apply_defdispwin, AVBufferRef **vps_list, AVCodecContext *avctx)
919 av_log(avctx, AV_LOG_ERROR, "VPS %d does not exist\n",
926 av_log(avctx, AV_LOG_ERROR, "sps_max_sub_layers out of range: %d\n",
933 if ((ret = parse_ptl(gb, avctx, &sps->ptl, sps->max_sub_layers)) < 0)
938 av_log(avctx, AV_LOG_ERROR, "SPS id out of range: %d\n", *sps_id);
944 av_log(avctx, AV_LOG_ERROR, "chroma_format_idc %d is invalid\n", sps->chroma_format_idc);
957 sps->height, 0, avctx)) < 0)
968 if (avctx->flags2 & AV_CODEC_FLAG2_IGNORE_CROP) {
969 av_log(avctx, AV_LOG_DEBUG,
988 av_log(avctx, AV_LOG_ERROR,
996 ret = map_pixel_format(avctx, sps);
1002 av_log(avctx, AV_LOG_ERROR, "log2_max_pic_order_cnt_lsb_minus4 out range: %d\n",
1014 av_log(avctx, AV_LOG_ERROR, "sps_max_dec_pic_buffering_minus1 out of range: %d\n",
1019 av_log(avctx, AV_LOG_WARNING, "sps_max_num_reorder_pics out of range: %d\n",
1021 if (avctx->err_recognition & AV_EF_EXPLODE ||
1045 av_log(avctx, AV_LOG_ERROR, "Invalid value %d for log2_min_cb_size", sps->log2_min_cb_size);
1050 av_log(avctx, AV_LOG_ERROR, "Invalid value %d for log2_diff_max_min_coding_block_size", sps->log2_diff_max_min_coding_block_size);
1055 av_log(avctx, AV_LOG_ERROR, "Invalid value for log2_min_tb_size");
1060 av_log(avctx, AV_LOG_ERROR, "Invalid value %d for log2_diff_max_min_transform_block_size", log2_diff_max_min_transform_block_size);
1072 ret = scaling_list_data(gb, avctx, &sps->scaling_list, sps);
1089 av_log(avctx, AV_LOG_ERROR,
1100 av_log(avctx, AV_LOG_ERROR, "Too many short term RPS: %d.\n",
1105 if ((ret = ff_hevc_decode_short_term_rps(gb, avctx, &sps->st_rps[i],
1114 av_log(avctx, AV_LOG_ERROR, "Too many long term ref pics: %d.\n",
1129 decode_vui(gb, avctx, apply_defdispwin, sps);
1143 av_log(avctx, AV_LOG_WARNING,
1149 av_log(avctx, AV_LOG_WARNING,
1156 av_log(avctx, AV_LOG_WARNING,
1172 av_log(avctx, AV_LOG_WARNING, "Invalid cropping offsets: %u/%u/%u/%u\n",
1174 if (avctx->err_recognition & AV_EF_EXPLODE) {
1177 av_log(avctx, AV_LOG_WARNING,
1189 av_log(avctx, AV_LOG_ERROR, "CTB size out of range: 2^%d\n", sps->log2_ctb_size);
1193 av_log(avctx,
1197 avpriv_request_sample(avctx, "log2_ctb_size %d", sps->log2_ctb_size);
1217 av_log(avctx, AV_LOG_ERROR, "Invalid coded frame dimensions.\n");
1222 av_log(avctx, AV_LOG_ERROR, "max_transform_hierarchy_depth_inter out of range: %d\n",
1227 av_log(avctx, AV_LOG_ERROR, "max_transform_hierarchy_depth_intra out of range: %d\n",
1232 av_log(avctx, AV_LOG_ERROR,
1239 av_log(avctx, AV_LOG_ERROR,
1247 int ff_hevc_decode_nal_sps(GetBitContext *gb, AVCodecContext *avctx,
1260 av_log(avctx, AV_LOG_DEBUG, "Decoding SPS\n");
1264 av_log(avctx, AV_LOG_WARNING, "Truncating likely oversized SPS "
1275 ps->vps_list, avctx);
1281 if (avctx->debug & FF_DEBUG_BITSTREAM) {
1282 av_log(avctx, AV_LOG_DEBUG,
1323 static int pps_range_extensions(GetBitContext *gb, AVCodecContext *avctx,
1336 av_log(avctx, AV_LOG_ERROR,
1343 av_log(avctx, AV_LOG_WARNING,
1348 av_log(avctx, AV_LOG_WARNING,
1364 static inline int setup_pps(AVCodecContext *avctx, GetBitContext *gb,
1496 int ff_hevc_decode_nal_pps(GetBitContext *gb, AVCodecContext *avctx,
1518 av_log(avctx, AV_LOG_DEBUG, "Decoding PPS\n");
1522 av_log(avctx, AV_LOG_WARNING, "Truncating likely oversized PPS "
1544 av_log(avctx, AV_LOG_ERROR, "PPS id out of range: %d\n", pps_id);
1550 av_log(avctx, AV_LOG_ERROR, "SPS id out of range: %d\n", pps->sps_id);
1555 av_log(avctx, AV_LOG_ERROR, "SPS %u does not exist.\n", pps->sps_id);
1584 av_log(avctx, AV_LOG_ERROR, "diff_cu_qp_delta_depth %d is invalid\n",
1592 av_log(avctx, AV_LOG_ERROR, "pps_cb_qp_offset out of range: %d\n",
1599 av_log(avctx, AV_LOG_ERROR, "pps_cr_qp_offset out of range: %d\n",
1619 av_log(avctx, AV_LOG_ERROR, "num_tile_columns_minus1 out of range: %d\n",
1626 av_log(avctx, AV_LOG_ERROR, "num_tile_rows_minus1 out of range: %d\n",
1649 av_log(avctx, AV_LOG_ERROR, "Invalid tile widths.\n");
1661 av_log(avctx, AV_LOG_ERROR, "Invalid tile heights.\n");
1680 av_log(avctx, AV_LOG_ERROR, "pps_beta_offset_div2 out of range: %d\n",
1686 av_log(avctx, AV_LOG_ERROR, "pps_tc_offset_div2 out of range: %d\n",
1699 ret = scaling_list_data(gb, avctx, &pps->scaling_list, sps);
1706 av_log(avctx, AV_LOG_ERROR, "log2_parallel_merge_level_minus2 out of range: %d\n",
1719 if ((ret = pps_range_extensions(gb, avctx, pps, sps)) < 0)
1724 ret = setup_pps(avctx, gb, pps, sps);
1729 av_log(avctx, AV_LOG_ERROR,