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 f8e8cab9ebaa4ed48aee99fd319333249d8a2354..16d059a3ac1303da335a1fa5150da6a291d2e8c0 100644 |
| --- a/media/video/capture/video_capture_types.h |
| +++ b/media/video/capture/video_capture_types.h |
| @@ -83,10 +83,15 @@ class MEDIA_EXPORT VideoCaptureFormat { |
| class MEDIA_EXPORT ImageCaptureFormat { |
| public: |
| ImageCaptureFormat(); |
| - |
| ImageCaptureFormat(const gfx::Size& frame_size, |
| VideoPixelFormat pixel_format); |
| + std::string ToString() const; |
| + |
| + // Checks that all values are in the expected range. All limits are specified |
| + // in media::Limits. |
| + bool IsValid() const; |
| + |
| gfx::Size frame_size; |
| VideoPixelFormat pixel_format; |
| }; |
| @@ -110,6 +115,15 @@ class MEDIA_EXPORT VideoCaptureParams { |
| ResolutionChangePolicy resolution_change_policy; |
| }; |
| +// Parameters for starting image capture. |
| +class MEDIA_EXPORT ImageCaptureParams { |
|
wuchengli
2015/01/19 14:05:03
Remove this. No need a class with only one variabl
Justin Chuang
2015/01/26 15:00:50
Removed. I forgot to remove this. Thx
|
| + public: |
| + ImageCaptureParams(); |
| + |
| + // Requests a resolution and format at which the capture will occur. |
| + ImageCaptureFormat requested_format; |
| +}; |
| + |
| } // namespace media |
| #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_TYPES_H_ |