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

Unified Diff: ppapi/cpp/media_stream_video_track.h

Issue 150403006: [PPAPI][MediaStream] Support configure for video input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/ppb_video_frame.h ('k') | ppapi/examples/media_stream_video/media_stream_video.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/media_stream_video_track.h
diff --git a/ppapi/cpp/media_stream_video_track.h b/ppapi/cpp/media_stream_video_track.h
index f4beabb582e4754c70e151ddc295ad0a5938daad..69759864d16524c17fd521a22cd6ede54fdf51c1 100644
--- a/ppapi/cpp/media_stream_video_track.h
+++ b/ppapi/cpp/media_stream_video_track.h
@@ -55,8 +55,9 @@ class MediaStreamVideoTrack : public Resource {
/// chosen such that inter-frame processing time variability won't overrun the
/// input buffer. If the buffer is overfilled, then frames will be dropped.
/// The application can detect this by examining the timestamp on returned
- /// frames. If <code>Configure()</code> is not called, default settings will
- /// be used.
+ /// frames. If some attributes are not specified, default values will be used
+ /// for those unspecified attributes. If <code>Configure()</code> is not
+ /// called, default settings will be used.
/// Example usage from plugin code:
/// @code
/// int32_t attribs[] = {
@@ -73,6 +74,11 @@ class MediaStreamVideoTrack : public Resource {
/// completion of <code>Configure()</code>.
///
/// @return An int32_t containing a result code from <code>pp_errors.h</code>.
+ /// Returns <code>PP_ERROR_INPROGRESS</code> if there is a pending call of
+ /// <code>Configure()</code> or <code>GetFrame()</code>, or the plugin
+ /// holds some frames which are not recycled with <code>RecycleFrame()</code>.
+ /// If an error is returned, all attributes and the underlying buffer will not
+ /// be changed.
int32_t Configure(const int32_t attributes[],
const CompletionCallback& callback);
« no previous file with comments | « ppapi/c/ppb_video_frame.h ('k') | ppapi/examples/media_stream_video/media_stream_video.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698