arduino-audio-tools
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADTSParser Class Reference

Structure to hold ADTS header field values. More...

#include <CodecADTS.h>

Classes

struct  ADTSHeader
 

Public Member Functions

bool begin ()
 
ADTSHeaderdata ()
 
int findSyncWord (const uint8_t *buf, int nBytes, int start=0)
 
uint32_t getFrameLength ()
 
int getSampleRate ()
 
bool isSyncWord (const uint8_t *buf)
 
void log ()
 
bool parse (uint8_t *hdr)
 

Protected Member Functions

bool check ()
 
bool checkRef ()
 

Protected Attributes

const int adtsSamplingRates [13]
 
ADTSHeader header
 
ADTSHeader header_ref
 
bool is_first = true
 
bool is_valid = false
 

Detailed Description

Structure to hold ADTS header field values.

Member Function Documentation

◆ begin()

bool begin ( )
inline

◆ check()

bool check ( )
inlineprotected

◆ checkRef()

bool checkRef ( )
inlineprotected

◆ data()

ADTSHeader & data ( )
inline

◆ findSyncWord()

int findSyncWord ( const uint8_t buf,
int  nBytes,
int  start = 0 
)
inline

◆ getFrameLength()

uint32_t getFrameLength ( )
inline

◆ getSampleRate()

int getSampleRate ( )
inline

◆ isSyncWord()

bool isSyncWord ( const uint8_t buf)
inline

◆ log()

void log ( )
inline

◆ parse()

bool parse ( uint8_t hdr)
inline

Member Data Documentation

◆ adtsSamplingRates

const int adtsSamplingRates[13]
protected
Initial value:
= {96000, 88200, 64000, 48000, 44100,
32000, 24000, 22050, 16000, 12000,
11025, 8000, 7350}

◆ header

ADTSHeader header
protected

◆ header_ref

ADTSHeader header_ref
protected

◆ is_first

bool is_first = true
protected

◆ is_valid

bool is_valid = false
protected

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