OLD | NEW |
1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /** | 6 /** |
7 * Defines the <code>PPB_VideoFrame</code> interface. | 7 * Defines the <code>PPB_VideoFrame</code> interface. |
8 */ | 8 */ |
| 9 |
| 10 [generate_thunk] |
| 11 |
9 label Chrome { | 12 label Chrome { |
10 [channel=dev] M34 = 0.1 | 13 [channel=dev] M34 = 0.1 |
11 }; | 14 }; |
12 | 15 |
13 enum PP_VideoFrame_Format { | 16 enum PP_VideoFrame_Format { |
14 /** | 17 /** |
15 * Unknown format value. | 18 * Unknown format value. |
16 */ | 19 */ |
17 PP_VIDEOFRAME_FORMAT_UNKNOWN = 0, | 20 PP_VIDEOFRAME_FORMAT_UNKNOWN = 0, |
18 | 21 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 58 |
56 /** | 59 /** |
57 * Gets the timestamp of the video frame. | 60 * Gets the timestamp of the video frame. |
58 * | 61 * |
59 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 62 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
60 * resource. | 63 * resource. |
61 * | 64 * |
62 * @return A <code>PP_TimeDelta</code> containing the timestamp of the video | 65 * @return A <code>PP_TimeDelta</code> containing the timestamp of the video |
63 * frame. Given in seconds since the start of the containing video stream. | 66 * frame. Given in seconds since the start of the containing video stream. |
64 */ | 67 */ |
| 68 [on_failure=0.0] |
65 PP_TimeDelta GetTimestamp([in] PP_Resource frame); | 69 PP_TimeDelta GetTimestamp([in] PP_Resource frame); |
66 | 70 |
67 /** | 71 /** |
68 * Sets the timestamp of the video frame. Given in seconds since the | 72 * Sets the timestamp of the video frame. Given in seconds since the |
69 * start of the containing video stream. | 73 * start of the containing video stream. |
70 * | 74 * |
71 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 75 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
72 * resource. | 76 * resource. |
73 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp | 77 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp |
74 * of the video frame. Given in seconds since the start of the containing | 78 * of the video frame. Given in seconds since the start of the containing |
75 * video stream. | 79 * video stream. |
76 */ | 80 */ |
77 void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp); | 81 void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp); |
78 | 82 |
79 /** | 83 /** |
80 * Gets the format of the video frame. | 84 * Gets the format of the video frame. |
81 * | 85 * |
82 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 86 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
83 * resource. | 87 * resource. |
84 * | 88 * |
85 * @return A <code>PP_VideoFrame_Format</code> containing the format of the | 89 * @return A <code>PP_VideoFrame_Format</code> containing the format of the |
86 * video frame. | 90 * video frame. |
87 */ | 91 */ |
| 92 [on_failure=PP_VIDEOFRAME_FORMAT_UNKNOWN] |
88 PP_VideoFrame_Format GetFormat([in] PP_Resource frame); | 93 PP_VideoFrame_Format GetFormat([in] PP_Resource frame); |
89 | 94 |
90 /** | 95 /** |
91 * Gets the size of the video frame. | 96 * Gets the size of the video frame. |
92 * | 97 * |
93 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 98 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
94 * resource. | 99 * resource. |
95 * @param[out] size A <code>PP_Size</code>. | 100 * @param[out] size A <code>PP_Size</code>. |
96 * | 101 * |
97 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> on success or | 102 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> on success or |
(...skipping 14 matching lines...) Expand all Loading... |
112 /** | 117 /** |
113 * Gets the size of data buffer. | 118 * Gets the size of data buffer. |
114 * | 119 * |
115 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 120 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
116 * resource. | 121 * resource. |
117 * | 122 * |
118 * @return The size of the data buffer. | 123 * @return The size of the data buffer. |
119 */ | 124 */ |
120 uint32_t GetDataBufferSize([in] PP_Resource frame); | 125 uint32_t GetDataBufferSize([in] PP_Resource frame); |
121 }; | 126 }; |
OLD | NEW |