RDK Documentation (Open Sourced RDK Components)
TrakBox Class Reference

Class for ISO BMFF TRAK container. More...

#include <isobmffbox.h>

Inheritance diagram for TrakBox:
Inheritance graph
Collaboration diagram for TrakBox:
Collaboration graph

Public Member Functions

 TrakBox (uint32_t sz)
 Trak constructor. More...
 
uint32_t getTrack_Id ()
 track_id getter More...
 
- Public Member Functions inherited from GenericContainerBox
 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 TrakBoxconstructTrakBox (uint32_t sz, uint8_t *ptr, int newTrackId=-1)
 
- Static Public Member Functions inherited from GenericContainerBox
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

uint32_t track_id
 

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 TRAK container.

Definition at line 260 of file isobmffbox.h.

Constructor & Destructor Documentation

◆ TrakBox()

TrakBox::TrakBox ( uint32_t  sz)
inline

Trak constructor.

Parameters
[in]sz- box size

Definition at line 270 of file isobmffbox.h.

Member Function Documentation

◆ constructTrakBox()

TrakBox::constructTrakBox ( uint32_t  sz,
uint8_t *  ptr,
int  newTrackId = -1 
)
static
Parameters
[in]sz- box size
[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 trak object

Definition at line 1073 of file isobmffbox.cpp.

◆ getTrack_Id()

uint32_t TrakBox::getTrack_Id ( )
inline

track_id getter

Returns
trak_id

Definition at line 288 of file isobmffbox.h.


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