AnnexB

object AnnexB

Converts AVC and HEVC container records and packets to Annex B start-code framing.

Functions

Link copied to clipboard
fun isAnnexB(payload: ByteArray): Boolean

Returns true when payload starts with a three-byte or four-byte Annex B start code.

Link copied to clipboard

Parses an AVCDecoderConfigurationRecord. Returns null when the record is malformed.

Link copied to clipboard

Parses an HEVCDecoderConfigurationRecord. Returns null when the record is malformed.

Link copied to clipboard
fun toAnnexB(payload: ByteArray, nalLengthSize: Int): ByteArray?

Rewrites length-prefixed NAL units with four-byte start codes.