summaryrefslogtreecommitdiff
path: root/hevc.h
diff options
context:
space:
mode:
authorMikhail Burakov <mburakov@mailbox.org>2023-05-21 12:56:43 +0200
committerMikhail Burakov <mburakov@mailbox.org>2023-05-21 13:11:21 +0200
commitc18411dc703df9f833f5dfb3117bc653216c715e (patch)
tree1c3897b873023713aae1d47ba20751892752f7e4 /hevc.h
parent849bc346ff57fdd2ecdd9e8c62eb9c359d130af1 (diff)
Basic sequential encoding finally works now
Diffstat (limited to 'hevc.h')
-rw-r--r--hevc.h12
1 files changed, 12 insertions, 0 deletions
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,