| Index: media/video/capture/win/capability_list_win.h
|
| diff --git a/media/video/capture/win/capability_list_win.h b/media/video/capture/win/capability_list_win.h
|
| index c07b220b0d55dc246355f84ef141ae3267796b26..bf1e8d6ee89e4cbc4f7b46ad334a1634a5d10086 100644
|
| --- a/media/video/capture/win/capability_list_win.h
|
| +++ b/media/video/capture/win/capability_list_win.h
|
| @@ -11,12 +11,13 @@
|
|
|
| #include <list>
|
|
|
| +#include "base/basictypes.h"
|
| #include "base/threading/non_thread_safe.h"
|
| #include "media/video/capture/video_capture_types.h"
|
|
|
| namespace media {
|
|
|
| -struct VideoCaptureCapabilityWin : public VideoCaptureCapability {
|
| +struct VideoCaptureCapabilityWin {
|
| explicit VideoCaptureCapabilityWin(int index)
|
| : stream_index(index),
|
| frame_rate_numerator(0),
|
| @@ -26,6 +27,7 @@ struct VideoCaptureCapabilityWin : public VideoCaptureCapability {
|
| // so framerates can be properly represented, f.i. 29.971fps= 30000/1001.
|
| int frame_rate_numerator;
|
| int frame_rate_denominator;
|
| + VideoCaptureFormat supported_format;
|
| };
|
|
|
| class CapabilityList : public base::NonThreadSafe {
|
| @@ -41,8 +43,9 @@ class CapabilityList : public base::NonThreadSafe {
|
| // Loops through the list of capabilities and returns an index of the best
|
| // matching capability. The algorithm prioritizes height, width, frame rate
|
| // and color format in that order.
|
| - const VideoCaptureCapabilityWin& GetBestMatchedCapability(
|
| - int requested_width, int requested_height,
|
| + const VideoCaptureCapabilityWin& GetBestMatchedFormat(
|
| + int requested_width,
|
| + int requested_height,
|
| int requested_frame_rate) const;
|
|
|
| private:
|
|
|