RDK Documentation (Open Sourced RDK Components)
MvhdBox Class Reference

Class for ISO BMFF MVHD Box. More...

#include <isobmffbox.h>

Inheritance diagram for MvhdBox:
Inheritance graph
Collaboration diagram for MvhdBox:
Collaboration graph

Public Member Functions

 MvhdBox (uint32_t sz, uint32_t tScale)
 MvhdBox constructor.
 
 MvhdBox (FullBox &fbox, uint32_t tScale)
 MvhdBox constructor.
 
void setTimeScale (uint32_t tScale)
 Set TimeScale value. More...
 
uint32_t getTimeScale ()
 Get TimeScale 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 MvhdBoxconstructMvhdBox (uint32_t sz, uint8_t *ptr)
 Static function to construct a MvhdBox 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

uint32_t timeScale
 

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 MVHD Box.

Definition at line 318 of file isobmffbox.h.

Member Function Documentation

◆ setTimeScale()

MvhdBox::setTimeScale ( uint32_t  tScale)

Set TimeScale value.

Parameters
[in]tScale- TimeScale value
Returns
void

Definition at line 352 of file isobmffbox.cpp.

◆ getTimeScale()

MvhdBox::getTimeScale ( )

Get TimeScale value.

Returns
TimeScale value

Definition at line 360 of file isobmffbox.cpp.

◆ constructMvhdBox()

MvhdBox::constructMvhdBox ( uint32_t  sz,
uint8_t *  ptr 
)
static

Static function to construct a MvhdBox object.

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

Definition at line 368 of file isobmffbox.cpp.


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