Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Side by Side Diff: ppapi/c/pp_codecs.h

Issue 703753002: Pepper: Expose visible_rect to PPB_VideoDecoder.GetPicture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/api/ppb_video_decoder.idl ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /* From pp_codecs.idl modified Fri Aug 22 13:39:56 2014. */ 6 /* From pp_codecs.idl modified Wed Nov 5 13:38:52 2014. */
7 7
8 #ifndef PPAPI_C_PP_CODECS_H_ 8 #ifndef PPAPI_C_PP_CODECS_H_
9 #define PPAPI_C_PP_CODECS_H_ 9 #define PPAPI_C_PP_CODECS_H_
10 10
11 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_point.h"
13 #include "ppapi/c/pp_rect.h"
12 #include "ppapi/c/pp_size.h" 14 #include "ppapi/c/pp_size.h"
13 #include "ppapi/c/pp_stdint.h" 15 #include "ppapi/c/pp_stdint.h"
14 16
15 /** 17 /**
16 * @file 18 * @file
17 * Video profiles. 19 * Video profiles.
18 */ 20 */
19 21
20 22
21 /** 23 /**
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 * GL_TEXTURE_RECTANGLE_ARB 86 * GL_TEXTURE_RECTANGLE_ARB
85 * GL_TEXTURE_EXTERNAL_OES 87 * GL_TEXTURE_EXTERNAL_OES
86 * 88 *
87 * The pixel format of the texture is GL_RGBA. 89 * The pixel format of the texture is GL_RGBA.
88 */ 90 */
89 uint32_t texture_target; 91 uint32_t texture_target;
90 /** 92 /**
91 * Dimensions of the texture holding the decoded picture. 93 * Dimensions of the texture holding the decoded picture.
92 */ 94 */
93 struct PP_Size texture_size; 95 struct PP_Size texture_size;
96 /**
97 * The visible subrectangle of the picture. The plugin should display only
98 * this part of the picture.
99 */
100 struct PP_Rect visible_rect;
101 };
102
103 /**
104 * Struct describing a decoded video picture. The decoded picture data is stored
105 * in the GL texture corresponding to |texture_id|. The plugin can determine
106 * which Decode call generated the picture using |decode_id|.
107 */
108 struct PP_VideoPicture_0_1 {
109 /**
110 * |decode_id| parameter of the Decode call which generated this picture.
111 * See the PPB_VideoDecoder function Decode() for more details.
112 */
113 uint32_t decode_id;
114 /**
115 * Texture ID in the plugin's GL context. The plugin can use this to render
116 * the decoded picture.
117 */
118 uint32_t texture_id;
119 /**
120 * The GL texture target for the decoded picture. Possible values are:
121 * GL_TEXTURE_2D
122 * GL_TEXTURE_RECTANGLE_ARB
123 * GL_TEXTURE_EXTERNAL_OES
124 *
125 * The pixel format of the texture is GL_RGBA.
126 */
127 uint32_t texture_target;
128 /**
129 * Dimensions of the texture holding the decoded picture.
130 */
131 struct PP_Size texture_size;
94 }; 132 };
95 /** 133 /**
96 * @} 134 * @}
97 */ 135 */
98 136
99 #endif /* PPAPI_C_PP_CODECS_H_ */ 137 #endif /* PPAPI_C_PP_CODECS_H_ */
100 138
OLDNEW
« no previous file with comments | « ppapi/api/ppb_video_decoder.idl ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698