Index: content/common/gpu/media/v4l2_device.h |
diff --git a/content/common/gpu/media/v4l2_device.h b/content/common/gpu/media/v4l2_device.h |
index 72af69967b3ea83d9820eee283b52e88b6754cad..4d827318ba1a79a9a3e5a091f7d3c2706bd7404f 100644 |
--- a/content/common/gpu/media/v4l2_device.h |
+++ b/content/common/gpu/media/v4l2_device.h |
@@ -13,6 +13,7 @@ |
#include "content/common/content_export.h" |
#include "media/base/video_decoder_config.h" |
#include "media/base/video_frame.h" |
+#include "media/video/video_decode_accelerator.h" |
#include "ui/gfx/geometry/size.h" |
#include "ui/gl/gl_bindings.h" |
@@ -106,9 +107,22 @@ class CONTENT_EXPORT V4L2Device |
// Returns the preferred V4L2 input format or 0 if don't care. |
virtual uint32 PreferredInputFormat() = 0; |
+ // Get maximum and minimum resolution for fourcc |pixelformat| and store to |
+ // |max_resolution| and |min_resolution|. |
+ void GetSupportedResolution(uint32_t pixelformat, gfx::Size* max_resolution, |
Pawel Osciak
2015/04/28 01:35:33
Sorry for nitpicking, but could we have min before
henryhsu
2015/04/28 05:06:56
Done.
|
+ gfx::Size* min_resolution); |
+ |
+ // Return supported profiles for decoder, including only profiles for given |
+ // fourcc |pixelformats|. |
+ media::VideoDecodeAccelerator::SupportedProfiles GetSupportedDecodeProfiles( |
+ const size_t num_formats, const uint32_t pixelformats[]); |
+ |
protected: |
friend class base::RefCountedThreadSafe<V4L2Device>; |
+ explicit V4L2Device(Type type); |
virtual ~V4L2Device(); |
+ |
+ const Type type_; |
}; |
} // namespace content |