RDK Documentation (Open Sourced RDK Components)
PrftBox Class Reference

Class for ISO BMFF TFHD Box. More...

#include <isobmffbox.h>

Inheritance diagram for PrftBox:
Inheritance graph
Collaboration diagram for PrftBox:
Collaboration graph

Public Member Functions

 PrftBox (uint32_t sz, uint32_t trackId, uint64_t ntpTs, uint64_t mediaTime)
 PrftBox constructor.
 
 PrftBox (FullBox &fbox, uint32_t trackId, uint64_t ntpTs, uint64_t mediaTime)
 PrftBox constructor.
 
void setTrackId (uint32_t trackId)
 Set Track Id value. More...
 
uint32_t getTrackId ()
 Get Track id value. More...
 
void setNtpTs (uint64_t ntpTs)
 Set NTP Ts value. More...
 
uint64_t getNtpTs ()
 Get ntp Timestamp value. More...
 
void setMediaTime (uint64_t mediaTime)
 Set Sample Duration value. More...
 
uint64_t getMediaTime ()
 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 PrftBoxconstructPrftBox (uint32_t sz, uint8_t *ptr)
 Static function to construct a PrftBox 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 track_id
 
uint64_t ntp_ts
 
uint64_t media_time
 

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 776 of file isobmffbox.h.

Member Function Documentation

◆ setTrackId()

PrftBox::setTrackId ( uint32_t  trackId)

Set Track Id value.

Parameters
[in]trackId- Track Id value
Returns
void

Definition at line 999 of file isobmffbox.cpp.

◆ getTrackId()

PrftBox::getTrackId ( )

Get Track id value.

Returns
track_id value

Definition at line 1007 of file isobmffbox.cpp.

◆ setNtpTs()

PrftBox::setNtpTs ( uint64_t  ntpTs)

Set NTP Ts value.

Parameters
[in]ntpTs- ntp timestamp value
Returns
void

Definition at line 1015 of file isobmffbox.cpp.

◆ getNtpTs()

PrftBox::getNtpTs ( )

Get ntp Timestamp value.

Returns
ntp_ts value

Definition at line 1023 of file isobmffbox.cpp.

◆ setMediaTime()

PrftBox::setMediaTime ( uint64_t  mediaTime)

Set Sample Duration value.

Parameters
[in]mediaTime- metia time value
Returns
void

Definition at line 1031 of file isobmffbox.cpp.

◆ getMediaTime()

PrftBox::getMediaTime ( )

Get SampleDuration value.

Returns
media_time value

Definition at line 1039 of file isobmffbox.cpp.

◆ constructPrftBox()

PrftBox::constructPrftBox ( uint32_t  sz,
uint8_t *  ptr 
)
static

Static function to construct a PrftBox object.

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

Definition at line 1047 of file isobmffbox.cpp.


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