get_profile


Description:

[ CCode ( cname = "gst_codec_utils_h264_get_profile" ) ]
public unowned string? get_profile (uint8[] sps)

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

Parameters:

sps

Pointer to the sequence parameter set for the stream.

len

Length of the data available in sps.

Returns:

The profile as a const string, or null if there is an error.