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

Unified Diff: media/video/capture/linux/video_capture_device_linux.h

Issue 270263008: Add a ChromeOS implementation of VideoCaptureDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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: media/video/capture/linux/video_capture_device_linux.h
diff --git a/media/video/capture/linux/video_capture_device_linux.h b/media/video/capture/linux/video_capture_device_linux.h
index 303da310be2706ab0a8c299516afaef2c4575afd..5415eb744d996f06159862a6ef04bc6093eb53f0 100644
--- a/media/video/capture/linux/video_capture_device_linux.h
+++ b/media/video/capture/linux/video_capture_device_linux.h
@@ -35,6 +35,12 @@ class VideoCaptureDeviceLinux : public VideoCaptureDevice {
virtual void StopAndDeAllocate() OVERRIDE;
+ protected:
+ void SetRotation(int rotation);
+
+ // Once |v4l2_thread_| is started, only called on that thread.
+ void SetRotationOnV4L2Thread(int rotation);
+
private:
enum InternalState {
kIdle, // The device driver is opened but camera is not in use.
@@ -72,6 +78,11 @@ class VideoCaptureDeviceLinux : public VideoCaptureDevice {
int timeout_count_;
VideoCaptureFormat capture_format_;
+ // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270.
+ // This is only used on |v4l2_thread_| when it is running, or the constructor
+ // thread otherwise.
+ int rotation_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceLinux);
};

Powered by Google App Engine
This is Rietveld 408576698