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

Unified Diff: webrtc/common_video/video_frame_buffer.cc

Issue 2469763002: Refactor VideoDenoiser to use a buffer pool, replacing explicit double buffering. (Closed)
Patch Set: Rebase. 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
Index: webrtc/common_video/video_frame_buffer.cc
diff --git a/webrtc/common_video/video_frame_buffer.cc b/webrtc/common_video/video_frame_buffer.cc
index 1d209370a6373b7fa0f58159bbc5801fe6c58b66..869eb4f87c65b9486eb2c6b4e0076be657234a2c 100644
--- a/webrtc/common_video/video_frame_buffer.cc
+++ b/webrtc/common_video/video_frame_buffer.cc
@@ -205,27 +205,6 @@ void I420Buffer::ScaleFrom(const rtc::scoped_refptr<VideoFrameBuffer>& src) {
}
// static
-rtc::scoped_refptr<I420Buffer> I420Buffer::CopyKeepStride(
- const rtc::scoped_refptr<VideoFrameBuffer>& source) {
- int width = source->width();
- int height = source->height();
- int stride_y = source->StrideY();
- int stride_u = source->StrideU();
- int stride_v = source->StrideV();
- rtc::scoped_refptr<I420Buffer> target =
- I420Buffer::Create(width, height, stride_y, stride_u, stride_v);
- RTC_CHECK(libyuv::I420Copy(source->DataY(), stride_y,
- source->DataU(), stride_u,
- source->DataV(), stride_v,
- target->MutableDataY(), stride_y,
- target->MutableDataU(), stride_u,
- target->MutableDataV(), stride_v,
- width, height) == 0);
-
- return target;
-}
-
-// static
rtc::scoped_refptr<VideoFrameBuffer> I420Buffer::Rotate(
const rtc::scoped_refptr<VideoFrameBuffer>& src,
VideoRotation rotation) {
« no previous file with comments | « webrtc/common_video/include/video_frame_buffer.h ('k') | webrtc/modules/video_processing/frame_preprocessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698