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

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

Issue 126823007: [PPAPI] API thunk for video media stream track. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video_track_thunk
Patch Set: Update Created 6 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
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_media_stream_video_track.idl modified Fri Dec 27 17:28:11 2013. */ 6 /* From ppb_media_stream_video_track.idl modified Tue Jan 7 10:21:20 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 \
19 "PPB_MediaStreamVideoTrack;0.1" /* dev */ 19 "PPB_MediaStreamVideoTrack;0.1" /* dev */
20 /** 20 /**
21 * @file 21 * @file
22 * Defines the <code>PPB_MediaStreamVideoTrack</code> interface. Used for 22 * Defines the <code>PPB_MediaStreamVideoTrack</code> interface. Used for
yzshen1 2014/01/08 19:01:45 Why this is removed? I think this comment is usefu
Peng 2014/01/08 21:48:37 Probably it is because I add [generate_trunk] at a
23 * receiving video frames from a MediaStream video track in the browser. 23 * receiving video frames from a MediaStream video track in the browser.
24 * This interface is still in development (Dev API status) and may change. 24 * This interface is still in development (Dev API status) and may change.
25 */ 25 */
26 26
27 27
28 /** 28 /**
29 * @addtogroup Interfaces 29 * @addtogroup Interfaces
30 * @{ 30 * @{
31 */ 31 */
32 /** 32 /**
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 /** 82 /**
83 * Gets the next video frame from the MediaStream track. 83 * Gets the next video frame from the MediaStream track.
84 * If internal processing is slower than the incoming frame rate, new frames 84 * If internal processing is slower than the incoming frame rate, new frames
85 * will be dropped from the incoming stream. Once the input buffer is full, 85 * will be dropped from the incoming stream. Once the input buffer is full,
86 * frames will be dropped until <code>RecycleFrame()</code> is called to free 86 * frames will be dropped until <code>RecycleFrame()</code> is called to free
87 * a spot for another frame to be buffered. 87 * a spot for another frame to be buffered.
88 * If there are no frames in the input buffer, 88 * If there are no frames in the input buffer,
89 * <code>PP_OK_COMPLETIONPENDING</code> will be returned immediately and the 89 * <code>PP_OK_COMPLETIONPENDING</code> will be returned immediately and the
90 * <code>callback</code> will be called, when a new frame is received or an 90 * <code>callback</code> will be called, when a new frame is received or an
91 * error happens. 91 * error happens.
92 * If the caller holds a frame returned by the previous call of
93 * <code>GetFrame()</code>, <code>PP_ERROR_INPROGRESS</code> will be returned.
94 * The caller should recycle the previous frame before getting the next frame.
95 * 92 *
96 * @param[in] video_track A <code>PP_Resource</code> corresponding to a video 93 * @param[in] video_track A <code>PP_Resource</code> corresponding to a video
97 * resource. 94 * resource.
98 * @param[out] frame A <code>PP_Resource</code> corresponding to a VideoFrame 95 * @param[out] frame A <code>PP_Resource</code> corresponding to a VideoFrame
99 * resource. 96 * resource.
100 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon 97 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
101 * completion of GetFrame(). 98 * completion of GetFrame().
102 * 99 *
103 * @return An int32_t containing a result code from <code>pp_errors.h</code>. 100 * @return An int32_t containing a result code from <code>pp_errors.h</code>.
104 * Returns PP_ERROR_NOMEMORY if <code>max_buffered_frames</code> frames buffer 101 * Returns PP_ERROR_NOMEMORY if <code>max_buffered_frames</code> frames buffer
(...skipping 24 matching lines...) Expand all
129 * MediaStream video track resource. 126 * MediaStream video track resource.
130 */ 127 */
131 void (*Close)(PP_Resource video_track); 128 void (*Close)(PP_Resource video_track);
132 }; 129 };
133 /** 130 /**
134 * @} 131 * @}
135 */ 132 */
136 133
137 #endif /* PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ */ 134 #endif /* PPAPI_C_PPB_MEDIA_STREAM_VIDEO_TRACK_H_ */
138 135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698