RDK Documentation (Open Sourced RDK Components)
TrunBox Class Reference

Class for ISO BMFF TRUN Box. More...

#include <isobmffbox.h>

Inheritance diagram for TrunBox:
Inheritance graph
Collaboration diagram for TrunBox:
Collaboration graph

Data Structures

struct  Entry
 

Public Member Functions

 TrunBox (uint32_t sz, uint64_t sampleDuration)
 TrunBox constructor.
 
 TrunBox (FullBox &fbox, uint64_t sampleDuration)
 TrunBox constructor.
 
void setSampleDuration (uint64_t sampleDuration)
 Set SampleDuration value. More...
 
uint64_t getSampleDuration ()
 Get sampleDuration value. More...
 
- Public Member Functions inherited from FullBox
 FullBox (uint32_t sz, const char btype[4], uint8_t ver, uint32_t f)
 FullBox constructor. 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...
 
virtual bool hasChildren ()
 To check if box has any child boxes. More...
 
virtual const std::vector< Box * > * getChildren ()
 Get children of this box. 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 TrunBoxconstructTrunBox (uint32_t sz, uint8_t *ptr)
 Static function to construct a TrunBox object. More...
 
- 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

uint64_t duration
 

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"
 
- Protected Attributes inherited from FullBox
uint8_t version
 
uint32_t flags
 

yes

Class for ISO BMFF TRUN Box.

Definition at line 666 of file isobmffbox.h.

Member Function Documentation

◆ setSampleDuration()

TrunBox::setSampleDuration ( uint64_t  sampleDuration)

Set SampleDuration value.

Parameters
[in]sampleDuration- Sample Duration value
Returns
void

Definition at line 815 of file isobmffbox.cpp.

◆ getSampleDuration()

TrunBox::getSampleDuration ( )

Get sampleDuration value.

Returns
sampleDuration value

Definition at line 823 of file isobmffbox.cpp.

◆ constructTrunBox()

TrunBox::constructTrunBox ( uint32_t  sz,
uint8_t *  ptr 
)
static

Static function to construct a TrunBox object.

Parameters
[in]sz- box size
[in]ptr- pointer to box
Returns
newly constructed TrunBox object

Definition at line 831 of file isobmffbox.cpp.


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