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

Side by Side Diff: ppapi/cpp/media_stream_video_track.h

Issue 101463008: [NOT FOR REVIEW][PPAPI] Implement MediaStreamVideoTrack pepper API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
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 #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/pp_stdint.h" 10 #include "ppapi/c/pp_stdint.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 /// Gets the next video frame from the MediaStream track. 72 /// Gets the next video frame from the MediaStream track.
73 /// If internal processing is slower than the incoming frame rate, new frames 73 /// If internal processing is slower than the incoming frame rate, new frames
74 /// will be dropped from the incoming stream. Once the input buffer is full, 74 /// will be dropped from the incoming stream. Once the input buffer is full,
75 /// frames will be dropped until <code>RecycleFrame()</code> is called to free 75 /// frames will be dropped until <code>RecycleFrame()</code> is called to free
76 /// a spot for another frame to be buffered. 76 /// a spot for another frame to be buffered.
77 /// If there are no frames in the input buffer, 77 /// If there are no frames in the input buffer,
78 /// <code>PP_OK_COMPLETIONPENDING</code> will be returned immediately and the 78 /// <code>PP_OK_COMPLETIONPENDING</code> will be returned immediately and the
79 /// <code>callback</code> will be called, when a new frame is received or some 79 /// <code>callback</code> will be called, when a new frame is received or some
80 /// error happens. 80 /// error happens.
81 /// If the caller holds a frame returned by the previous call of
82 /// <code>GetFrame()</code>, <code>PP_ERROR_INPROGRESS</code> will be
83 /// returned. The caller should recycle the previous frame before getting
84 /// the next frame.
85 /// 81 ///
86 /// @param[in] callback A <code>PP_CompletionCallback</code> to be called upon 82 /// @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
87 /// completion of <code>GetFrame()</code>. If success, a VideoFrame will be 83 /// completion of <code>GetFrame()</code>. If success, a VideoFrame will be
88 /// passed into the completion callback function. 84 /// passed into the completion callback function.
89 /// 85 ///
90 /// @return An int32_t containing a result code from <code>pp_errors.h</code>. 86 /// @return An int32_t containing a result code from <code>pp_errors.h</code>.
91 /// Returns PP_ERROR_NOMEMORY if <code>max_buffered_frames</code> frames 87 /// Returns PP_ERROR_NOMEMORY if <code>max_buffered_frames</code> frames
92 /// buffer was not allocated successfully. 88 /// buffer was not allocated successfully.
93 int32_t GetFrame( 89 int32_t GetFrame(
94 const CompletionCallbackWithOutput<VideoFrame>& callback); 90 const CompletionCallbackWithOutput<VideoFrame>& callback);
(...skipping 18 matching lines...) Expand all
113 /// 109 ///
114 /// @param[in] resource A <code>Resource</code> to test. 110 /// @param[in] resource A <code>Resource</code> to test.
115 /// 111 ///
116 /// @return True if <code>resource</code> is a MediaStream video track. 112 /// @return True if <code>resource</code> is a MediaStream video track.
117 static bool IsMediaStreamVideoTrack(const Resource& resource); 113 static bool IsMediaStreamVideoTrack(const Resource& resource);
118 }; 114 };
119 115
120 } // namespace pp 116 } // namespace pp
121 117
122 #endif // PPAPI_CPP_MEDIA_STREAM_VIDEO_TRACK_H_ 118 #endif // PPAPI_CPP_MEDIA_STREAM_VIDEO_TRACK_H_
OLDNEW
« no previous file with comments | « ppapi/c/ppb_media_stream_video_track.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