Pepper_37_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 Tue Dec 16 10:54:16 2014.
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 describe Media Source states.
20
*/
21
22
23
/**
24
* @addtogroup Structs
25
* @{
26
*/
27
/**
28
* The <code>PP_TimeRange</code> struct contains information about buffered
29
* time range - it's start and end.
30
*/
31
struct
PP_TimeRange
{
32
/**
33
* Time in microseconds of beginning of buffered data
34
*/
35
PP_MicrosecondsDelta
start
;
36
/**
37
* Time in microseconds of ending of buffered data
38
*/
39
PP_MicrosecondsDelta
end
;
40
};
41
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES
(
PP_TimeRange
, 16);
42
/**
43
* @}
44
*/
45
46
/**
47
* @addtogroup Enums
48
* @{
49
*/
50
/** Enum representing types of ReadyStates of MediaSource */
51
typedef
enum
{
52
/**Source is not attached to a media element. */
53
PP_MEDIAREADYSTATE_CLOSED
= 0,
54
/**Ready for data to be appended. */
55
PP_MEDIAREADYSTATE_OPEN
= 1,
56
/**Source is still attached to a media element, but endOfStream(
57
) has been called. */
58
PP_MEDIAREADYSTATE_ENDED
= 2
59
}
PP_MediaReadyState
;
60
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_MediaReadyState
, 4);
61
62
/** Enum representing types of state returned after adding media source */
63
typedef
enum
{
64
/**Ok - source added. */
65
PP_SOURCEADDSTATUS_OK
= 0,
66
/**Player do not support type or codecs. */
67
PP_SOURCEADDSTATUS_NOTSUPPORTED
= 1,
68
/**Player reached limit of possible sources or source IDs. */
69
PP_SOURCEADDSTATUS_REACHEDLIMIT
= 2,
70
/**ReadyState is not PP_MEDIAREADYSTATE_OPEN. */
71
PP_SOURCEADDSTATUS_INVALIDSTATE
= 3,
72
/**Type or codecs are not specified (empty strings). */
73
PP_SOURCEADDSTATUS_INVALIDINPUT
= 4,
74
/**Status unknown error. */
75
PP_SOURCEADDSTATUS_UNKNOWN
= 5
76
}
PP_SourceAddStatus
;
77
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_SourceAddStatus
, 4);
78
79
/** Enum representing types of possible returned errors */
80
typedef
enum
{
81
/** Source unknown error */
82
PP_SOURCEERROR_UNKNOWN
= 0,
83
/** No buffer with such id attached to source */
84
PP_SOURCEERROR_NO_SUCH_BUFFER
= 1,
85
/** No resource */
86
PP_SOURCEERROR_NO_SUCH_RESOURCE
= 2,
87
/** Append failed */
88
PP_SOURCEERROR_APPEND_FAILED
= 3,
89
/** signalled when trying to add new buffer to closed source. */
90
PP_SOURCEERROR_INVALID_STATE
= 4
91
}
PP_SourceError
;
92
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_SourceError
, 4);
93
94
/** Enum representing types of possible returned SourceEnded errors */
95
typedef
enum
{
96
/** Source ended correctly */
97
PP_SOURCEENDEDSTATUS_OK
= 0,
98
/** Source ended because of network error */
99
PP_SOURCEENDEDSTATUS_NETWORK
= 1,
100
/** Source ended because of decoding error */
101
PP_SOURCEENDEDSTATUS_DECODE
= 2
102
}
PP_SourceEndedStatus
;
103
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_SourceEndedStatus
, 4);
104
/**
105
* @}
106
*/
107
108
#endif
/* PPAPI_C_SAMSUNG_PP_MEDIA_SOURCE_SAMSUNG_H_ */
109
PP_MEDIAREADYSTATE_OPEN
Definition:
pp_media_source_samsung.h:55
PP_MEDIAREADYSTATE_CLOSED
Definition:
pp_media_source_samsung.h:53
PP_SourceError
PP_SourceError
Definition:
pp_media_source_samsung.h:80
PP_MicrosecondsDelta
int64_t PP_MicrosecondsDelta
Definition:
pp_media_common_samsung.h:27
PP_SOURCEENDEDSTATUS_NETWORK
Definition:
pp_media_source_samsung.h:99
PP_SOURCEERROR_APPEND_FAILED
Definition:
pp_media_source_samsung.h:88
PP_TimeRange::start
PP_MicrosecondsDelta start
Definition:
pp_media_source_samsung.h:35
PP_SOURCEADDSTATUS_UNKNOWN
Definition:
pp_media_source_samsung.h:75
PP_SOURCEADDSTATUS_NOTSUPPORTED
Definition:
pp_media_source_samsung.h:67
PP_TimeRange
Definition:
pp_media_source_samsung.h:31
PP_SourceEndedStatus
PP_SourceEndedStatus
Definition:
pp_media_source_samsung.h:95
PP_SOURCEERROR_INVALID_STATE
Definition:
pp_media_source_samsung.h:90
PP_MediaReadyState
PP_MediaReadyState
Definition:
pp_media_source_samsung.h:51
PP_SOURCEERROR_NO_SUCH_BUFFER
Definition:
pp_media_source_samsung.h:84
PP_SOURCEENDEDSTATUS_DECODE
Definition:
pp_media_source_samsung.h:101
PP_SOURCEADDSTATUS_REACHEDLIMIT
Definition:
pp_media_source_samsung.h:69
PP_SOURCEENDEDSTATUS_OK
Definition:
pp_media_source_samsung.h:97
PP_MEDIAREADYSTATE_ENDED
Definition:
pp_media_source_samsung.h:58
PP_SourceAddStatus
PP_SourceAddStatus
Definition:
pp_media_source_samsung.h:63
PP_TimeRange::end
PP_MicrosecondsDelta end
Definition:
pp_media_source_samsung.h:39
PP_SOURCEERROR_NO_SUCH_RESOURCE
Definition:
pp_media_source_samsung.h:86
PP_SOURCEADDSTATUS_OK
Definition:
pp_media_source_samsung.h:65
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:73
PP_SOURCEERROR_UNKNOWN
Definition:
pp_media_source_samsung.h:82
PP_SOURCEADDSTATUS_INVALIDSTATE
Definition:
pp_media_source_samsung.h:71
Generated on Wed May 4 2016 11:29:43 for Pepper_37_C_interfaces by
1.8.6