| OLD | NEW |
| 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_media_stream_video_track.idl modified Wed Feb 19 11:06:48 2014. */ | 6 /* From ppb_media_stream_video_track.idl modified Fri Mar 28 10:13:52 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ | 8 #ifndef PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ |
| 9 #define PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ | 9 #define PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
| 17 | 17 |
| 18 #define PPB_MEDIASTREAMVIDEOTRACK_INTERFACE_0_1 \ | 18 #define PPB_MEDIASTREAMVIDEOTRACK_INTERFACE_0_1 "PPB_MediaStreamVideoTrack;0.1" |
| 19 "PPB_MediaStreamVideoTrack;0.1" /* dev */ | 19 #define PPB_MEDIASTREAMVIDEOTRACK_INTERFACE \ |
| 20 PPB_MEDIASTREAMVIDEOTRACK_INTERFACE_0_1 |
| 21 |
| 20 /** | 22 /** |
| 21 * @file | 23 * @file |
| 22 * Defines the <code>PPB_MediaStreamVideoTrack</code> interface. Used for | 24 * Defines the <code>PPB_MediaStreamVideoTrack</code> interface. Used for |
| 23 * receiving video frames from a MediaStream video track in the browser. | 25 * receiving video frames from a MediaStream video track in the browser. |
| 24 * This interface is still in development (Dev API status) and may change. | |
| 25 */ | 26 */ |
| 26 | 27 |
| 27 | 28 |
| 28 /** | 29 /** |
| 29 * @addtogroup Enums | 30 * @addtogroup Enums |
| 30 * @{ | 31 * @{ |
| 31 */ | 32 */ |
| 32 /** | 33 /** |
| 33 * This enumeration contains video track attributes which are used by | 34 * This enumeration contains video track attributes which are used by |
| 34 * <code>Configure()</code>. | 35 * <code>Configure()</code>. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 PP_MEDIASTREAMVIDEOTRACK_ATTRIB_FORMAT = 4 | 82 PP_MEDIASTREAMVIDEOTRACK_ATTRIB_FORMAT = 4 |
| 82 } PP_MediaStreamVideoTrack_Attrib; | 83 } PP_MediaStreamVideoTrack_Attrib; |
| 83 /** | 84 /** |
| 84 * @} | 85 * @} |
| 85 */ | 86 */ |
| 86 | 87 |
| 87 /** | 88 /** |
| 88 * @addtogroup Interfaces | 89 * @addtogroup Interfaces |
| 89 * @{ | 90 * @{ |
| 90 */ | 91 */ |
| 91 struct PPB_MediaStreamVideoTrack_0_1 { /* dev */ | 92 struct PPB_MediaStreamVideoTrack_0_1 { |
| 92 /** | 93 /** |
| 93 * Determines if a resource is a MediaStream video track resource. | 94 * Determines if a resource is a MediaStream video track resource. |
| 94 * | 95 * |
| 95 * @param[in] resource The <code>PP_Resource</code> to test. | 96 * @param[in] resource The <code>PP_Resource</code> to test. |
| 96 * | 97 * |
| 97 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given | 98 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given |
| 98 * resource is a Mediastream video track resource or <code>PP_FALSE</code> | 99 * resource is a Mediastream video track resource or <code>PP_FALSE</code> |
| 99 * otherwise. | 100 * otherwise. |
| 100 */ | 101 */ |
| 101 PP_Bool (*IsMediaStreamVideoTrack)(PP_Resource resource); | 102 PP_Bool (*IsMediaStreamVideoTrack)(PP_Resource resource); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 int32_t (*RecycleFrame)(PP_Resource video_track, PP_Resource frame); | 213 int32_t (*RecycleFrame)(PP_Resource video_track, PP_Resource frame); |
| 213 /** | 214 /** |
| 214 * Closes the MediaStream video track and disconnects it from video source. | 215 * Closes the MediaStream video track and disconnects it from video source. |
| 215 * After calling <code>Close()</code>, no new frames will be received. | 216 * After calling <code>Close()</code>, no new frames will be received. |
| 216 * | 217 * |
| 217 * @param[in] video_track A <code>PP_Resource</code> corresponding to a | 218 * @param[in] video_track A <code>PP_Resource</code> corresponding to a |
| 218 * MediaStream video track resource. | 219 * MediaStream video track resource. |
| 219 */ | 220 */ |
| 220 void (*Close)(PP_Resource video_track); | 221 void (*Close)(PP_Resource video_track); |
| 221 }; | 222 }; |
| 223 |
| 224 typedef struct PPB_MediaStreamVideoTrack_0_1 PPB_MediaStreamVideoTrack; |
| 222 /** | 225 /** |
| 223 * @} | 226 * @} |
| 224 */ | 227 */ |
| 225 | 228 |
| 226 #endif /* PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ */ | 229 #endif /* PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ */ |
| 227 | 230 |
| OLD | NEW |