AnnexBToAvccConverter


@UnstableApi
public 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

default static final AnnexBToAvccConverter

Default implementation for AnnexBToAvccConverter.

Public methods

abstract ByteBuffer
process(ByteBuffer inputBuffer)

Returns the processed ByteBuffer.

Constants

DEFAULT

default static final AnnexBToAvccConverter DEFAULT

Default implementation for AnnexBToAvccConverter.

Public methods

process

abstract ByteBuffer process(ByteBuffer inputBuffer)

Returns the processed ByteBuffer.

Expects a ByteBuffer input with a zero offset.

Parameters
ByteBuffer inputBuffer

The buffer to be converted.