#include <ppb_media_data_source_samsung.h>
|
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) |
|
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.
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] | stream | A PP_Resource identifying the video elementary stream. |
[out] | numerator | A dividend of the quotient. |
[out] | denominator | A divisor of the quotient. |
PP_VideoCodec_Profile_Samsung(* PPB_VideoElementaryStream_Samsung_1_0::GetVideoCodecProfile)(PP_Resource stream) |
Retrieves current video codec profile.
- Parameters
-
[in] | stream | A 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] | stream | A 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] | stream | A 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] | stream | A PP_Resource identifying the video elementary stream. |
[out] | size | Current 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] | resource | A 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] | stream | A PP_Resource identifying the video elementary stream. |
[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(* 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] | stream | A PP_Resource identifying the video elementary stream. |
[in] | numerator | A dividend of the quotient. |
[in] | denominator | A divisor of the quotient. |
void(* PPB_VideoElementaryStream_Samsung_1_0::SetVideoCodecProfile)(PP_Resource stream, PP_VideoCodec_Profile_Samsung profile) |
Sets new video codec profile.
- Parameters
-
[in] | stream | A PP_Resource identifying the video elementary stream. |
[in] | profile | New video codec profile. |
void(* PPB_VideoElementaryStream_Samsung_1_0::SetVideoCodecType)(PP_Resource stream, PP_VideoCodec_Type_Samsung video_codec) |
Sets new video codec type.
- Parameters
-
[in] | stream | A PP_Resource identifying the video elementary stream. |
[in] | audio_codec | New video codec type. |
void(* PPB_VideoElementaryStream_Samsung_1_0::SetVideoFrameFormat)(PP_Resource stream, PP_VideoFrame_Format_Samsung frame_format) |
Sets new video frame format.
- Parameters
-
[in] | stream | A PP_Resource identifying the video elementary stream. |
[in] | frame_format | New 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] | stream | A PP_Resource identifying the video elementary stream. |
[in] | size | New video frame size in pixels. |
The documentation for this struct was generated from the following file: