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

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

Issue 558623002: Video capture: Refactor GetBestMatchedFormat from Win to OS independent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac syntax error Created 6 years, 3 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 a791b4e9eb4e9ff498993e55ead2323f8f05d903..33e5e875128a6a5f94a14d3faf3398403e91c346 100644
--- a/media/video/capture/video_capture_types.h
+++ b/media/video/capture/video_capture_types.h
@@ -75,6 +75,20 @@ class MEDIA_EXPORT VideoCaptureParams {
bool allow_resolution_change;
};
+// Comparison function object used for comparing video capture formats when
+// finding the most closely matched video format given a requested video format.
+// If CompareVideoFormat::operator(lhs, rhs) is true, then format lhs is more
+// closely matched to the requested format than format rhs.
+class CompareVideoFormat {
tommi (sloooow) - chröme 2014/09/09 20:11:11 Is it possible to keep this in the cc file only?
+ public:
+ CompareVideoFormat(const VideoCaptureFormat& requested);
mcasas 2014/09/10 16:52:28 explicit
+ bool operator()(const VideoCaptureFormat& lhs,
+ const VideoCaptureFormat& rhs) const;
+
+ private:
+ const VideoCaptureFormat requested_;
+};
+
} // namespace media
#endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698