Rialto  0.1
Rialto media pipeline API
Public Member Functions | Protected Member Functions | List of all members
firebolt::rialto::IMediaPipeline::MediaSourceVideo Class Reference

A class that represents media source video derived from MediaSource class, which represents the source of media data. More...

#include <IMediaPipeline.h>

Inheritance diagram for firebolt::rialto::IMediaPipeline::MediaSourceVideo:
Inheritance graph
[legend]
Collaboration diagram for firebolt::rialto::IMediaPipeline::MediaSourceVideo:
Collaboration graph
[legend]

Public Member Functions

 MediaSourceVideo (const std::string &mimeType, bool hasDrm=true, int32_t width=firebolt::rialto::kUndefinedSize, int32_t height=firebolt::rialto::kUndefinedSize, SegmentAlignment alignment=SegmentAlignment::UNDEFINED, StreamFormat streamFormat=StreamFormat::UNDEFINED, const std::shared_ptr< CodecData > &codecData=nullptr)
 Constructor for video specific configuration. More...
 
MediaSourceType getType () const override
 Return the source type.
 
std::unique_ptr< MediaSourcecopy () const
 Create a copy.
 
int32_t getWidth () const
 Gets the width of the video. More...
 
int32_t getHeight () const
 Gets the height of the video. More...
 
- Public Member Functions inherited from firebolt::rialto::IMediaPipeline::MediaSourceAV
SegmentAlignment getSegmentAlignment () const
 Gets the segment alignment.
 
const std::shared_ptr< CodecData > & getCodecData () const
 Gets the codec data.
 
StreamFormat getStreamFormat () const
 Gets the stream format.
 
- Public Member Functions inherited from firebolt::rialto::IMediaPipeline::MediaSource
virtual ~MediaSource ()
 Virtual destructor.
 
std::string getMimeType () const
 Return the MIME type.
 
bool getHasDrm () const
 Return if source has drm.
 
SourceConfigType getConfigType () const
 Return the source config type.
 
int32_t getId () const
 Return the source id.
 
void setId (int32_t id)
 Set the source id.
 

Protected Member Functions

 MediaSourceVideo (SourceConfigType sourceConfigType, const std::string &mimeType, bool hasDrm=true, int32_t width=firebolt::rialto::kUndefinedSize, int32_t height=firebolt::rialto::kUndefinedSize, SegmentAlignment alignment=SegmentAlignment::UNDEFINED, StreamFormat streamFormat=StreamFormat::UNDEFINED, const std::shared_ptr< CodecData > &codecData=nullptr)
 Constructor for video specific configuration. More...
 
- Protected Member Functions inherited from firebolt::rialto::IMediaPipeline::MediaSourceAV
 MediaSourceAV (SourceConfigType configType=SourceConfigType::UNKNOWN, const std::string &mimeType=std::string(), bool hasDrm=true, SegmentAlignment alignment=SegmentAlignment::UNDEFINED, StreamFormat streamFormat=StreamFormat::UNDEFINED, const std::shared_ptr< CodecData > &codecData=nullptr)
 Default constructor. More...
 
- Protected Member Functions inherited from firebolt::rialto::IMediaPipeline::MediaSource
 MediaSource (SourceConfigType configType=SourceConfigType::UNKNOWN, const std::string &mimeType=std::string(), bool hasDrm=true)
 Default constructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from firebolt::rialto::IMediaPipeline::MediaSourceAV
SegmentAlignment m_alignment
 The alignment of media segment.
 
StreamFormat m_streamFormat
 The stream format.
 
std::shared_ptr< CodecDatam_codecData
 Additional data for decoder.
 
- Protected Attributes inherited from firebolt::rialto::IMediaPipeline::MediaSource
int32_t m_id
 The source id. Parameter will be set by a successful call to attachSource()
 
SourceConfigType m_configType
 The source config type.
 
std::string m_mimeType
 The MIME type.
 
bool m_hasDrm
 Parameter to check if encrypted frames will be used for this source.
 

Detailed Description

A class that represents media source video derived from MediaSource class, which represents the source of media data.

Constructor & Destructor Documentation

◆ MediaSourceVideo() [1/2]

firebolt::rialto::IMediaPipeline::MediaSourceVideo::MediaSourceVideo ( const std::string &  mimeType,
bool  hasDrm = true,
int32_t  width = firebolt::rialto::kUndefinedSize,
int32_t  height = firebolt::rialto::kUndefinedSize,
SegmentAlignment  alignment = SegmentAlignment::UNDEFINED,
StreamFormat  streamFormat = StreamFormat::UNDEFINED,
const std::shared_ptr< CodecData > &  codecData = nullptr 
)
inline

Constructor for video specific configuration.

Parameters
[in]mimeType: The mime type string.
[in]hasDrm: Information if source will use drm
[in]width: The width of the video
[in]height: The height of the video
[in]alignment: The alignment of media segment.
[in]streamFormat: The stream format
[in]codecData: The additional data for decoder

◆ MediaSourceVideo() [2/2]

firebolt::rialto::IMediaPipeline::MediaSourceVideo::MediaSourceVideo ( SourceConfigType  sourceConfigType,
const std::string &  mimeType,
bool  hasDrm = true,
int32_t  width = firebolt::rialto::kUndefinedSize,
int32_t  height = firebolt::rialto::kUndefinedSize,
SegmentAlignment  alignment = SegmentAlignment::UNDEFINED,
StreamFormat  streamFormat = StreamFormat::UNDEFINED,
const std::shared_ptr< CodecData > &  codecData = nullptr 
)
inlineprotected

Constructor for video specific configuration.

Parameters
[in]sourceConfigType: The source config type
[in]mimeType: The mime type string.
[in]hasDrm: Information if source will use drm
[in]width: The width of the video
[in]height: The height of the video
[in]alignment: The alignment of media segment.
[in]streamFormat: The stream format
[in]codecData: The additional data for decoder

Member Function Documentation

◆ getHeight()

int32_t firebolt::rialto::IMediaPipeline::MediaSourceVideo::getHeight ( ) const
inline

Gets the height of the video.

Return values
heightof the video

◆ getWidth()

int32_t firebolt::rialto::IMediaPipeline::MediaSourceVideo::getWidth ( ) const
inline

Gets the width of the video.

Return values
widthof the video

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