Commit aecc7e86 authored by François Cartegnie's avatar François Cartegnie 🤞

hevc_nal: add hevc_get_slice_type

parent d9decc25
......@@ -1141,3 +1141,13 @@ hevc_slice_segment_header_t * hevc_rbsp_decode_slice_header( const uint8_t *p_bu
}
return p_sh;
}
bool hevc_get_slice_type( const hevc_slice_segment_header_t *p_sli, enum hevc_slice_type_e *pi_type )
{
if( !p_sli->dependent_slice_segment_flag )
{
*pi_type = p_sli->slice_type;
return true;
}
return false;
}
......@@ -163,5 +163,6 @@ bool hevc_get_picture_size( const hevc_sequence_parameter_set_t *, unsigned *p_w
bool hevc_get_frame_rate( const hevc_sequence_parameter_set_t *,
const hevc_video_parameter_set_t ** /* HEVC_MAX_VPS || NULL */,
unsigned *pi_num, unsigned *pi_den );
bool hevc_get_slice_type( const hevc_slice_segment_header_t *, enum hevc_slice_type_e * );
#endif /* HEVC_NAL_H */
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