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

Unified Diff: webrtc/test/frame_generator_capturer.h

Issue 2344923002: Revert of Replace interface VideoCapturerInput with VideoSinkInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 3 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 | « webrtc/test/frame_generator.cc ('k') | webrtc/test/frame_generator_capturer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/frame_generator_capturer.h
diff --git a/webrtc/test/frame_generator_capturer.h b/webrtc/test/frame_generator_capturer.h
index 2b2cfbc82133706b16aa67075823d32372731cd6..1d6fb626640ffcaf02f9aa86a0141ec447714105 100644
--- a/webrtc/test/frame_generator_capturer.h
+++ b/webrtc/test/frame_generator_capturer.h
@@ -18,7 +18,6 @@
#include "webrtc/common_video/rotation.h"
#include "webrtc/test/video_capturer.h"
#include "webrtc/typedefs.h"
-#include "webrtc/video_frame.h"
namespace webrtc {
@@ -31,12 +30,14 @@
class FrameGeneratorCapturer : public VideoCapturer {
public:
- static FrameGeneratorCapturer* Create(size_t width,
+ static FrameGeneratorCapturer* Create(VideoCaptureInput* input,
+ size_t width,
size_t height,
int target_fps,
Clock* clock);
- static FrameGeneratorCapturer* CreateFromYuvFile(const std::string& file_name,
+ static FrameGeneratorCapturer* CreateFromYuvFile(VideoCaptureInput* input,
+ const std::string& file_name,
size_t width,
size_t height,
int target_fps,
@@ -45,17 +46,13 @@
void Start() override;
void Stop() override;
-
- void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink,
- const rtc::VideoSinkWants& wants) override;
- void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override;
-
void ForceFrame();
void SetFakeRotation(VideoRotation rotation);
int64_t first_frame_capture_time() const { return first_frame_capture_time_; }
FrameGeneratorCapturer(Clock* clock,
+ VideoCaptureInput* input,
FrameGenerator* frame_generator,
int target_fps);
bool Init();
@@ -66,7 +63,6 @@
Clock* const clock_;
bool sending_;
- rtc::VideoSinkInterface<VideoFrame>* sink_ GUARDED_BY(&lock_);
std::unique_ptr<EventTimerWrapper> tick_;
rtc::CriticalSection lock_;
« no previous file with comments | « webrtc/test/frame_generator.cc ('k') | webrtc/test/frame_generator_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698