codecUtilsH264GetProfileFlagsLevel

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.

bool
codecUtilsH264GetProfileFlagsLevel
(
ubyte[] codecData
,
out ubyte profile
,
out ubyte flags
,
out ubyte level
)

Parameters

codecData ubyte[]

H264 AVCC extradata

profile ubyte

return location for h264 profile_idc or null

flags ubyte

return location for h264 constraint set flags or null

level ubyte

return location h264 level_idc or null

Return Value

Type: bool

true on success, false on failure