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 |
Public functions |
|
|---|---|
ByteBuffer! |
process(inputBuffer: ByteBuffer!)Returns the processed |
ByteBuffer! |
process(inputBuffer: ByteBuffer!, allocator: ByteBufferAllocator!)Returns the processed |
Constants
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. |
process
fun process(inputBuffer: ByteBuffer!, allocator: ByteBufferAllocator!): ByteBuffer!
Returns the processed ByteBuffer.
Expects a ByteBuffer input with a zero offset.
| Parameters | |
|---|---|
inputBuffer: ByteBuffer! |
The buffer to be converted. |
allocator: ByteBufferAllocator! |
An allocator for |