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 Thu Jan 23 14:09:56 2014. */ | 6 /* From ppb_media_stream_video_track.idl modified Fri Feb 14 11:36:17 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" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 * @param[in] video_track A <code>PP_Resource</code> corresponding to a video | 104 * @param[in] video_track A <code>PP_Resource</code> corresponding to a video |
105 * resource. | 105 * resource. |
106 * @param[in] attrib_list A list of attribute name-value pairs in which each | 106 * @param[in] attrib_list A list of attribute name-value pairs in which each |
107 * attribute is immediately followed by the corresponding desired value. | 107 * attribute is immediately followed by the corresponding desired value. |
108 * The list is terminated by | 108 * The list is terminated by |
109 * <code>PP_MEDIASTREAMVIDEOTRACK_ATTRIB_NONE</code>. | 109 * <code>PP_MEDIASTREAMVIDEOTRACK_ATTRIB_NONE</code>. |
110 * @param[in] callback <code>PP_CompletionCallback</code> to be called upon | 110 * @param[in] callback <code>PP_CompletionCallback</code> to be called upon |
111 * completion of <code>Configure()</code>. | 111 * completion of <code>Configure()</code>. |
112 * | 112 * |
113 * @return An int32_t containing a result code from <code>pp_errors.h</code>. | 113 * @return An int32_t containing a result code from <code>pp_errors.h</code>. |
| 114 * Returns <code>PP_ERROR_INPROGRESS</code> if there is a pending call of |
| 115 * <code>Configure()</code> or <code>GetFrame()</code>, or the plugin |
| 116 * holds some frames which are not recycled with <code>RecycleFrame()</code>. |
114 */ | 117 */ |
115 int32_t (*Configure)(PP_Resource video_track, | 118 int32_t (*Configure)(PP_Resource video_track, |
116 const int32_t attrib_list[], | 119 const int32_t attrib_list[], |
117 struct PP_CompletionCallback callback); | 120 struct PP_CompletionCallback callback); |
118 /** | 121 /** |
119 * Gets attribute value for a given attribute name. | 122 * Gets attribute value for a given attribute name. |
120 * | 123 * |
121 * @param[in] video_track A <code>PP_Resource</code> corresponding to a video | 124 * @param[in] video_track A <code>PP_Resource</code> corresponding to a video |
122 * resource. | 125 * resource. |
123 * @param[in] attrib A <code>PP_MediaStreamVideoTrack_Attrib</code> for | 126 * @param[in] attrib A <code>PP_MediaStreamVideoTrack_Attrib</code> for |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 * MediaStream video track resource. | 200 * MediaStream video track resource. |
198 */ | 201 */ |
199 void (*Close)(PP_Resource video_track); | 202 void (*Close)(PP_Resource video_track); |
200 }; | 203 }; |
201 /** | 204 /** |
202 * @} | 205 * @} |
203 */ | 206 */ |
204 | 207 |
205 #endif /* PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ */ | 208 #endif /* PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ */ |
206 | 209 |
OLD | NEW |