Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_VideoElementaryStream_Samsung_1_0 Struct Reference

#include <ppb_media_data_source_samsung.h>

Public Attributes

PP_Bool(* IsVideoElementaryStream )(PP_Resource resource)
 
PP_VideoCodec_Type_Samsung(* GetVideoCodecType )(PP_Resource stream)
 
void(* SetVideoCodecType )(PP_Resource stream, PP_VideoCodec_Type_Samsung video_codec)
 
PP_VideoCodec_Profile_Samsung(* GetVideoCodecProfile )(PP_Resource stream)
 
void(* SetVideoCodecProfile )(PP_Resource stream, PP_VideoCodec_Profile_Samsung profile)
 
PP_VideoFrame_Format_Samsung(* GetVideoFrameFormat )(PP_Resource stream)
 
void(* SetVideoFrameFormat )(PP_Resource stream, PP_VideoFrame_Format_Samsung frame_format)
 
void(* GetVideoFrameSize )(PP_Resource stream, struct PP_Size *size)
 
void(* SetVideoFrameSize )(PP_Resource stream, const struct PP_Size *size)
 
void(* GetFrameRate )(PP_Resource stream, uint32_t *numerator, uint32_t *denominator)
 
void(* SetFrameRate )(PP_Resource stream, uint32_t numerator, uint32_t denominator)
 
void(* SetCodecExtraData )(PP_Resource stream, uint32_t extra_data_size, const void *extra_data)
 

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

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

Member Data Documentation

void(* PPB_VideoElementaryStream_Samsung_1_0::GetFrameRate)(PP_Resource stream, uint32_t *numerator, uint32_t *denominator)

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.

Parameters
[in]streamA PP_Resource identifying the video elementary stream.
[out]numeratorA dividend of the quotient.
[out]denominatorA divisor of the quotient.
PP_VideoCodec_Profile_Samsung(* PPB_VideoElementaryStream_Samsung_1_0::GetVideoCodecProfile)(PP_Resource stream)

Retrieves current video codec profile.

Parameters
[in]streamA PP_Resource identifying the video elementary stream.
Returns
Current audio codec profile.
PP_VideoCodec_Type_Samsung(* PPB_VideoElementaryStream_Samsung_1_0::GetVideoCodecType)(PP_Resource stream)

Retrieves current video codec type.

Parameters
[in]streamA PP_Resource identifying the video elementary stream.
Returns
Current video codec type.
PP_VideoFrame_Format_Samsung(* PPB_VideoElementaryStream_Samsung_1_0::GetVideoFrameFormat)(PP_Resource stream)

Retrieves current video frame format.

Parameters
[in]streamA PP_Resource identifying the video elementary stream.
Returns
Current video frame format.
void(* PPB_VideoElementaryStream_Samsung_1_0::GetVideoFrameSize)(PP_Resource stream, struct PP_Size *size)

Retrieves current video frame size in pixels.

Parameters
[in]streamA PP_Resource identifying the video elementary stream.
[out]sizeCurrent video frame size in pixels.
PP_Bool(* PPB_VideoElementaryStream_Samsung_1_0::IsVideoElementaryStream)(PP_Resource resource)

Determines if the given resource is an video elementary stream.

Parameters
[in]resourceA PP_Resource identifying a resource.
Returns
PP_TRUE if the resource is a PPB_VideoElementaryStream_Samsung, PP_FALSE if the resource is invalid or some other type.
void(* PPB_VideoElementaryStream_Samsung_1_0::SetCodecExtraData)(PP_Resource stream, 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]streamA PP_Resource identifying the video elementary stream.
[in]extra_data_sizeSize in bytes of |extra_data| buffer.
[in]extra_dataA pointer to the buffer containing video codec specific extra data.
void(* PPB_VideoElementaryStream_Samsung_1_0::SetFrameRate)(PP_Resource stream, uint32_t numerator, uint32_t denominator)

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

Both |numerator| and |denominator| must be non-null, otherwise no information is set. Additionally |denominator| must be positive (!= 0).

Parameters
[in]streamA PP_Resource identifying the video elementary stream.
[in]numeratorA dividend of the quotient.
[in]denominatorA divisor of the quotient.
void(* PPB_VideoElementaryStream_Samsung_1_0::SetVideoCodecProfile)(PP_Resource stream, PP_VideoCodec_Profile_Samsung profile)

Sets 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.
Parameters
[in]streamA PP_Resource identifying the video elementary stream.
[in]profileNew video codec profile.
void(* PPB_VideoElementaryStream_Samsung_1_0::SetVideoCodecType)(PP_Resource stream, PP_VideoCodec_Type_Samsung video_codec)

Sets new video codec type.

Remarks
This is a mandatory parameter which must be set for every stream.
Parameters
[in]streamA PP_Resource identifying the video elementary stream.
[in]audio_codecNew video codec type.
void(* PPB_VideoElementaryStream_Samsung_1_0::SetVideoFrameFormat)(PP_Resource stream, PP_VideoFrame_Format_Samsung frame_format)

Sets 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.
Parameters
[in]streamA PP_Resource identifying the video elementary stream.
[in]frame_formatNew video frame format.
void(* PPB_VideoElementaryStream_Samsung_1_0::SetVideoFrameSize)(PP_Resource stream, const struct PP_Size *size)

Sets new video frame size in pixels.

Parameters
[in]streamA PP_Resource identifying the video elementary stream.
[in]sizeNew video frame size in pixels.

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