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 a6a13a81b070cb33224012525bda8b8dc1911c18..baf9fd5ca7fb26697291680c7938f3f97ef95602 100644 |
--- a/media/video/capture/video_capture_types.h |
+++ b/media/video/capture/video_capture_types.h |
@@ -57,8 +57,25 @@ class MEDIA_EXPORT VideoCaptureFormat { |
VideoPixelFormat pixel_format; |
}; |
+// Image capture format specification. |
+// This class is used by the video capture device to specify the format of the |
+// frame captured and returned to a client. It is also used to specify a |
wuchengli
2014/09/15 06:14:13
s/frame/still image/
Owen Lin
2014/09/15 09:04:36
Done.
|
+// supported capture format by a device. |
wuchengli
2014/09/15 06:14:13
add "still image" before capture
Owen Lin
2014/09/15 09:04:36
Done.
|
+class MEDIA_EXPORT ImageCaptureFormat { |
+ public: |
+ ImageCaptureFormat(); |
+ |
+ ImageCaptureFormat(const gfx::Size& frame_size, |
+ VideoPixelFormat pixel_format); |
+ |
+ gfx::Size frame_size; |
+ VideoPixelFormat pixel_format; |
+}; |
+ |
typedef std::vector<VideoCaptureFormat> VideoCaptureFormats; |
+typedef std::vector<ImageCaptureFormat> ImageCaptureFormats; |
+ |
// Parameters for starting video capture. |
// This class is used by the client of a video capture device to specify the |
// format of frames in which the client would like to have captured frames |