From a39b35d524cb3788b85eb2505a2d41854510f4d2 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov <mburakov@mailbox.org> Date: Mon, 22 May 2023 10:29:46 +0200 Subject: Tidying up hardcoded bitstream attributes (WIP) --- hevc.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'hevc.h') diff --git a/hevc.h b/hevc.h index 6ab312d..4f3752a 100644 --- a/hevc.h +++ b/hevc.h @@ -43,15 +43,17 @@ enum SliceType { struct Bitstream; struct MoreVideoParameters { - uint32_t max_b_depth; - uint32_t time_base_num; - uint32_t time_base_den; + uint32_t vps_max_dec_pic_buffering_minus1; + uint32_t vps_max_num_reorder_pics; }; struct MoreSeqParameters { - uint32_t crop_width; - uint32_t crop_height; - // TODO(mburakov): Why ffmpeg ignores vui section in seq? + uint32_t conf_win_left_offset; + uint32_t conf_win_right_offset; + uint32_t conf_win_top_offset; + uint32_t conf_win_bottom_offset; + uint32_t sps_max_dec_pic_buffering_minus1; + uint32_t sps_max_num_reorder_pics; bool video_signal_type_present_flag; bool video_full_range_flag; bool colour_description_present_flag; @@ -83,7 +85,6 @@ void PackVideoParameterSetNalUnit(struct Bitstream* bitstream, const struct MoreVideoParameters* mvp); void PackSeqParameterSetNalUnit(struct Bitstream* bitstream, const VAEncSequenceParameterBufferHEVC* seq, - const struct MoreVideoParameters* mvp, const struct MoreSeqParameters* msp); void PackPicParameterSetNalUnit(struct Bitstream* bitstream, const VAEncPictureParameterBufferHEVC* pic); -- cgit v1.2.3