From c18411dc703df9f833f5dfb3117bc653216c715e Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Sun, 21 May 2023 12:56:43 +0200 Subject: Basic sequential encoding finally works now --- hevc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hevc.h') diff --git a/hevc.h b/hevc.h index 14c3aa3..6ab312d 100644 --- a/hevc.h +++ b/hevc.h @@ -23,6 +23,7 @@ // Table 7-1 enum NalUnitType { + TRAIL_R = 1, BLA_W_LP = 16, IDR_W_RADL = 19, IDR_N_LP = 20, @@ -64,6 +65,17 @@ struct MoreSeqParameters { struct MoreSliceParamerters { bool first_slice_segment_in_pic_flag; + // TODO(mburakov): Deduce from picture parameter buffer? + uint32_t num_negative_pics; + uint32_t num_positive_pics; + struct NegativePics { + uint32_t delta_poc_s0_minus1; + bool used_by_curr_pic_s0_flag; + }* negative_pics; + struct PositivePics { + uint32_t delta_poc_s1_minus1; + bool used_by_curr_pic_s1_flag; + }* positive_pics; }; void PackVideoParameterSetNalUnit(struct Bitstream* bitstream, -- cgit v1.2.3