pub fn codec_utils_h264_get_profile_flags_level(
codec_data: &[u8],
) -> Result<(u8, u8, u8), BoolError>
Expand description
Parses profile, flags, and level from a H264 AVCC extradata/sequence_header. These are most commonly retrieved from a video/x-h264 caps with a codec_data buffer.
The format of H264 AVCC extradata/sequence_header is documented in the ITU-T H.264 specification section 7.3.2.1.1 as well as in ISO/IEC 14496-15 section 5.3.3.1.2.
§codec_data
H264 AVCC extradata
§Returns
true
on success, false
on failure
§profile
return location for h264 profile_idc or None
§flags
return location for h264 constraint set flags or None
§level
return location h264 level_idc or None