arduino-audio-tools
Public Member Functions | Public Attributes | Friends | List of all members
MP4Atom Struct Reference

Represents a single MPEG4 atom. More...

#include <ContainerMP4.h>

Public Member Functions

 MP4Atom (ContainerMP4 *container)
 
 MP4Atom (ContainerMP4 *container, const char *atom)
 
void clear ()
 Clears the atom.
 
bool is (const char *atom)
 Compares the atom name.
 
bool isHeader ()
 Returns true if the atom is a header atom.
 
bool isStreamAtom ()
 Atom which is sent to print output.
 
 operator bool ()
 
uint16_t read16 (int pos)
 
uint32_t read32 (int pos)
 
void setData (const uint8_t *data, int len_data)
 Updates the data and size field.
 
void setHeader (uint8_t *data, int total)
 

Public Attributes

char atom [5] = {0}
 4 digit atom name
 
ContainerMP4container = nullptr
 
const uint8_t * data = nullptr
 
int data_size = 0
 
bool is_header_atom
 true if atom is header w/o data content
 
bool is_stream = false
 data is provided in
 
int start_pos = 0
 
int total_size = 0
 size w/o size and atom fields
 

Friends

class ContainerMP4
 

Detailed Description

Represents a single MPEG4 atom.

Author
Phil Schatzmann

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