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

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

Issue 842293003: Pepper: Define PPB_VideoEncoder API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add |acceleration| field to PP_SupportedVideoProfile. Created 5 years, 10 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
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 Mon Jan 26 16:01:37 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 {
dmichael (off chromium) 2015/02/03 23:26:08 nit: I think whether it's "Supported" is more a pr
llandwerlin-old 2015/02/04 01:01:52 Acknowledged.
bbudge 2015/02/04 13:56:40 This tries to follow the VEA api, where the class
140 /**
141 * The codec profile.
142 */
143 PP_VideoProfile profile;
144 /**
145 * Dimensions of the maximum resolution of video frames, in pixels.
146 */
147 struct PP_Size max_resolution;
148 /**
149 * The numerator of the maximum frame rate.
150 */
151 uint32_t max_framerate_numerator;
152 /**
153 * The denominator of the maximum frame rate.
154 */
155 uint32_t max_framerate_denominator;
156 /**
157 * A value indicating if the profile is available in hardware, software, or
158 * both.
159 */
160 PP_HardwareAcceleration acceleration;
161 };
162
163 /**
164 * Struct describing a bitstream buffer.
165 */
166 struct PP_BitstreamBuffer {
167 /**
168 * The size, in bytes, of the bitstream data.
169 */
170 uint32_t size;
171 /**
172 * The base address of the bitstream data.
173 */
174 void* buffer;
175 /**
176 * Whether the buffer represents a key frame.
177 */
178 PP_Bool key_frame;
179 };
133 /** 180 /**
134 * @} 181 * @}
135 */ 182 */
136 183
137 #endif /* PPAPI_C_PP_CODECS_H_ */ 184 #endif /* PPAPI_C_PP_CODECS_H_ */
138 185
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698