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 | 9 |
10 [generate_thunk] | 10 [generate_thunk] |
11 | 11 |
12 label Chrome { | 12 label Chrome { |
13 [channel=dev] M34 = 0.1 | 13 [channel=dev] M34 = 0.1, |
| 14 M35 = 0.1 |
14 }; | 15 }; |
15 | 16 |
16 enum PP_VideoFrame_Format { | 17 enum PP_VideoFrame_Format { |
17 /** | 18 /** |
18 * Unknown format value. | 19 * Unknown format value. |
19 */ | 20 */ |
20 PP_VIDEOFRAME_FORMAT_UNKNOWN = 0, | 21 PP_VIDEOFRAME_FORMAT_UNKNOWN = 0, |
21 | 22 |
22 /** | 23 /** |
23 * 12bpp YVU planar 1x1 Y, 2x2 VU samples. | 24 * 12bpp YVU planar 1x1 Y, 2x2 VU samples. |
24 */ | 25 */ |
25 PP_VIDEOFRAME_FORMAT_YV12 = 1, | 26 PP_VIDEOFRAME_FORMAT_YV12 = 1, |
26 | 27 |
27 /** | 28 /** |
28 * 12bpp YUV planar 1x1 Y, 2x2 UV samples. | 29 * 12bpp YUV planar 1x1 Y, 2x2 UV samples. |
29 */ | 30 */ |
30 PP_VIDEOFRAME_FORMAT_I420 = 2, | 31 PP_VIDEOFRAME_FORMAT_I420 = 2, |
31 | 32 |
32 /** | 33 /** |
33 * 32bpp BGRA. | 34 * 32bpp BGRA. |
34 */ | 35 */ |
35 PP_VIDEOFRAME_FORMAT_BGRA = 3, | 36 PP_VIDEOFRAME_FORMAT_BGRA = 3, |
36 | 37 |
37 /** | 38 /** |
38 * The last format. | 39 * The last format. |
39 */ | 40 */ |
40 PP_VIDEOFRAME_FORMAT_LAST = PP_VIDEOFRAME_FORMAT_BGRA | 41 PP_VIDEOFRAME_FORMAT_LAST = PP_VIDEOFRAME_FORMAT_BGRA |
41 }; | 42 }; |
42 | 43 |
| 44 [version=0.1] |
43 interface PPB_VideoFrame { | 45 interface PPB_VideoFrame { |
44 /** | 46 /** |
45 * Determines if a resource is a VideoFrame resource. | 47 * Determines if a resource is a VideoFrame resource. |
46 * | 48 * |
47 * @param[in] resource The <code>PP_Resource</code> to test. | 49 * @param[in] resource The <code>PP_Resource</code> to test. |
48 * | 50 * |
49 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given | 51 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given |
50 * resource is a VideoFrame resource or <code>PP_FALSE</code> otherwise. | 52 * resource is a VideoFrame resource or <code>PP_FALSE</code> otherwise. |
51 */ | 53 */ |
52 PP_Bool IsVideoFrame([in] PP_Resource resource); | 54 PP_Bool IsVideoFrame([in] PP_Resource resource); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 /** | 114 /** |
113 * Gets the size of data buffer. | 115 * Gets the size of data buffer. |
114 * | 116 * |
115 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 117 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
116 * resource. | 118 * resource. |
117 * | 119 * |
118 * @return The size of the data buffer. | 120 * @return The size of the data buffer. |
119 */ | 121 */ |
120 uint32_t GetDataBufferSize([in] PP_Resource frame); | 122 uint32_t GetDataBufferSize([in] PP_Resource frame); |
121 }; | 123 }; |
OLD | NEW |