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

Unified Diff: media/capture/video/video_capture_device_client.cc

Issue 2508803002: Rotate frames correctly for back camera (Closed)
Patch Set: calculate rotation in video_capture_device_linux 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: media/capture/video/video_capture_device_client.cc
diff --git a/media/capture/video/video_capture_device_client.cc b/media/capture/video/video_capture_device_client.cc
index 215785ea4f72f144c3cb16c4220e1e170271e0d4..c30217abcca92b113525f3d41eacf6fb001d59c1 100644
--- a/media/capture/video/video_capture_device_client.cc
+++ b/media/capture/video/video_capture_device_client.cc
@@ -133,6 +133,7 @@ void VideoCaptureDeviceClient::OnIncomingCapturedData(
DCHECK_EQ(0, rotation % 90) << " Rotation must be a multiple of 90, now: "
<< rotation;
+
wuchengli 2016/11/17 09:26:04 revert this
shenghao 2016/11/17 10:15:55 Done.
libyuv::RotationMode rotation_mode = libyuv::kRotate0;
if (rotation == 90)
rotation_mode = libyuv::kRotate90;

Powered by Google App Engine
This is Rietveld 408576698