Pepper_31_C_interfaces
Main Page
Modules
Classes
Files
File List
File Members
samsung
pp_media_source_samsung.h
Go to the documentation of this file.
1
/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2
* Use of this source code is governed by a BSD-style license that can be
3
* found in the LICENSE file.
4
*/
5
6
/* From samsung/pp_media_source_samsung.idl,
7
* modified Wed Dec 11 11:35:05 2013.
8
*/
9
10
#ifndef PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_
11
#define PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_
12
13
#include "ppapi/c/pp_macros.h"
14
#include "ppapi/c/pp_stdint.h"
15
#include "ppapi/c/samsung/pp_media_common_samsung.h"
16
17
/**
18
* @file
19
* This file defines structures used to decribe Time Ranges and Media Source
20
* states.
21
*/
22
23
24
/**
25
* @addtogroup Structs
26
* @{
27
*/
28
/**
29
* The <code>PP_TimeRange</code> struct contains information about buffered
30
* time range - it's start and end.
31
*/
32
struct
PP_TimeRange
{
33
/**
34
* Time in microseconds of begining of buffered data
35
*/
36
PP_MicrosecondsDelta
start
;
37
/**
38
* Time in microseconds of ending of buffered data
39
*/
40
PP_MicrosecondsDelta
end
;
41
};
42
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES
(
PP_TimeRange
, 16);
43
/**
44
* @}
45
*/
46
47
/**
48
* @addtogroup Enums
49
* @{
50
*/
51
/** Enum representing types of ReadyStates of MediaSource */
52
typedef
enum
{
53
/**Source is not attached to a media element. */
54
PP_MEDIAREADYSTATE_CLOSED
= 0,
55
/**Ready for data to be appended. */
56
PP_MEDIAREADYSTATE_OPEN
= 1,
57
/**Source is still attached to a media element, but endOfStream(
58
) has been called. */
59
PP_MEDIAREADYSTATE_ENDED
= 2
60
}
PP_MediaReadyState
;
61
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_MediaReadyState
, 4);
62
63
/** Enum representing types of state returned after adding media source */
64
typedef
enum
{
65
/**Ok - source added. */
66
PP_SOURCEADDSTATUS_OK
= 0,
67
/**Player do not support type or codecs. */
68
PP_SOURCEADDSTATUS_NOTSUPPORTED
= 1,
69
/**Player reached limit of possible sources or source IDs. */
70
PP_SOURCEADDSTATUS_REACHEDLIMIT
= 2,
71
/**ReadyState is not PP_MEDIAREADYSTATE_OPEN. */
72
PP_SOURCEADDSTATUS_INVALIDSTATE
= 3,
73
/**Type or codecs are not specified (empty strings). */
74
PP_SOURCEADDSTATUS_INVALIDINPUT
= 4,
75
/**Status unknown error. */
76
PP_SOURCEADDSTATUS_UNKNOWN
= 5
77
}
PP_SourceAddStatus
;
78
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_SourceAddStatus
, 4);
79
80
/** Enum representing types of possible returned errors */
81
typedef
enum
{
82
/** Source unknown error */
83
PP_SOURCEERROR_UNKNOWN
= 0,
84
/** No buffer with such id attached to source */
85
PP_SOURCEERROR_NO_SUCH_BUFFER
= 1,
86
/** No resource */
87
PP_SOURCEERROR_NO_SUCH_RESOURCE
= 2,
88
/** Append failed */
89
PP_SOURCEERROR_APPEND_FAILED
= 3,
90
/** signaled when trying to add new buffer to closed source. */
91
PP_SOURCEERROR_INVALID_STATE
= 4
92
}
PP_SourceError
;
93
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_SourceError
, 4);
94
/**
95
* @}
96
*/
97
98
#endif
/* PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_ */
99
PP_MEDIAREADYSTATE_OPEN
Definition:
pp_media_source_samsung.h:56
PP_MEDIAREADYSTATE_CLOSED
Definition:
pp_media_source_samsung.h:54
PP_SourceError
PP_SourceError
Definition:
pp_media_source_samsung.h:81
PP_MicrosecondsDelta
int64_t PP_MicrosecondsDelta
Definition:
pp_media_common_samsung.h:27
PP_SOURCEERROR_APPEND_FAILED
Definition:
pp_media_source_samsung.h:89
PP_TimeRange::start
PP_MicrosecondsDelta start
Definition:
pp_media_source_samsung.h:36
PP_SOURCEADDSTATUS_UNKNOWN
Definition:
pp_media_source_samsung.h:76
PP_SOURCEADDSTATUS_NOTSUPPORTED
Definition:
pp_media_source_samsung.h:68
PP_TimeRange
Definition:
pp_media_source_samsung.h:32
PP_SOURCEERROR_INVALID_STATE
Definition:
pp_media_source_samsung.h:91
PP_MediaReadyState
PP_MediaReadyState
Definition:
pp_media_source_samsung.h:52
PP_SOURCEERROR_NO_SUCH_BUFFER
Definition:
pp_media_source_samsung.h:85
PP_SOURCEADDSTATUS_REACHEDLIMIT
Definition:
pp_media_source_samsung.h:70
PP_MEDIAREADYSTATE_ENDED
Definition:
pp_media_source_samsung.h:59
PP_SourceAddStatus
PP_SourceAddStatus
Definition:
pp_media_source_samsung.h:64
PP_TimeRange::end
PP_MicrosecondsDelta end
Definition:
pp_media_source_samsung.h:40
PP_SOURCEERROR_NO_SUCH_RESOURCE
Definition:
pp_media_source_samsung.h:87
PP_SOURCEADDSTATUS_OK
Definition:
pp_media_source_samsung.h:66
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_TimeRange, 16)
PP_COMPILE_ASSERT_SIZE_IN_BYTES
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_MediaReadyState, 4)
PP_SOURCEADDSTATUS_INVALIDINPUT
Definition:
pp_media_source_samsung.h:74
PP_SOURCEERROR_UNKNOWN
Definition:
pp_media_source_samsung.h:83
PP_SOURCEADDSTATUS_INVALIDSTATE
Definition:
pp_media_source_samsung.h:72
Generated on Wed May 4 2016 11:31:13 for Pepper_31_C_interfaces by
1.8.6