RDK Documentation (Open Sourced RDK Components)
MediaProcessor Class Referenceabstract

Base Class for Media Container Processor. More...

#include <mediaprocessor.h>

Inheritance diagram for MediaProcessor:
Inheritance graph
Collaboration diagram for MediaProcessor:
Collaboration graph

Public Member Functions

 MediaProcessor ()
 MediaProcessor constructor.
 
virtual ~MediaProcessor ()
 MediaProcessor destructor.
 
 MediaProcessor (const MediaProcessor &)=delete
 
MediaProcessoroperator= (const MediaProcessor &)=delete
 
virtual bool sendSegment (char *segment, size_t &size, double position, double duration, bool discontinuous, bool &ptsError)=0
 
virtual void setRate (double rate, PlayMode mode)=0
 Set playback rate. More...
 
virtual void setThrottleEnable (bool enable)=0
 Enable or disable throttle. More...
 
virtual void setFrameRateForTM (int frameRate)=0
 Set frame rate for trickmode. More...
 
virtual void abort ()=0
 Abort all operations. More...
 
virtual void reset ()=0
 Reset all variables. More...
 
virtual void ChangeMuxedAudioTrack (unsigned char index)
 
virtual void SetAudioGroupId (std::string &id)
 Function to set the group-ID. More...
 
virtual void setApplyOffsetFlag (bool enable)
 Function to set a offsetflag. if the value is fasle, no need to apply offset while doing pts restamping. More...
 

yes

Base Class for Media Container Processor.

Definition at line 47 of file mediaprocessor.h.

Member Function Documentation

◆ sendSegment()

MediaProcessor::sendSegment ( char *  segment,
size_t &  size,
double  position,
double  duration,
bool  discontinuous,
bool &  ptsError 
)
pure virtual
Parameters
[in]segment- fragment buffer pointer
[in]size- fragment buffer size
[in]position- position of fragment
[in]duration- duration of fragment
[in]discontinuous- true if discontinuous fragment
[out]ptsError- flag indicates if any PTS error occurred
Returns
true if fragment was sent, false otherwise

Implemented in IsoBmffProcessor, and TSProcessor.

◆ setRate()

virtual void MediaProcessor::setRate ( double  rate,
PlayMode  mode 
)
pure virtual

Set playback rate.

Parameters
[in]rate- playback rate
[in]mode- playback mode
Returns
void

Implemented in IsoBmffProcessor, and TSProcessor.

◆ setThrottleEnable()

virtual void MediaProcessor::setThrottleEnable ( bool  enable)
pure virtual

Enable or disable throttle.

Parameters
[in]enable- throttle enable/disable
Returns
void

Implemented in IsoBmffProcessor, and TSProcessor.

◆ setFrameRateForTM()

virtual void MediaProcessor::setFrameRateForTM ( int  frameRate)
pure virtual

Set frame rate for trickmode.

Parameters
[in]frameRate- rate per second
Returns
void

Implemented in IsoBmffProcessor, and TSProcessor.

◆ abort()

virtual void MediaProcessor::abort ( )
pure virtual

Abort all operations.

Returns
void

Implemented in IsoBmffProcessor, and TSProcessor.

◆ reset()

virtual void MediaProcessor::reset ( )
pure virtual

Reset all variables.

Returns
void

Implemented in IsoBmffProcessor, and TSProcessor.

◆ SetAudioGroupId()

virtual void MediaProcessor::SetAudioGroupId ( std::string &  id)
inlinevirtual

Function to set the group-ID.

Parameters
[in]string- id

Reimplemented in TSProcessor.

Definition at line 131 of file mediaprocessor.h.

◆ setApplyOffsetFlag()

virtual void MediaProcessor::setApplyOffsetFlag ( bool  enable)
inlinevirtual

Function to set a offsetflag. if the value is fasle, no need to apply offset while doing pts restamping.

Parameters
[in]bool- true/false

Reimplemented in TSProcessor.

Definition at line 137 of file mediaprocessor.h.


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