RDK Documentation (Open Sourced RDK Components)
isobmffbox.h File Reference

Header file for ISO Base Media File Format Boxes. More...

#include <cstdint>
#include <vector>
#include <string.h>
#include <string>
#include "AampLogManager.h"
Include dependency graph for isobmffbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Box
 Base Class for ISO BMFF Box. More...
 
class  GenericContainerBox
 Class for ISO BMFF Box container Eg: MOOV, MOOF, TRAK, MDIA. More...
 
class  TrakBox
 Class for ISO BMFF TRAK container. More...
 
class  FullBox
 Class for single ISO BMFF Box Eg: FTYP, MDHD, MVHD, TFDT. More...
 
class  MvhdBox
 Class for ISO BMFF MVHD Box. More...
 
class  MdhdBox
 Class for ISO BMFF MDHD Box. More...
 
class  TfdtBox
 Class for ISO BMFF TFDT Box. More...
 
class  EmsgBox
 Class for ISO BMFF EMSG Box. More...
 
class  TrunBox
 Class for ISO BMFF TRUN Box. More...
 
struct  TrunBox::Entry
 
class  TfhdBox
 Class for ISO BMFF TFHD Box. More...
 
class  PrftBox
 Class for ISO BMFF TFHD Box. More...
 

Macros

#define READ_U32(buf)   (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; buf+=4;
 
#define WRITE_U64(buf, val)   buf[0]= val>>56; buf[1]= val>>48; buf[2]= val>>40; buf[3]= val>>32; buf[4]= val>>24; buf[5]= val>>16; buf[6]= val>>8; buf[7]= val;
 
#define WRITE_U32(buf, val)   buf[0]= val>>24; buf[1]= val>>16; buf[2]= val>>8; buf[3]= val;
 
#define READ_U8(dst, src, sz)   memcpy(dst, src, sz); src+=sz;
 
#define READ_VERSION(buf)   buf[0]; buf++;
 
#define READ_FLAGS(buf)   (buf[0] << 16) | (buf[1] << 8) | buf[2]; buf+=3;
 
#define READ_BMDT64(buf)   ReadUint64(buf); buf+=8;
 
#define READ_64(buf)   ReadUint64(buf); buf+=8;
 
#define IS_TYPE(value, type)   (value[0]==type[0] && value[1]==type[1] && value[2]==type[2] && value[3]==type[3])
 

Functions

uint64_t ReadUint64 (uint8_t *buf)
 Utility function to read 8 bytes from a buffer.
 
void WriteUint64 (uint8_t *dst, uint64_t val)
 Utility function to write 8 bytes to a buffer.
 
uint32_t ReadCStringLen (const uint8_t *buffer, uint32_t bufferLen)
 Read a string from buffer and return it.
 

yes

Header file for ISO Base Media File Format Boxes.

Definition in file isobmffbox.h.