Function gstreamer_pbutils::functions::codec_utils_h264_get_profile
source · pub fn codec_utils_h264_get_profile(sps: &[u8]) -> Result<GString, BoolError>
Expand description
Converts the profile indication (profile_idc) in the stream’s sequence parameter set into a string. The SPS is expected to have the following format, as defined in the H.264 specification. The SPS is viewed as a bitstream here, with bit 0 being the most significant bit of the first byte.
- Bit 0:7 - Profile indication
- Bit 8 - constraint_set0_flag
- Bit 9 - constraint_set1_flag
- Bit 10 - constraint_set2_flag
- Bit 11 - constraint_set3_flag
- Bit 12 - constraint_set3_flag
- Bit 13:15 - Reserved
- Bit 16:24 - Level indication
§sps
Pointer to the sequence parameter set for the stream.
§Returns
The profile as a const string, or None
if there is an error.