summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_ps.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-04-17 10:30:28 -0300
committerJames Almer <jamrial@gmail.com>2023-04-20 09:53:30 -0300
commit0760528af2cfd4dfa9eb23788a308183bd68acf3 (patch)
treecda07b6df61d20d4e158b0067bd72beb6b1a8de2 /libavcodec/hevc_ps.h
parentab0f3f7fbf5e97752ba8d72ed0eddb61aaded787 (diff)
downloadffmpeg-0760528af2cfd4dfa9eb23788a308183bd68acf3.tar.gz
avcodec/hevc_ps: use get_ue_golomb() for some PPS multilayer extension fields
Also remove the _plus* and _minus* parts of some of these to be in line with other similar fields in the decoder. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevc_ps.h')
-rw-r--r--libavcodec/hevc_ps.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h
index 5a80cf5d80..0c9c278662 100644
--- a/libavcodec/hevc_ps.h
+++ b/libavcodec/hevc_ps.h
@@ -327,21 +327,21 @@ typedef struct HEVCPPS {
int16_t ref_region_right_offset[64];
int16_t ref_region_bottom_offset[64];
uint8_t resample_phase_set_present_flag[64];
- uint16_t phase_hor_luma[64];
- uint16_t phase_ver_luma[64];
- uint16_t phase_hor_chroma_plus8[64];
- uint16_t phase_ver_chroma_plus8[64];
+ uint8_t phase_hor_luma[64];
+ uint8_t phase_ver_luma[64];
+ int8_t phase_hor_chroma[64];
+ int8_t phase_ver_chroma[64];
uint8_t colour_mapping_enabled_flag;
uint16_t num_cm_ref_layers_minus1;
uint8_t cm_ref_layer_id[63];
uint8_t cm_octant_depth;
uint8_t cm_y_part_num_log2;
- uint16_t luma_bit_depth_cm_input_minus8;
- uint16_t chroma_bit_depth_cm_input_minus8;
- uint16_t luma_bit_depth_cm_output_minus8;
- uint16_t chroma_bit_depth_cm_output_minus8;
+ uint8_t luma_bit_depth_cm_input;
+ uint8_t chroma_bit_depth_cm_input;
+ uint8_t luma_bit_depth_cm_output;
+ uint8_t chroma_bit_depth_cm_output;
uint8_t cm_res_quant_bits;
- uint8_t cm_delta_flc_bits_minus1;
+ uint8_t cm_delta_flc_bits;
int8_t cm_adapt_threshold_u_delta;
int8_t cm_adapt_threshold_v_delta;