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

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

Issue 2700173002: Add MJPEG support to FakeVideoCaptureDevice (Closed)
Patch Set: Fix for compilers on Win and Android Created 3 years, 10 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/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 c853b4dfde712d2cd5752ea597de844305f6695b..1f3147af82bfa7b4c8260bdad9b2eaa063ad3ef4 100644
--- a/media/capture/video/fake_video_capture_device.h
+++ b/media/capture/video/fake_video_capture_device.h
@@ -18,6 +18,7 @@ namespace media {
// on a given target OutputMode and frame rate.
class CAPTURE_EXPORT FakeVideoCaptureDeviceMaker {
public:
+ enum class PixelFormat { I420, Y16, MJPEG };
enum class DeliveryMode {
USE_DEVICE_INTERNAL_BUFFERS,
USE_CLIENT_PROVIDED_BUFFERS
@@ -25,8 +26,11 @@ class CAPTURE_EXPORT FakeVideoCaptureDeviceMaker {
static void GetSupportedSizes(std::vector<gfx::Size>* supported_sizes);
+ static media::VideoPixelFormat TranslateToMediaVideoPixelFormat(
+ PixelFormat format);
mcasas 2017/02/22 20:26:33 We already have a |VideoPixelFormat|. I think you
chfremer 2017/02/23 01:14:28 You are right. The reason I added these enum class
+
static std::unique_ptr<VideoCaptureDevice> MakeInstance(
- VideoPixelFormat pixel_format,
+ PixelFormat pixel_format,
DeliveryMode delivery_mode,
float frame_rate);
};
« no previous file with comments | « no previous file | media/capture/video/fake_video_capture_device.cc » ('j') | media/capture/video/fake_video_capture_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698