OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 * This file defines the <code>PPB_VideoDecoder_Dev</code> interface. | 7 * This file defines the <code>PPB_VideoDecoder_Dev</code> interface. |
8 */ | 8 */ |
9 label Chrome { | 9 label Chrome { |
10 M14 = 0.1 | 10 M14 = 0.1 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 /** | 37 /** |
38 * In this mode content of the video layer is updated by a hardware video | 38 * In this mode content of the video layer is updated by a hardware video |
39 * decoder, calling UpdateContent() will always return PP_FALSE. | 39 * decoder, calling UpdateContent() will always return PP_FALSE. |
40 */ | 40 */ |
41 PP_VIDEOLAYERMODE_HARDWARE = 1 | 41 PP_VIDEOLAYERMODE_HARDWARE = 1 |
42 }; | 42 }; |
43 | 43 |
44 /** | 44 /** |
45 * PPB_VideoLayer is a mechanism to enhance rendering performance of video | 45 * PPB_VideoLayer is a mechanism to enhance rendering performance of video |
46 * content. Rendering is generally done by using PPB_Context3D or | 46 * content. Rendering is generally done by using PPB_Graphics3D or |
47 * PPB_Graphics2D, however for video content it is redundant to go through | 47 * PPB_Graphics2D, however for video content it is redundant to go through |
48 * PPB_Context3D or PPB_Graphics2D. PPB_VideoLayer allows video content to be | 48 * PPB_Graphics3D or PPB_Graphics2D. PPB_VideoLayer allows video content to be |
49 * rendered directly. | 49 * rendered directly. |
50 * | 50 * |
51 * PPB_VideoLayer can be used in two modes: | 51 * PPB_VideoLayer can be used in two modes: |
52 * | 52 * |
53 * Software Decoding Mode | 53 * Software Decoding Mode |
54 * In this mode the video layer needs to be updated with system memory manually | 54 * In this mode the video layer needs to be updated with system memory manually |
55 * using UpdateContent(). | 55 * using UpdateContent(). |
56 * | 56 * |
57 * Hardware Decoding Mode | 57 * Hardware Decoding Mode |
58 * In this mode the content of the video layer is updated by a hardware video | 58 * In this mode the content of the video layer is updated by a hardware video |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 * planes[1] - U plane, 2x2 subsampled | 137 * planes[1] - U plane, 2x2 subsampled |
138 * planes[2] - V plane, 2x2 subsampled | 138 * planes[2] - V plane, 2x2 subsampled |
139 * | 139 * |
140 * Return true if successful. | 140 * Return true if successful. |
141 */ | 141 */ |
142 PP_Bool UpdateContent( | 142 PP_Bool UpdateContent( |
143 [in] PP_Resource layer, | 143 [in] PP_Resource layer, |
144 [in] uint32_t no_of_planes, | 144 [in] uint32_t no_of_planes, |
145 [in, size_as=no_of_planes] mem_t[] planes); | 145 [in, size_as=no_of_planes] mem_t[] planes); |
146 }; | 146 }; |
OLD | NEW |