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

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

Issue 967793002: Linux Video Capture: Add V4L2VideoCaptureDelegate{Single,Multi}Plane. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: magjed@ comments Created 5 years, 9 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 94cbac24fdf69fb4fd7a63e92eff687c1bb056d5..998d3a49563ce8239a2f9ec95eff0419e34b9a1b 100644
--- a/media/video/capture/linux/video_capture_device_linux.h
+++ b/media/video/capture/linux/video_capture_device_linux.h
@@ -20,11 +20,13 @@
namespace media {
+class V4L2CaptureDelegate;
+
// Linux V4L2 implementation of VideoCaptureDevice.
class VideoCaptureDeviceLinux : public VideoCaptureDevice {
public:
static VideoPixelFormat V4l2FourCcToChromiumPixelFormat(uint32 v4l2_fourcc);
- static std::list<int> GetListOfUsableFourCCs(bool favour_mjpeg);
+ static std::list<uint32_t> GetListOfUsableFourCCs(bool favour_mjpeg);
explicit VideoCaptureDeviceLinux(const Name& device_name);
~VideoCaptureDeviceLinux() override;
@@ -38,10 +40,11 @@ class VideoCaptureDeviceLinux : public VideoCaptureDevice {
void SetRotation(int rotation);
private:
+ static int TranslatePowerLineFrequencyToV4L2(int frequency);
+
// Internal delegate doing the actual capture setting, buffer allocation and
// circulacion with the V4L2 API. Created and deleted in the thread where
// VideoCaptureDeviceLinux lives but otherwise operating on |v4l2_thread_|.
- class V4L2CaptureDelegate;
scoped_refptr<V4L2CaptureDelegate> capture_impl_;
base::Thread v4l2_thread_; // Thread used for reading data from the device.

Powered by Google App Engine
This is Rietveld 408576698