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

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

Issue 859313002: Pepper: Define PPB_VideoEncoder API + Implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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_encoder.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 Wed Nov 5 13:38:52 2014. */ 6 /* From pp_codecs.idl modified Wed Jan 14 13:18:15 2015. */
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_bool.h"
11 #include "ppapi/c/pp_macros.h" 12 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_point.h" 13 #include "ppapi/c/pp_point.h"
13 #include "ppapi/c/pp_rect.h" 14 #include "ppapi/c/pp_rect.h"
14 #include "ppapi/c/pp_size.h" 15 #include "ppapi/c/pp_size.h"
15 #include "ppapi/c/pp_stdint.h" 16 #include "ppapi/c/pp_stdint.h"
16 17
17 /** 18 /**
18 * @file 19 * @file
19 * Video profiles. 20 * Video profiles.
20 */ 21 */
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 * GL_TEXTURE_EXTERNAL_OES 124 * GL_TEXTURE_EXTERNAL_OES
124 * 125 *
125 * The pixel format of the texture is GL_RGBA. 126 * The pixel format of the texture is GL_RGBA.
126 */ 127 */
127 uint32_t texture_target; 128 uint32_t texture_target;
128 /** 129 /**
129 * Dimensions of the texture holding the decoded picture. 130 * Dimensions of the texture holding the decoded picture.
130 */ 131 */
131 struct PP_Size texture_size; 132 struct PP_Size texture_size;
132 }; 133 };
134
135 /**
136 * Supported video profile information. See the PPB_VideoEncoder function
137 * GetSupportedProfiles() for more details.
138 */
139 struct PP_SupportedVideoProfile {
140 /* The codec profile. */
141 PP_VideoProfile profile;
142 /**
143 * Dimensions of the maximum resolution of video frames, in pixels.
144 */
145 struct PP_Size max_resolution;
146 /**
147 * The numerator of the maximum frame rate.
148 */
149 uint32_t max_framerate_numerator;
150 /**
151 * The denominator of the maximum frame rate.
152 */
153 uint32_t max_framerate_denominator;
154 };
155
156 /**
157 * Struct describing a bitstream buffer.
158 */
159 struct PP_BitstreamBuffer {
160 /**
161 * The size, in bytes, of the bitstream data.
162 */
163 uint32_t size;
164 /**
165 * The base address of the bitstream data.
166 */
167 void* buffer;
168 /**
169 * Whether the buffer represents a key frame.
170 */
171 PP_Bool key_frame;
172 };
133 /** 173 /**
134 * @} 174 * @}
135 */ 175 */
136 176
137 #endif /* PPAPI_C_PP_CODECS_H_ */ 177 #endif /* PPAPI_C_PP_CODECS_H_ */
138 178
OLDNEW
« no previous file with comments | « ppapi/api/ppb_video_encoder.idl ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698