RDK Documentation (Open Sourced RDK Components)
TfhdBox Class Reference

Class for ISO BMFF TFHD Box. More...

#include <isobmffbox.h>

Inheritance diagram for TfhdBox:
Inheritance graph
Collaboration diagram for TfhdBox:
Collaboration graph

Public Member Functions

 TfhdBox (uint32_t sz, uint64_t sample_duration)
 TfhdBox constructor.
 
 TfhdBox (FullBox &fbox, uint64_t sample_duration)
 TfhdBox constructor.
 
void setSampleDuration (uint64_t sample_duration)
 Set Sample Duration 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 TfhdBoxconstructTfhdBox (uint32_t sz, uint8_t *ptr)
 Static function to construct a TfdtBox 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 TFHD Box.

Definition at line 725 of file isobmffbox.h.

Member Function Documentation

◆ setSampleDuration()

TfhdBox::setSampleDuration ( uint64_t  sample_duration)

Set Sample Duration value.

Parameters
[in]sample_duration- SampleDuration value
Returns
void

Definition at line 906 of file isobmffbox.cpp.

◆ getSampleDuration()

TfhdBox::getSampleDuration ( )

Get SampleDuration value.

Returns
SampleDuration value

Definition at line 914 of file isobmffbox.cpp.

◆ constructTfhdBox()

TfhdBox::constructTfhdBox ( uint32_t  sz,
uint8_t *  ptr 
)
static

Static function to construct a TfdtBox object.

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

Definition at line 922 of file isobmffbox.cpp.


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