aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cbs_h266.h
diff options
context:
space:
mode:
authorFrank Plowman <post@frankplowman.com>2023-07-05 22:01:13 +0800
committerJames Almer <jamrial@gmail.com>2023-07-06 09:05:13 -0300
commit4b19690ff43221cf95656253f6a83a837470ed47 (patch)
tree4be05d7c787840d0bc571c1ca2e5d7015bcdeaf8 /libavcodec/cbs_h266.h
parentf00222e81f7d6a59d977fbb280d67989818e0ad2 (diff)
downloadffmpeg-4b19690ff43221cf95656253f6a83a837470ed47.tar.gz
cbs_h266: add range extension support
example clips: * 12b444vvc1_E_Sony_2 * 12b444Ietsrc_A_Kwai_2 * 10b444P16_D_Sony_2 * 12b444Iepp_A_Sharp_2 * 12b444SPetsrc_B_Kwai_2 Co-authored-by: Nuo Mi <nuomi2021@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_h266.h')
-rw-r--r--libavcodec/cbs_h266.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/libavcodec/cbs_h266.h b/libavcodec/cbs_h266.h
index 63af3bacf0..a70afd50fb 100644
--- a/libavcodec/cbs_h266.h
+++ b/libavcodec/cbs_h266.h
@@ -118,8 +118,16 @@ typedef struct H266GeneralConstraintsInfo {
uint8_t gci_no_lmcs_constraint_flag;
uint8_t gci_no_ladf_constraint_flag;
uint8_t gci_no_virtual_boundaries_constraint_flag;
- uint8_t gci_num_reserved_bits;
- uint8_t gci_reserved_zero_bit[255];
+
+ uint8_t gci_num_additional_bits;
+ uint8_t gci_reserved_bit[255];
+
+ uint8_t gci_all_rap_pictures_constraint_flag;
+ uint8_t gci_no_extended_precision_processing_constraint_flag;
+ uint8_t gci_no_ts_residual_coding_rice_constraint_flag;
+ uint8_t gci_no_rrc_rice_extension_constraint_flag;
+ uint8_t gci_no_persistent_rice_adaptation_constraint_flag;
+ uint8_t gci_no_reverse_last_sig_coeff_constraint_flag;
} H266GeneralConstraintsInfo;
typedef struct H266RawProfileTierLevel {
@@ -472,6 +480,15 @@ typedef struct H266RawSPS {
uint8_t sps_extension_flag;
+ uint8_t sps_range_extension_flag;
+ uint8_t sps_extension_7bits;
+
+ uint8_t sps_extended_precision_flag;
+ uint8_t sps_ts_residual_coding_rice_present_in_sh_flag;
+ uint8_t sps_rrc_rice_extension_flag;
+ uint8_t sps_persistent_rice_adaptation_enabled_flag;
+ uint8_t sps_reverse_last_sig_coeff_enabled_flag;
+
H266RawExtensionData extension_data;
} H266RawSPS;
@@ -757,6 +774,8 @@ typedef struct H266RawSliceHeader {
uint8_t sh_sign_data_hiding_used_flag;
uint8_t sh_ts_residual_coding_disabled_flag;
+ uint8_t sh_ts_residual_coding_rice_idx_minus1;
+ uint8_t sh_reverse_last_sig_coeff_flag;
uint16_t sh_slice_header_extension_length;
uint8_t sh_slice_header_extension_data_byte[256];