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

Unified Diff: webrtc/common_video/include/video_frame_buffer.h

Issue 2005733003: Refactor VideoDenoiser to work with I420Buffer, not VideoFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Trivial rebase. Created 4 years, 6 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
Index: webrtc/common_video/include/video_frame_buffer.h
diff --git a/webrtc/common_video/include/video_frame_buffer.h b/webrtc/common_video/include/video_frame_buffer.h
index dc51164450ce6bc35d1cbbf0fcf737276123e2e8..dfffb9a0d6cae74c0eb9a844d7789f0fbd96ffcc 100644
--- a/webrtc/common_video/include/video_frame_buffer.h
+++ b/webrtc/common_video/include/video_frame_buffer.h
@@ -134,6 +134,10 @@ class I420Buffer : public VideoFrameBuffer {
// Scale all of |src| to the size of |this| buffer, with no cropping.
void ScaleFrom(const rtc::scoped_refptr<VideoFrameBuffer>& src);
+ // Create a new buffer with identical strides, and copy the pixel data.
+ static rtc::scoped_refptr<I420Buffer> CopyKeepStride(
+ const rtc::scoped_refptr<VideoFrameBuffer>& buffer);
+
protected:
~I420Buffer() override;
« no previous file with comments | « no previous file | webrtc/common_video/video_frame_buffer.cc » ('j') | webrtc/modules/video_processing/video_denoiser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698