Chromium Code Reviews| 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..c6ec4d84143f19cc78ae800f5f052660a91875d9 100644 |
| --- a/media/video/capture/video_capture_types.h |
| +++ b/media/video/capture/video_capture_types.h |
| @@ -38,7 +38,7 @@ const int kFrameRatePrecision = 10000; |
| // Video capture format specification. |
| // This class is used by the video capture device to specify the format of every |
| // frame captured and returned to a client. It is also used to specify a |
| -// supported capture format by a device. |
| +// supported still image capture format by a device. |
|
wuchengli
2014/09/17 06:54:29
This belongs to ImageCaptureFormat, not here.
Owen Lin
2014/09/17 07:54:04
Oops.
|
| class MEDIA_EXPORT VideoCaptureFormat { |
| public: |
| VideoCaptureFormat(); |
| @@ -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 |
|
Pawel Osciak
2014/09/17 11:29:42
s/the format of the/the format of a/
Owen Lin
2014/09/18 06:04:15
Done.
|
| +// still image captured and returned to a client. It is also used to specify a |
|
Pawel Osciak
2014/09/17 11:29:42
A list of these is also provided when client queri
Owen Lin
2014/09/18 06:04:15
Done.
|
| +// supported capture format by a device. |
| +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 |