Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
pp::VideoElementaryStream_Samsung Class Reference

#include <es_data_source_samsung.h>

Inheritance diagram for pp::VideoElementaryStream_Samsung:
pp::ElementaryStream_Samsung pp::Resource

Public Member Functions

 VideoElementaryStream_Samsung (PP_Resource resource)
 
 VideoElementaryStream_Samsung (PassRef, PP_Resource resource)
 
 VideoElementaryStream_Samsung (const VideoElementaryStream_Samsung &other)
 
VideoElementaryStream_Samsungoperator= (const VideoElementaryStream_Samsung &other)
 
virtual
PP_ElementaryStream_Type_Samsung 
GetStreamType () const
 
PP_VideoCodec_Type_Samsung GetVideoCodecType () const
 Retrieves a currently set video codec type.
 
void SetVideoCodecType (PP_VideoCodec_Type_Samsung video_codec)
 
PP_VideoCodec_Profile_Samsung GetVideoCodecProfile () const
 Retrieves a currently set video codec type.
 
void SetVideoCodecProfile (PP_VideoCodec_Profile_Samsung video_codec)
 
PP_VideoFrame_Format_Samsung GetVideoFrameFormat () const
 Retrieves a currently set video codec profile.
 
void SetVideoFrameFormat (PP_VideoFrame_Format_Samsung frame_format)
 
PP_Size GetVideoFrameSize () const
 Retrieves current video frame size in pixels.
 
void SetVideoFrameSize (const PP_Size &size)
 Sets new video frame size in pixels.
 
void GetFrameRate (uint32_t *numerator, uint32_t *denominator) const
 
void SetFrameRate (uint32_t numerator, uint32_t denominator)
 
void SetCodecExtraData (uint32_t extra_data_size, const void *extra_data)
 
- Public Member Functions inherited from pp::ElementaryStream_Samsung
 ElementaryStream_Samsung (const ElementaryStream_Samsung &other)
 
ElementaryStream_Samsungoperator= (const ElementaryStream_Samsung &other)
 
int32_t InitializeDone (const CompletionCallback &callback)
 
int32_t InitializeDone (PP_StreamInitializationMode mode, const CompletionCallback &callback)
 
int32_t AppendPacket (const PP_ESPacket &packet, const CompletionCallback &callback)
 
int32_t AppendEncryptedPacket (const PP_ESPacket &packet, const PP_ESPacketEncryptionInfo &encryption_info, const CompletionCallback &callback)
 
int32_t AppendTrustZonePacket (const PP_ESPacket &packet, const PP_TrustZoneReference &handle, const CompletionCallback &callback)
 
int32_t Flush (const CompletionCallback &callback)
 
int32_t SetDRMInitData (uint32_t type_size, const void *type, uint32_t init_data_size, const void *init_data, const CompletionCallback &callback)
 
int32_t SetDRMInitData (const std::string &type, uint32_t init_data_size, const void *init_data, const CompletionCallback &callback)
 
- Public Member Functions inherited from pp::Resource
 Resource ()
 The default constructor.
 
 Resource (const Resource &other)
 
virtual ~Resource ()
 Destructor.
 
Resourceoperator= (const Resource &other)
 
bool is_null () const
 
PP_Resource pp_resource () const
 
PP_Resource detach ()
 

Additional Inherited Members

- Protected Member Functions inherited from pp::ElementaryStream_Samsung
 ElementaryStream_Samsung (PP_Resource resource)
 
 ElementaryStream_Samsung (const Resource &resource)
 
 ElementaryStream_Samsung (PassRef, PP_Resource resource)
 
- Protected Member Functions inherited from pp::Resource
 Resource (PP_Resource resource)
 
 Resource (PassRef, PP_Resource resource)
 
void PassRefFromConstructor (PP_Resource resource)
 
void Clear ()
 Sets this resource to null. This releases ownership of the resource.
 

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_Samsung.InitializeDone.

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

Member Function Documentation

void pp::VideoElementaryStream_Samsung::GetFrameRate ( uint32_t *  numerator,
uint32_t *  denominator 
) const

Retrieves current video frame rate as rational number represented by fraction |numerator| / |denominator|.

Both |numerator| and |denominator| must be non-null, otherwise no information is retrieved.

virtual PP_ElementaryStream_Type_Samsung pp::VideoElementaryStream_Samsung::GetStreamType ( ) const
virtual

Retrieves stream type represented by this resource, in this case PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_VIDEO.

Implements pp::ElementaryStream_Samsung.

void pp::VideoElementaryStream_Samsung::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.
void pp::VideoElementaryStream_Samsung::SetFrameRate ( uint32_t  numerator,
uint32_t  denominator 
)

Sets new video frame rate as rational number represented by fraction |numerator| / |denominator|.

|denominator| must be positive (!= 0) otherwise no information is set.

void pp::VideoElementaryStream_Samsung::SetVideoCodecProfile ( PP_VideoCodec_Profile_Samsung  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.
void pp::VideoElementaryStream_Samsung::SetVideoCodecType ( PP_VideoCodec_Type_Samsung  video_codec)

Sets a new video codec type.

Remarks
This is a mandatory parameter which must be set for every stream.
void pp::VideoElementaryStream_Samsung::SetVideoFrameFormat ( PP_VideoFrame_Format_Samsung  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: