arduino-audio-tools
Loading...
Searching...
No Matches
MPGParseBuffer Class Reference

Minimal byte accumulator used by DemuxerMPG to parse start-code delimited units that may straddle write() calls - analogous to (but simpler than, since Program Stream framing has no nested LIST/CHUNK structure) ContainerAVI.h's ParseBuffer. More...

#include <ContainerMPG.h>

Public Member Functions

size_t available ()
size_t availableToWrite ()
void clear ()
void consume (size_t len)
uint8_t * data ()
long indexOfStartCode (size_t from=0)
 Index of the next 00 00 01 start-code prefix at/after 'from', or -1.
void resize (size_t size)
size_t writeArray (const uint8_t *data, size_t len)

Protected Attributes

size_t count = 0
Vector< uint8_t > vec {0}

Detailed Description

Minimal byte accumulator used by DemuxerMPG to parse start-code delimited units that may straddle write() calls - analogous to (but simpler than, since Program Stream framing has no nested LIST/CHUNK structure) ContainerAVI.h's ParseBuffer.

Author
Phil Schatzmann

Member Function Documentation

◆ available()

size_t available ( )
inline

◆ availableToWrite()

size_t availableToWrite ( )
inline

◆ clear()

void clear ( )
inline

◆ consume()

void consume ( size_t len)
inline

◆ data()

uint8_t * data ( )
inline

◆ indexOfStartCode()

long indexOfStartCode ( size_t from = 0)
inline

Index of the next 00 00 01 start-code prefix at/after 'from', or -1.

◆ resize()

void resize ( size_t size)
inline

◆ writeArray()

size_t writeArray ( const uint8_t * data,
size_t len )
inline

Member Data Documentation

◆ count

size_t count = 0
protected

◆ vec

Vector<uint8_t> vec {0}
protected

The documentation for this class was generated from the following file: