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

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

Issue 212023003: PPAPI: Bring PPB_MediaStream*Track to stable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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
OLDNEW
1 /* Copyright 2014 The Chromium Authors. All rights reserved. 1 /* Copyright 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 ppb_video_frame.idl modified Tue Feb 11 14:41:52 2014. */ 6 /* From ppb_video_frame.idl modified Tue Mar 25 18:28:57 2014. */
7 7
8 #ifndef PPAPI_C_PPB_VIDEO_FRAME_H_ 8 #ifndef PPAPI_C_PPB_VIDEO_FRAME_H_
9 #define PPAPI_C_PPB_VIDEO_FRAME_H_ 9 #define PPAPI_C_PPB_VIDEO_FRAME_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_macros.h" 12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_resource.h" 13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/c/pp_size.h" 14 #include "ppapi/c/pp_size.h"
15 #include "ppapi/c/pp_stdint.h" 15 #include "ppapi/c/pp_stdint.h"
16 #include "ppapi/c/pp_time.h" 16 #include "ppapi/c/pp_time.h"
17 17
18 #define PPB_VIDEOFRAME_INTERFACE_0_1 "PPB_VideoFrame;0.1" /* dev */ 18 #define PPB_VIDEOFRAME_INTERFACE_0_1 "PPB_VideoFrame;0.1"
19 #define PPB_VIDEOFRAME_INTERFACE PPB_VIDEOFRAME_INTERFACE_0_1
20
19 /** 21 /**
20 * @file 22 * @file
21 * Defines the <code>PPB_VideoFrame</code> interface. 23 * Defines the <code>PPB_VideoFrame</code> interface.
22 */ 24 */
23 25
24 26
25 /** 27 /**
26 * @addtogroup Enums 28 * @addtogroup Enums
27 * @{ 29 * @{
28 */ 30 */
(...skipping 20 matching lines...) Expand all
49 PP_VIDEOFRAME_FORMAT_LAST = PP_VIDEOFRAME_FORMAT_BGRA 51 PP_VIDEOFRAME_FORMAT_LAST = PP_VIDEOFRAME_FORMAT_BGRA
50 } PP_VideoFrame_Format; 52 } PP_VideoFrame_Format;
51 /** 53 /**
52 * @} 54 * @}
53 */ 55 */
54 56
55 /** 57 /**
56 * @addtogroup Interfaces 58 * @addtogroup Interfaces
57 * @{ 59 * @{
58 */ 60 */
59 struct PPB_VideoFrame_0_1 { /* dev */ 61 struct PPB_VideoFrame_0_1 {
60 /** 62 /**
61 * Determines if a resource is a VideoFrame resource. 63 * Determines if a resource is a VideoFrame resource.
62 * 64 *
63 * @param[in] resource The <code>PP_Resource</code> to test. 65 * @param[in] resource The <code>PP_Resource</code> to test.
64 * 66 *
65 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given 67 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given
66 * resource is a VideoFrame resource or <code>PP_FALSE</code> otherwise. 68 * resource is a VideoFrame resource or <code>PP_FALSE</code> otherwise.
67 */ 69 */
68 PP_Bool (*IsVideoFrame)(PP_Resource resource); 70 PP_Bool (*IsVideoFrame)(PP_Resource resource);
69 /** 71 /**
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 /** 122 /**
121 * Gets the size of data buffer. 123 * Gets the size of data buffer.
122 * 124 *
123 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame 125 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame
124 * resource. 126 * resource.
125 * 127 *
126 * @return The size of the data buffer. 128 * @return The size of the data buffer.
127 */ 129 */
128 uint32_t (*GetDataBufferSize)(PP_Resource frame); 130 uint32_t (*GetDataBufferSize)(PP_Resource frame);
129 }; 131 };
132
133 typedef struct PPB_VideoFrame_0_1 PPB_VideoFrame;
130 /** 134 /**
131 * @} 135 * @}
132 */ 136 */
133 137
134 #endif /* PPAPI_C_PPB_VIDEO_FRAME_H_ */ 138 #endif /* PPAPI_C_PPB_VIDEO_FRAME_H_ */
135 139
OLDNEW
« no previous file with comments | « ppapi/c/ppb_media_stream_video_track.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698