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

Side by Side Diff: ppapi/api/pp_codecs.idl

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, 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
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 /** 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 * 108 *
109 * The pixel format of the texture is GL_RGBA. 109 * The pixel format of the texture is GL_RGBA.
110 */ 110 */
111 uint32_t texture_target; 111 uint32_t texture_target;
112 112
113 /** 113 /**
114 * Dimensions of the texture holding the decoded picture. 114 * Dimensions of the texture holding the decoded picture.
115 */ 115 */
116 PP_Size texture_size; 116 PP_Size texture_size;
117 }; 117 };
118
119 /**
120 * Supported video profile information. See the PPB_VideoEncoder function
121 * GetSupportedProfiles() for more details.
122 */
123 struct PP_SupportedVideoProfile {
124 /**
125 * The codec profile.
126 */
127 PP_VideoProfile profile;
128
129 /**
130 * Dimensions of the maximum resolution of video frames, in pixels.
131 */
132 PP_Size max_resolution;
133
134 /**
135 * The numerator of the maximum frame rate.
136 */
137 uint32_t max_framerate_numerator;
dmichael (off chromium) 2015/02/03 23:26:07 Why a fraction? Would a float or double suffice?
bbudge 2015/02/04 13:56:40 This is copied from the VEA interface. I think it'
138
139 /**
140 * The denominator of the maximum frame rate.
141 */
142 uint32_t max_framerate_denominator;
143
144 /**
145 * A value indicating if the profile is available in hardware, software, or
146 * both.
147 */
148 PP_HardwareAcceleration acceleration;
149 };
150
151 /**
152 * Struct describing a bitstream buffer.
153 */
154 struct PP_BitstreamBuffer {
155 /**
156 * The size, in bytes, of the bitstream data.
157 */
158 uint32_t size;
159
160 /**
161 * The base address of the bitstream data.
162 */
163 mem_t buffer;
164
165 /**
166 * Whether the buffer represents a key frame.
167 */
168 PP_Bool key_frame;
169 };
170
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698