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

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

Issue 2285693002: New static I420Buffer::Rotate method, to replace GetCopyWithRotationApplied. (Closed)
Patch Set: Address magjed's comments. And add missing include. Created 4 years, 4 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 | « no previous file | webrtc/common_video/video_frame_buffer.cc » ('j') | webrtc/common_video/video_frame_buffer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 94b3d5d8330ed320c6703bcdb890dfa40b87539c..e8586ee5b5e36e1aa660f3a200841556e99cadea 100644
--- a/webrtc/common_video/include/video_frame_buffer.h
+++ b/webrtc/common_video/include/video_frame_buffer.h
@@ -18,6 +18,7 @@
#include "webrtc/base/callback.h"
#include "webrtc/base/refcount.h"
#include "webrtc/base/scoped_ref_ptr.h"
+#include "webrtc/common_video/rotation.h"
#include "webrtc/system_wrappers/include/aligned_malloc.h"
namespace webrtc {
@@ -63,6 +64,10 @@ class VideoFrameBuffer : public rtc::RefCountInterface {
// native handle.
virtual rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() = 0;
+ static rtc::scoped_refptr<VideoFrameBuffer> Rotate(
perkj_webrtc 2016/08/26 15:22:17 I think I would prefer this to be a virtual member
nisse-webrtc 2016/08/29 09:16:50 Makes sense to me. (magjed suggested using a stati
magjed_webrtc 2016/08/30 08:11:33 Please don't add unnecessary functions to the inte
+ const rtc::scoped_refptr<VideoFrameBuffer>& src,
+ VideoRotation rotation);
+
protected:
virtual ~VideoFrameBuffer();
};
« no previous file with comments | « no previous file | webrtc/common_video/video_frame_buffer.cc » ('j') | webrtc/common_video/video_frame_buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698