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_ |