|
NaCl Player API
NaCl Player API Documentation
|
#include <es_data_source.h>


Public Member Functions | |
| VideoElementaryStream (const VideoElementaryStream &other) | |
| VideoElementaryStream & | operator= (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) | |
| ElementaryStream & | operator= (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 |
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.
|
virtual |
Retrieves stream type represented by this resource, in this case ElementaryStream::Video.
Implements Samsung::NaClPlayer::ElementaryStream.
| 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.
| [in] | extra_data_size | Size in bytes of extra_data buffer. |
| [in] | extra_data | A pointer to the buffer containing video codec specific extra data. |
| void Samsung::NaClPlayer::VideoElementaryStream::SetFrameRate | ( | const Rational & | r | ) |
Sets new video frame rate as rational number. Denominator of rational number must be positive (> 0).
| void Samsung::NaClPlayer::VideoElementaryStream::SetVideoCodecProfile | ( | VideoCodec_Profile | video_codec | ) |
Sets a new video codec profile.
| void Samsung::NaClPlayer::VideoElementaryStream::SetVideoCodecType | ( | VideoCodec_Type | video_codec | ) |
Sets a new video codec type.
| void Samsung::NaClPlayer::VideoElementaryStream::SetVideoFrameFormat | ( | VideoFrame_Format | frame_format | ) |
Sets a new video frame format.