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

Unified Diff: webrtc/media/base/videocapturer.cc

Issue 2487633002: Reland of Delete all use of cricket::VideoFrame and cricket::WebRtcVideoFrame. (Closed)
Patch Set: Rebase, and update rtcstatscollector_unittest.cc. Created 4 years, 1 month 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/media/base/videocapturer.h ('k') | webrtc/media/base/videosourcebase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videocapturer.cc
diff --git a/webrtc/media/base/videocapturer.cc b/webrtc/media/base/videocapturer.cc
index 1d81d49eb8ac23cf3c7df727d7d2a2b954b2bf97..e7d3e3a3d6e6f33b92407eb1423cf3809bb926e9 100644
--- a/webrtc/media/base/videocapturer.cc
+++ b/webrtc/media/base/videocapturer.cc
@@ -18,7 +18,7 @@
#include "webrtc/base/common.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/systeminfo.h"
-#include "webrtc/media/engine/webrtcvideoframe.h"
+#include "webrtc/video_frame.h"
namespace cricket {
@@ -132,14 +132,14 @@ bool VideoCapturer::GetInputSize(int* width, int* height) {
}
void VideoCapturer::RemoveSink(
- rtc::VideoSinkInterface<cricket::VideoFrame>* sink) {
+ rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
broadcaster_.RemoveSink(sink);
OnSinkWantsChanged(broadcaster_.wants());
}
void VideoCapturer::AddOrUpdateSink(
- rtc::VideoSinkInterface<cricket::VideoFrame>* sink,
+ rtc::VideoSinkInterface<webrtc::VideoFrame>* sink,
const rtc::VideoSinkWants& wants) {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
broadcaster_.AddOrUpdateSink(sink, wants);
@@ -196,7 +196,7 @@ bool VideoCapturer::AdaptFrame(int width,
return true;
}
-void VideoCapturer::OnFrame(const VideoFrame& frame,
+void VideoCapturer::OnFrame(const webrtc::VideoFrame& frame,
int orig_width,
int orig_height) {
// For a child class which implements rotation itself, we should
@@ -215,7 +215,7 @@ void VideoCapturer::OnFrame(const VideoFrame& frame,
LOG(LS_WARNING) << "Native frame requiring rotation. Discarding.";
return;
}
- broadcaster_.OnFrame(WebRtcVideoFrame(
+ broadcaster_.OnFrame(webrtc::VideoFrame(
webrtc::I420Buffer::Rotate(buffer, frame.rotation()),
webrtc::kVideoRotation_0, frame.timestamp_us()));
} else {
« no previous file with comments | « webrtc/media/base/videocapturer.h ('k') | webrtc/media/base/videosourcebase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698