summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
authorpenghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-26 00:44:05 +0000
committerpenghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-26 00:44:05 +0000
commit61ebd74e979d3be1daea3569e9e7411401afdf40 (patch)
treea781bafd3cc5980b2f3a4bea95f9e71c70abf047 /ppapi/cpp
parent679f6679273c9cafd8f49fe18359c1774f50b744 (diff)
downloadchromium_src-61ebd74e979d3be1daea3569e9e7411401afdf40.zip
chromium_src-61ebd74e979d3be1daea3569e9e7411401afdf40.tar.gz
chromium_src-61ebd74e979d3be1daea3569e9e7411401afdf40.tar.bz2
[PPAPI][MediaStream] Support configure for video input.
Support configuring frame format and size for video input. BUG=330851 Review URL: https://codereview.chromium.org/150403006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/media_stream_video_track.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/ppapi/cpp/media_stream_video_track.h b/ppapi/cpp/media_stream_video_track.h
index f4beabb5..6975986 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);