Commit d1f5f4a0 authored by Thomas Guillem's avatar Thomas Guillem

codec: hxxx_helper: add h264_helper_get_current_profile_level

parent bced5fe7
...@@ -600,6 +600,18 @@ h264_helper_get_current_dpb_values(const struct hxxx_helper *hh, ...@@ -600,6 +600,18 @@ h264_helper_get_current_dpb_values(const struct hxxx_helper *hh,
VLC_SUCCESS : VLC_EGENERIC; VLC_SUCCESS : VLC_EGENERIC;
} }
int
h264_helper_get_current_profile_level(const struct hxxx_helper *hh,
uint8_t *p_profile, uint8_t *p_level)
{
const struct hxxx_helper_nal *hsps = h264_helper_get_current_sps(hh);
if (hsps == NULL)
return VLC_EGENERIC;
*p_profile = hsps->h264_sps->i_profile;
*p_level = hsps->h264_sps->i_level;
return VLC_SUCCESS;
}
int int
hxxx_helper_get_colorimetry(const struct hxxx_helper *hh, hxxx_helper_get_colorimetry(const struct hxxx_helper *hh,
video_color_primaries_t *p_primaries, video_color_primaries_t *p_primaries,
......
...@@ -87,6 +87,9 @@ int h264_helper_get_current_sar(const struct hxxx_helper *hh, int *p_num, int *p ...@@ -87,6 +87,9 @@ int h264_helper_get_current_sar(const struct hxxx_helper *hh, int *p_num, int *p
int h264_helper_get_current_dpb_values(const struct hxxx_helper *hh, int h264_helper_get_current_dpb_values(const struct hxxx_helper *hh,
uint8_t *p_depth, unsigned *pi_delay); uint8_t *p_depth, unsigned *pi_delay);
int h264_helper_get_current_profile_level(const struct hxxx_helper *hh,
uint8_t *p_profile, uint8_t *p_level);
int hxxx_helper_get_colorimetry(const struct hxxx_helper *hh, int hxxx_helper_get_colorimetry(const struct hxxx_helper *hh,
video_color_primaries_t *p_primaries, video_color_primaries_t *p_primaries,
video_transfer_func_t *p_transfer, 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