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

Side by Side 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 review issues 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 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 #ifndef PPAPI_CPP_MEDIA_STREAM_VIDEO_TRACK_H_ 5 #ifndef PPAPI_CPP_MEDIA_STREAM_VIDEO_TRACK_H_
6 #define PPAPI_CPP_MEDIA_STREAM_VIDEO_TRACK_H_ 6 #define PPAPI_CPP_MEDIA_STREAM_VIDEO_TRACK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/ppb_media_stream_video_track.h" 10 #include "ppapi/c/ppb_media_stream_video_track.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 /// @endcode 66 /// @endcode
67 /// 67 ///
68 /// @param[in] attrib_list A list of attribute name-value pairs in which each 68 /// @param[in] attrib_list A list of attribute name-value pairs in which each
69 /// attribute is immediately followed by the corresponding desired value. 69 /// attribute is immediately followed by the corresponding desired value.
70 /// The list is terminated by 70 /// The list is terminated by
71 /// <code>PP_MEDIASTREAMVIDEOTRACK_ATTRIB_NONE</code>. 71 /// <code>PP_MEDIASTREAMVIDEOTRACK_ATTRIB_NONE</code>.
72 /// @param[in] callback A <code>PP_CompletionCallback</code> to be called upon 72 /// @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
73 /// completion of <code>Configure()</code>. 73 /// completion of <code>Configure()</code>.
74 /// 74 ///
75 /// @return An int32_t containing a result code from <code>pp_errors.h</code>. 75 /// @return An int32_t containing a result code from <code>pp_errors.h</code>.
76 /// Returns <code>PP_ERROR_INPROGRESS</code> if there is a pending call of
77 /// <code>Configure()</code> or <code>GetFrame()</code>, or the plugin
78 /// holds some frames which are not recycled with <code>RecycleFrame()</code>.
76 int32_t Configure(const int32_t attributes[], 79 int32_t Configure(const int32_t attributes[],
77 const CompletionCallback& callback); 80 const CompletionCallback& callback);
78 81
79 /// Gets attribute value for a given attribute name. 82 /// Gets attribute value for a given attribute name.
80 /// 83 ///
81 /// @param[in] attrib A <code>PP_MediaStreamVideoTrack_Attrib</code> for 84 /// @param[in] attrib A <code>PP_MediaStreamVideoTrack_Attrib</code> for
82 /// querying. 85 /// querying.
83 /// @param[out] value A int32_t for storing the attribute value. 86 /// @param[out] value A int32_t for storing the attribute value.
84 /// 87 ///
85 /// @return An int32_t containing a result code from <code>pp_errors.h</code>. 88 /// @return An int32_t containing a result code from <code>pp_errors.h</code>.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 /// 137 ///
135 /// @param[in] resource A <code>Resource</code> to test. 138 /// @param[in] resource A <code>Resource</code> to test.
136 /// 139 ///
137 /// @return True if <code>resource</code> is a MediaStream video track. 140 /// @return True if <code>resource</code> is a MediaStream video track.
138 static bool IsMediaStreamVideoTrack(const Resource& resource); 141 static bool IsMediaStreamVideoTrack(const Resource& resource);
139 }; 142 };
140 143
141 } // namespace pp 144 } // namespace pp
142 145
143 #endif // PPAPI_CPP_MEDIA_STREAM_VIDEO_TRACK_H_ 146 #endif // PPAPI_CPP_MEDIA_STREAM_VIDEO_TRACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698