[FFmpeg-devel] [PATCH v6 2/9] avcodec/vvc: add shared header for vvc

Nuo Mi nuomi2021 at gmail.com
Thu Feb 18 11:07:59 EET 2021


>
>
>
> > +enum {
> > +    //6.2 we can have 3 sample arrays
> > +    MAX_SAMPLE_ARRAYS = 3,
>
> Needs the "VVC_" prefix.
>
fixed

>
> > +
> > +    //7.4.3.3 vps_max_layers_minus1 is u(6)
> > +    VVC_MAX_LAYERS = 64,
> > +
> > +    //7.4.3.3 The value of vps_max_sublayers_minus1 shall be in the
> range of 0 to 6, inclusive
> > +    VVC_MAX_SUBLAYERS = 7,
> > +
> > +    //7.4.3.3 vps_num_ptls_minus1 is u(8)
> > +    VVC_MAX_PTLS = 256,
> > +
> > +    //7.4.3.3 vps_num_output_layer_sets_minus2 is u(8)
> > +    VVC_MAX_TOTAL_NUM_OLSS = 257,
> > +
> > +    // 7.3.2.3: vps_video_parameter_set_id is u(4).
> > +    VVC_MAX_VPS_COUNT = 16,
> > +    // 7.3.2.4: sps_seq_parameter_set_id is u(4)
> > +    VVC_MAX_SPS_COUNT = 16,
> > +    // 7.3.2.5: pps_pic_parameter_set_id is u(6)
> > +    VVC_MAX_PPS_COUNT = 64,
> > +
> > +    // 7.4.4.1: ptl_num_sub_profiles is u(8)
> > +    VVC_MAX_SUB_PROFILES = 256,
> > +
> > +    // A.4.2: according to (1577), MaxDpbSize is bounded above by 2 *
> maxDpbPicBuf(8)
> > +    VVC_MAX_DPB_SIZE = 16,
> > +
> > +    //7.4.3.4 sps_num_ref_pic_lists in range [0, 64]
> > +    VVC_MAX_REF_PIC_LISTS = 64,
> > +
> > +    //7.4.11 num_ref_entries in range [0, MaxDpbSize + 13]
> > +    VVC_MAX_REF_ENTRIES = VVC_MAX_DPB_SIZE + 13,
> > +
> > +    //7.4.3.3 sps_num_points_in_qp_table_minus1[i] in range [0, 36 −
> sps_qp_table_start_minus26[i]],
> > +    //sps_qp_table_start_minus26[i] in range
> [sps_qp_table_start_minus26[i] −26 − QpBdOffset, 36]
> > +    //for 10 bitsQpBdOffset is 12, so
> sps_num_points_in_qp_table_minus1[i] in range [0, 74]
> > +    VVC_MAX_POINTS_IN_QP_TABLE = 75,
> > +
> > +    // 7.4.6.1: hrd_cpb_cnt_minus1 is in [0, 31].
> > +    VVC_MAX_CPB_CNT = 32,
> > +
> > +    // A.4.1: the highest level allows a MaxLumaPs of 35 651 584.
> > +    VVC_MAX_LUMA_PS = 35651584,
> > +
> > +    // A.4.1: pic_width_in_luma_samples and pic_height_in_luma_samples
> are
> > +    // constrained to be not greater than sqrt(MaxLumaPs * 8).  Hence
> height/
> > +    // width are bounded above by sqrt(8 * 35651584) = 16888.2 samples.
> > +    VVC_MAX_WIDTH  = 16888,
> > +    VVC_MAX_HEIGHT = 16888,
> > +
> > +    // A.4.1: table A.1 allows at most 440 tiles per au for any level.
> > +    VVC_MAX_TILES_PER_AU = 440,
> > +    // A.4.1: table A.1 did not define max tile rows.
> > +    // in worest a case, we can have 1x440 tiles picture.
> > +    VVC_MAX_TILE_ROWS    = VVC_MAX_TILES_PER_AU,
> > +    // A.4.1: table A.1 allows at most 20 tile columns for any level.
> > +    VVC_MAX_TILE_COLUMNS = 20,
> > +
> > +    // A.4.1 table A.1 allows at most 600 slice for any level.
> > +    VVC_MAX_SLICES = 600,
> > +
> > +    // 7.4.8: in the worst case (tiles_enabled_flag and
> > +    // entropy_coding_sync_enabled_flag are both set), entry points can
> be
> > +    // placed at the beginning of every Ctb row in every tile, giving an
> > +    // upper bound of (num_tile_columns_minus1 + 1) * PicHeightInCtbsY
> - 1.
> > +    // Only a stream with very high resolution and perverse parameters
> could
> > +    // get near that, though, so set a lower limit here with the maximum
> > +    // possible value for 8K video (at most 135 32x32 Ctb rows).
> Not all of the variable names from H.265 mentioned here exist in H.266
> (e.g. there is no tiles_enabled_flag).  It should be updated to use the
> correct names for H.266.
>
Fixed

>
> > +    VVC_MAX_ENTRY_POINTS = VVC_MAX_TILE_COLUMNS * 135,
> > +};
> > +
> > +#endif /* AVCODEC_VVC_H */
> >
>
> - Mark
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list