AnnexBToAvccConverter


@UnstableApi
interface AnnexBToAvccConverter


Converts a buffer containing H.264/H.265 NAL units from the Annex-B format (ISO/IEC 14496-14 Annex B, which uses start codes to delineate NAL units) to the avcC format (ISO/IEC 14496-15, which uses length prefixes).

Summary

Constants

const AnnexBToAvccConverter!

Default implementation for AnnexBToAvccConverter.

Public functions

ByteBuffer!
process(inputBuffer: ByteBuffer!)

Returns the processed ByteBuffer.

Constants

DEFAULT

const val DEFAULTAnnexBToAvccConverter!

Default implementation for AnnexBToAvccConverter.

Public functions

process

fun process(inputBuffer: ByteBuffer!): ByteBuffer!

Returns the processed ByteBuffer.

Expects a ByteBuffer input with a zero offset.

Parameters
inputBuffer: ByteBuffer!

The buffer to be converted.