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

Side by Side Diff: ppapi/c/dev/ppb_video_decoder_dev.h

Issue 8989006: Update PPAPI IDL generator to define versioned structs, and unversioned typedef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for line-wrap. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppb_video_capture_dev.h ('k') | ppapi/c/dev/ppb_video_layer_dev.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) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 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 dev/ppb_video_decoder_dev.idl modified Tue Nov 29 11:27:39 2011. */ 6 /* From dev/ppb_video_decoder_dev.idl modified Wed Dec 14 18:08:00 2011. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ 8 #ifndef PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_
9 #define PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ 9 #define PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_
10 10
11 #include "ppapi/c/dev/pp_video_dev.h" 11 #include "ppapi/c/dev/pp_video_dev.h"
12 #include "ppapi/c/pp_bool.h" 12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_completion_callback.h" 13 #include "ppapi/c/pp_completion_callback.h"
14 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_macros.h" 15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
(...skipping 25 matching lines...) Expand all
42 * - Hand the textures back to the decoder using ReusePictureBuffer. 42 * - Hand the textures back to the decoder using ReusePictureBuffer.
43 * - To signal EOS to the decoder: call Flush() and wait for NotifyFlushDone 43 * - To signal EOS to the decoder: call Flush() and wait for NotifyFlushDone
44 * callback. 44 * callback.
45 * - To reset the decoder (e.g. to implement Seek): call Reset() and wait for 45 * - To reset the decoder (e.g. to implement Seek): call Reset() and wait for
46 * NotifyResetDone callback. 46 * NotifyResetDone callback.
47 * - To tear down the decoder call Destroy(). 47 * - To tear down the decoder call Destroy().
48 * 48 *
49 * See PPP_VideoDecoder_Dev for the notifications the decoder may send the 49 * See PPP_VideoDecoder_Dev for the notifications the decoder may send the
50 * plugin. 50 * plugin.
51 */ 51 */
52 struct PPB_VideoDecoder_Dev { 52 struct PPB_VideoDecoder_Dev_0_16 {
53 /** 53 /**
54 * Creates & initializes a video decoder. 54 * Creates & initializes a video decoder.
55 * 55 *
56 * Parameters: 56 * Parameters:
57 * |instance| pointer to the plugin instance. 57 * |instance| pointer to the plugin instance.
58 * |context| a PPB_Graphics3D resource in which decoding will happen. 58 * |context| a PPB_Graphics3D resource in which decoding will happen.
59 * |profile| the video stream's format profile. 59 * |profile| the video stream's format profile.
60 * 60 *
61 * The created decoder is returned as PP_Resource. 0 means failure. 61 * The created decoder is returned as PP_Resource. 0 means failure.
62 */ 62 */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 * are dropped and the decoder frees all of its resources. Although resources 150 * are dropped and the decoder frees all of its resources. Although resources
151 * may be freed asynchronously, after this method returns no more callbacks 151 * may be freed asynchronously, after this method returns no more callbacks
152 * will be made on the client. Any resources held by the client at that point 152 * will be made on the client. Any resources held by the client at that point
153 * may be freed. 153 * may be freed.
154 * 154 *
155 * Parameters: 155 * Parameters:
156 * |video_decoder| is the previously created handle to the decoder resource. 156 * |video_decoder| is the previously created handle to the decoder resource.
157 */ 157 */
158 void (*Destroy)(PP_Resource video_decoder); 158 void (*Destroy)(PP_Resource video_decoder);
159 }; 159 };
160
161 typedef struct PPB_VideoDecoder_Dev_0_16 PPB_VideoDecoder_Dev;
160 /** 162 /**
161 * @} 163 * @}
162 */ 164 */
163 165
164 #endif /* PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ */ 166 #endif /* PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ */
165 167
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_video_capture_dev.h ('k') | ppapi/c/dev/ppb_video_layer_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698