Commit 1abcc297 authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Thomas Guillem

packetizer: hevc: add hevc_get_chroma_luma

(cherry picked from commit 7729ccef)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 66b639d9
......@@ -1143,6 +1143,15 @@ bool hevc_get_aspect_ratio( const hevc_sequence_parameter_set_t *p_sps,
return false;
}
bool hevc_get_chroma_luma( const hevc_sequence_parameter_set_t *p_sps, uint8_t *pi_chroma_format,
uint8_t *pi_depth_luma, uint8_t *pi_depth_chroma )
{
*pi_chroma_format = p_sps->chroma_format_idc;
*pi_depth_luma = p_sps->bit_depth_chroma_minus8 + 8;
*pi_depth_chroma = p_sps->bit_depth_chroma_minus8 + 8;
return true;
}
bool hevc_get_colorimetry( const hevc_sequence_parameter_set_t *p_sps,
video_color_primaries_t *p_primaries,
video_transfer_func_t *p_transfer,
......
......@@ -185,6 +185,8 @@ bool hevc_get_frame_rate( const hevc_sequence_parameter_set_t *,
unsigned *pi_num, unsigned *pi_den );
bool hevc_get_aspect_ratio( const hevc_sequence_parameter_set_t *,
unsigned *pi_num, unsigned *pi_den );
bool hevc_get_chroma_luma( const hevc_sequence_parameter_set_t *, uint8_t *pi_chroma_format,
uint8_t *pi_depth_luma, uint8_t *pi_depth_chroma );
bool hevc_get_colorimetry( const hevc_sequence_parameter_set_t *p_sps,
video_color_primaries_t *p_primaries,
video_transfer_func_t *p_transfer,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment