OLD | NEW |
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 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 * Video profiles. | 7 * Video profiles. |
8 */ | 8 */ |
9 enum PP_VideoProfile { | 9 enum PP_VideoProfile { |
10 PP_VIDEOPROFILE_H264BASELINE = 0, | 10 PP_VIDEOPROFILE_H264BASELINE = 0, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 * GL_TEXTURE_EXTERNAL_OES | 67 * GL_TEXTURE_EXTERNAL_OES |
68 * | 68 * |
69 * The pixel format of the texture is GL_RGBA. | 69 * The pixel format of the texture is GL_RGBA. |
70 */ | 70 */ |
71 uint32_t texture_target; | 71 uint32_t texture_target; |
72 | 72 |
73 /** | 73 /** |
74 * Dimensions of the texture holding the decoded picture. | 74 * Dimensions of the texture holding the decoded picture. |
75 */ | 75 */ |
76 PP_Size texture_size; | 76 PP_Size texture_size; |
| 77 |
| 78 /** |
| 79 * The visible subrectangle of the picture. The plugin should display only |
| 80 * this part of the picture. |
| 81 */ |
| 82 PP_Rect visible_rect; |
| 83 }; |
| 84 |
| 85 /** |
| 86 * Struct describing a decoded video picture. The decoded picture data is stored |
| 87 * in the GL texture corresponding to |texture_id|. The plugin can determine |
| 88 * which Decode call generated the picture using |decode_id|. |
| 89 */ |
| 90 struct PP_VideoPicture_0_1 { |
| 91 /** |
| 92 * |decode_id| parameter of the Decode call which generated this picture. |
| 93 * See the PPB_VideoDecoder function Decode() for more details. |
| 94 */ |
| 95 uint32_t decode_id; |
| 96 |
| 97 /** |
| 98 * Texture ID in the plugin's GL context. The plugin can use this to render |
| 99 * the decoded picture. |
| 100 */ |
| 101 uint32_t texture_id; |
| 102 |
| 103 /** |
| 104 * The GL texture target for the decoded picture. Possible values are: |
| 105 * GL_TEXTURE_2D |
| 106 * GL_TEXTURE_RECTANGLE_ARB |
| 107 * GL_TEXTURE_EXTERNAL_OES |
| 108 * |
| 109 * The pixel format of the texture is GL_RGBA. |
| 110 */ |
| 111 uint32_t texture_target; |
| 112 |
| 113 /** |
| 114 * Dimensions of the texture holding the decoded picture. |
| 115 */ |
| 116 PP_Size texture_size; |
77 }; | 117 }; |
OLD | NEW |