RDK Documentation (Open Sourced RDK Components)
GenericContainerBox Class Reference

Class for ISO BMFF Box container Eg: MOOV, MOOF, TRAK, MDIA. More...

#include <isobmffbox.h>

Inheritance diagram for GenericContainerBox:
Inheritance graph
Collaboration diagram for GenericContainerBox:
Collaboration graph

Public Member Functions

 GenericContainerBox (uint32_t sz, const char btype[4])
 GenericContainerBox constructor. More...
 
virtual ~GenericContainerBox ()
 GenericContainerBox destructor.
 
void addChildren (Box *box)
 Add a box as a child box. More...
 
bool hasChildren () override
 To check if box has any child boxes. More...
 
const std::vector< Box * > * getChildren () override
 Get children of this box. More...
 
- Public Member Functions inherited from Box
 Box (uint32_t sz, const char btype[4])
 Box constructor. More...
 
virtual ~Box ()
 Box destructor.
 
void setOffset (uint32_t os)
 Set box's offset from the beginning of the buffer. More...
 
uint32_t getOffset () const
 Get box offset. More...
 
uint32_t getSize () const
 Get box size. More...
 
const char * getType ()
 Get box type. More...
 
const char * getBoxType () const
 Get box type. More...
 

Static Public Member Functions

static GenericContainerBoxconstructContainer (uint32_t sz, const char btype[4], uint8_t *ptr, int newTrackId=-1)
 
- Static Public Member Functions inherited from Box
static BoxconstructBox (uint8_t *hdr, uint32_t maxSz, AampLogManager *mLOgObj=NULL, bool correctBoxSize=false, int newTrackId=-1)
 

Private Attributes

std::vector< Box * > children
 

Additional Inherited Members

- Static Public Attributes inherited from Box
static constexpr const char * FTYP = "ftyp"
 
static constexpr const char * MOOV = "moov"
 
static constexpr const char * MVHD = "mvhd"
 
static constexpr const char * TRAK = "trak"
 
static constexpr const char * MDIA = "mdia"
 
static constexpr const char * MDHD = "mdhd"
 
static constexpr const char * EMSG = "emsg"
 
static constexpr const char * MOOF = "moof"
 
static constexpr const char * TFHD = "tfhd"
 
static constexpr const char * TRAF = "traf"
 
static constexpr const char * TFDT = "tfdt"
 
static constexpr const char * TRUN = "trun"
 
static constexpr const char * MDAT = "mdat"
 
static constexpr const char * TKHD = "tkhd"
 
static constexpr const char * STYP = "styp"
 
static constexpr const char * SIDX = "sidx"
 
static constexpr const char * PRFT = "prft"
 

yes

Class for ISO BMFF Box container Eg: MOOV, MOOF, TRAK, MDIA.

Definition at line 203 of file isobmffbox.h.

Constructor & Destructor Documentation

◆ GenericContainerBox()

GenericContainerBox::GenericContainerBox ( uint32_t  sz,
const char  btype[4] 
)

GenericContainerBox constructor.

Parameters
[in]sz- box size
[in]btype- box type

Definition at line 257 of file isobmffbox.cpp.

Member Function Documentation

◆ addChildren()

GenericContainerBox::addChildren ( Box box)

Add a box as a child box.

Parameters
[in]box- child box object
Returns
void

Definition at line 279 of file isobmffbox.cpp.

◆ hasChildren()

GenericContainerBox::hasChildren ( )
overridevirtual

To check if box has any child boxes.

Returns
true if this box has other boxes as children

Reimplemented from Box.

Definition at line 287 of file isobmffbox.cpp.

◆ getChildren()

GenericContainerBox::getChildren ( )
overridevirtual

Get children of this box.

Returns
array of child boxes

Reimplemented from Box.

Definition at line 295 of file isobmffbox.cpp.

◆ constructContainer()

GenericContainerBox::constructContainer ( uint32_t  sz,
const char  btype[4],
uint8_t *  ptr,
int  newTrackId = -1 
)
static
Parameters
[in]sz- box size
[in]btype- box type
[in]ptr- pointer to box
[in]newTrackId- new track id to overwrite the existing track id, when value is -1, it will not override
Returns
newly constructed GenericContainerBox object

Definition at line 310 of file isobmffbox.cpp.


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