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

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

Issue 848863002: PPAPI: implement GetSupportedPreviewSizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error on Linux build Created 5 years, 11 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/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_

Powered by Google App Engine
This is Rietveld 408576698