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 6a8dcee126163e987cdbd1eb8961b3b05da2b9c2..e0b8cfacf3841a3a2c4244e1ee670e50f98dc1b4 100644 |
--- a/media/video/capture/linux/video_capture_device_linux.h |
+++ b/media/video/capture/linux/video_capture_device_linux.h |
@@ -31,6 +31,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. |
@@ -67,6 +73,7 @@ class VideoCaptureDeviceLinux : public VideoCaptureDevice { |
int buffer_pool_size_; // Number of allocated buffers. |
int timeout_count_; |
VideoCaptureFormat capture_format_; |
+ int rotation_; // Clockwise rotation. |
mcasas
2014/05/11 18:41:25
Comment that |rotation_| is used in |v4l2_thread_|
Zachary Kuznia
2014/05/12 02:54:18
Done.
|
DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceLinux); |
}; |