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

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

Issue 540393003: Move PPB_VideoDecoder from 'Dev' to Stable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | ppapi/c/ppb_video_decoder.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 /** 6 /**
7 * This file defines the <code>PPB_VideoDecoder</code> interface. 7 * This file defines the <code>PPB_VideoDecoder</code> interface.
8 */ 8 */
9 9
10 [generate_thunk] 10 [generate_thunk]
11 11
12 label Chrome { 12 label Chrome {
13 [channel=dev] M36 = 0.1, 13 [channel=dev] M36 = 0.1,
14 [channel=dev] M39 = 0.2 14 [channel=dev] M39 = 0.2,
15 M39 = 0.2
dmichael (off chromium) 2014/09/08 16:45:25 nit: I think you can just drop the [channel=dev] p
bbudge 2014/09/10 00:22:23 As discussed, I've removed the channel=dev labels
15 }; 16 };
16 17
17 /** 18 /**
18 * Video decoder interface. 19 * Video decoder interface.
19 * 20 *
20 * Typical usage: 21 * Typical usage:
21 * - Call Create() to create a new video decoder resource. 22 * - Call Create() to create a new video decoder resource.
22 * - Call Initialize() to initialize it with a 3d graphics context and the 23 * - Call Initialize() to initialize it with a 3d graphics context and the
23 * desired codec profile. 24 * desired codec profile.
24 * - Call Decode() continuously (waiting for each previous call to complete) to 25 * - Call Decode() continuously (waiting for each previous call to complete) to
25 * push bitstream buffers to the decoder. 26 * push bitstream buffers to the decoder.
26 * - Call GetPicture() continuously (waiting for each previous call to complete) 27 * - Call GetPicture() continuously (waiting for each previous call to complete)
27 * to pull decoded pictures from the decoder. 28 * to pull decoded pictures from the decoder.
28 * - Call Flush() to signal end of stream to the decoder and perform shutdown 29 * - Call Flush() to signal end of stream to the decoder and perform shutdown
29 * when it completes. 30 * when it completes.
30 * - Call Reset() to quickly stop the decoder (e.g. to implement Seek) and wait 31 * - Call Reset() to quickly stop the decoder (e.g. to implement Seek) and wait
31 * for the callback before restarting decoding at another point. 32 * for the callback before restarting decoding at another point.
32 * - To destroy the decoder, the plugin should release all of its references to 33 * - To destroy the decoder, the plugin should release all of its references to
33 * it. Any pending callbacks will abort before the decoder is destroyed. 34 * it. Any pending callbacks will abort before the decoder is destroyed.
34 * 35 *
35 * Available video codecs vary by platform. 36 * Available video codecs vary by platform.
36 * All: theora, vorbis, vp8. 37 * All: theora, vorbis, vp8.
37 * Chrome and ChromeOS: aac, h264. 38 * Chrome and ChromeOS: aac, h264.
38 * ChromeOS: mpeg4. 39 * ChromeOS: mpeg4.
39 */ 40 */
41 [version=0.2]
40 interface PPB_VideoDecoder { 42 interface PPB_VideoDecoder {
41 /** 43 /**
42 * Creates a new video decoder resource. 44 * Creates a new video decoder resource.
43 * 45 *
44 * @param[in] instance A <code>PP_Instance</code> identifying the instance 46 * @param[in] instance A <code>PP_Instance</code> identifying the instance
45 * with the video decoder. 47 * with the video decoder.
46 * 48 *
47 * @return A <code>PP_Resource</code> corresponding to a video decoder if 49 * @return A <code>PP_Resource</code> corresponding to a video decoder if
48 * successful or 0 otherwise. 50 * successful or 0 otherwise.
49 */ 51 */
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 * @param[in] callback A <code>PP_CompletionCallback</code> to be called on 238 * @param[in] callback A <code>PP_CompletionCallback</code> to be called on
237 * completion. 239 * completion.
238 * 240 *
239 * @return An int32_t containing an error code from <code>pp_errors.h</code>. 241 * @return An int32_t containing an error code from <code>pp_errors.h</code>.
240 * Returns PP_ERROR_FAILED if the decoder isn't initialized. 242 * Returns PP_ERROR_FAILED if the decoder isn't initialized.
241 */ 243 */
242 int32_t Reset( 244 int32_t Reset(
243 [in] PP_Resource video_decoder, 245 [in] PP_Resource video_decoder,
244 [in] PP_CompletionCallback callback); 246 [in] PP_CompletionCallback callback);
245 }; 247 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/ppb_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698