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

Unified Diff: media/capture/video/fake_video_capture_device.h

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 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 | « media/capture/video/blob_utils.cc ('k') | media/capture/video/fake_video_capture_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/fake_video_capture_device.h
diff --git a/media/capture/video/fake_video_capture_device.h b/media/capture/video/fake_video_capture_device.h
index 9e7cb4112e2d8a47ce2aa3151ee52147b8da386a..aa29f3f615259da278ac2668e168ade8bbde7913 100644
--- a/media/capture/video/fake_video_capture_device.h
+++ b/media/capture/video/fake_video_capture_device.h
@@ -30,7 +30,8 @@ class CAPTURE_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice {
};
FakeVideoCaptureDevice(BufferOwnership buffer_ownership,
- float fake_capture_rate);
+ float fake_capture_rate,
+ VideoPixelFormat pixel_format = PIXEL_FORMAT_I420);
~FakeVideoCaptureDevice() override;
// VideoCaptureDevice implementation.
@@ -56,6 +57,8 @@ class CAPTURE_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice {
const BufferOwnership buffer_ownership_;
// Frame rate of the fake video device.
const float fake_capture_rate_;
+ // Pixel format of all device streams.
+ const VideoPixelFormat pixel_format_;
std::unique_ptr<VideoCaptureDevice::Client> client_;
// |fake_frame_| is used for capturing on Own Buffers.
« no previous file with comments | « media/capture/video/blob_utils.cc ('k') | media/capture/video/fake_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698