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

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

Issue 10035054: Merge VideoCaptureDevice::Capability with media::VideoCaptureCapability (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix a namespace issue Created 8 years, 8 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/video/capture/video_capture_device_unittest.cc ('k') | media/video/capture/win/sink_filter_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/video_capture_types.h
diff --git a/media/video/capture/video_capture_types.h b/media/video/capture/video_capture_types.h
index d5f3fdf77eae5ef935a85b5d7908bb0118492431..165acc93d4d325da4f0b042f34b50738c368e3c7 100644
--- a/media/video/capture/video_capture_types.h
+++ b/media/video/capture/video_capture_types.h
@@ -23,10 +23,23 @@ struct VideoCaptureParams {
// Capabilities describe the format a camera capture video in.
struct VideoCaptureCapability {
+ // Color formats from camera.
+ enum Format {
+ kColorUnknown, // Color format not set.
+ kI420,
+ kYUY2,
+ kUYVY,
+ kRGB24,
+ kARGB,
+ kMJPEG, // Currently only supported on Windows.
+ kNV21,
+ kYV12,
+ };
+
int width; // Desired width.
int height; // Desired height.
int frame_rate; // Desired frame rate.
- media::VideoFrame::Format color; // Desired video type.
+ Format color; // Desired video type.
int expected_capture_delay; // Expected delay in millisecond.
bool interlaced; // Need interlace format.
};
« no previous file with comments | « media/video/capture/video_capture_device_unittest.cc ('k') | media/video/capture/win/sink_filter_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698