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

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

Issue 1973873003: Delete AndroidVideoCapturer::FrameFactory. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address nits. Created 4 years, 7 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 6f082dee9bae928fbb005027b7262f03bdde3053..99169d6fd22b7d9a879c96f129a969076cec476c 100644
--- a/webrtc/common_video/include/video_frame_buffer.h
+++ b/webrtc/common_video/include/video_frame_buffer.h
@@ -122,6 +122,15 @@ class I420Buffer : public VideoFrameBuffer {
static rtc::scoped_refptr<I420Buffer> Copy(
const rtc::scoped_refptr<VideoFrameBuffer>& buffer);
+ static rtc::scoped_refptr<I420Buffer> CropAndScale(
+ const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
+ int offset_x,
+ int offset_y,
+ int crop_width,
+ int crop_height,
+ int dst_width,
+ int dst_height);
+
protected:
~I420Buffer() override;

Powered by Google App Engine
This is Rietveld 408576698