NaCl Player API
NaCl Player API Documentation
Samsung::NaClPlayer::VideoElementaryStream Class Reference

#include <es_data_source.h>

Inheritance diagram for Samsung::NaClPlayer::VideoElementaryStream:
Collaboration diagram for Samsung::NaClPlayer::VideoElementaryStream:

Public Member Functions

 VideoElementaryStream (const VideoElementaryStream &other)
 
VideoElementaryStreamoperator= (const VideoElementaryStream &other)
 
virtual ElementaryStreamType GetStreamType () const
 
VideoCodec_Type GetVideoCodecType () const
 Retrieves a currently set video codec type.
 
void SetVideoCodecType (VideoCodec_Type video_codec)
 
VideoCodec_Profile GetVideoCodecProfile () const
 Retrieves a currently set video codec type.
 
void SetVideoCodecProfile (VideoCodec_Profile video_codec)
 
VideoFrame_Format GetVideoFrameFormat () const
 Retrieves a currently set video codec profile.
 
void SetVideoFrameFormat (VideoFrame_Format frame_format)
 
Size GetVideoFrameSize () const
 Retrieves a current video frame size in pixels.
 
void SetVideoFrameSize (const Size &size)
 Sets new video frame size in pixels.
 
Rational GetFrameRate () const
 Retrieves a current video frame rate as rational number.
 
void SetFrameRate (const Rational &r)
 
void SetCodecExtraData (uint32_t extra_data_size, const void *extra_data)
 
- Public Member Functions inherited from Samsung::NaClPlayer::ElementaryStream
 ElementaryStream (const ElementaryStream &other)
 
ElementaryStreamoperator= (const ElementaryStream &other)
 
int32_t InitializeDone (const std::function< void(int32_t)> &callback)
 
int32_t InitializeDone ()
 
int32_t InitializeDone (StreamInitializationMode mode, const std::function< void(int32_t)> &callback)
 
int32_t InitializeDone (StreamInitializationMode mode)
 
int32_t AppendPacket (const ESPacket &packet, const std::function< void(int32_t)> &callback)
 
int32_t AppendPacket (const ESPacket &packet)
 
int32_t AppendEncryptedPacket (const ESPacket &packet, const ESPacketEncryptionInfo &encryption_info, const std::function< void(int32_t)> &callback)
 
int32_t AppendEncryptedPacket (const ESPacket &packet, const ESPacketEncryptionInfo &encryption_info)
 
int32_t AppendTrustZonePacket (const ESPacket &packet, const TrustZoneReference &handle, const std::function< void(int32_t)> &callback)
 
int32_t AppendTrustZonePacket (const ESPacket &packet, const TrustZoneReference &handle)
 
int32_t Flush (const std::function< void(int32_t)> &callback)
 
int32_t Flush ()
 
int32_t SetDRMInitData (const std::string &type, uint32_t init_data_size, const void *init_data, const std::function< void(int32_t)> &callback)
 
int32_t SetDRMInitData (const std::string &type, uint32_t init_data_size, const void *init_data)
 

Protected Member Functions

ElementaryStream::Impl * impl ()
 

Friends

class ESDataSource
 

Detailed Description

Interface representing an video elementary stream and containing methods to set video codec specific configuration.

All pending configuration changes/initialization must be confirmed by call to ElementaryStream.InitializeDone.

All getters return last set configuration, which might be not confirmed yet.

Definition at line 361 of file es_data_source.h.

Member Function Documentation

◆ GetStreamType()

virtual ElementaryStreamType Samsung::NaClPlayer::VideoElementaryStream::GetStreamType ( ) const
virtual

Retrieves stream type represented by this resource, in this case ElementaryStream::Video.

Implements Samsung::NaClPlayer::ElementaryStream.

◆ SetCodecExtraData()

void Samsung::NaClPlayer::VideoElementaryStream::SetCodecExtraData ( uint32_t  extra_data_size,
const void *  extra_data 
)

Sets video codec specific extra data. Those data are needed by video codec to initialize properly video decoding.

Parameters
[in]extra_data_sizeSize in bytes of extra_data buffer.
[in]extra_dataA pointer to the buffer containing video codec specific extra data.

◆ SetFrameRate()

void Samsung::NaClPlayer::VideoElementaryStream::SetFrameRate ( const Rational r)

Sets new video frame rate as rational number. Denominator of rational number must be positive (> 0).

◆ SetVideoCodecProfile()

void Samsung::NaClPlayer::VideoElementaryStream::SetVideoCodecProfile ( VideoCodec_Profile  video_codec)

Sets a new video codec profile.

Remarks
This parameter can be figured out by the platform most of the times and therefore isn't mandatory to set for all configurations.

◆ SetVideoCodecType()

void Samsung::NaClPlayer::VideoElementaryStream::SetVideoCodecType ( VideoCodec_Type  video_codec)

Sets a new video codec type.

Remarks
This is a mandatory parameter which must be set for every stream.

◆ SetVideoFrameFormat()

void Samsung::NaClPlayer::VideoElementaryStream::SetVideoFrameFormat ( VideoFrame_Format  frame_format)

Sets a new video frame format.

Remarks
This parameter can be figured out by the platform most of the times and therefore isn't mandatory to set for all configurations.

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