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

Unified Diff: content/common/gpu/media/v4l2_device.h

Issue 1097913002: Remove kIgnoreResolutionLimitsForAcceleratedVideoDecode flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
« no previous file with comments | « content/common/gpu/media/tegra_v4l2_device.cc ('k') | content/common/gpu/media/v4l2_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8cc2f39958967f24890c6e8bf90ed2a577713c1b 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 minimum and maximum resolution for fourcc |pixelformat| and store to
+ // |min_resolution| and |max_resolution|.
+ void GetSupportedResolution(uint32_t pixelformat, gfx::Size* min_resolution,
+ gfx::Size* max_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
« no previous file with comments | « content/common/gpu/media/tegra_v4l2_device.cc ('k') | content/common/gpu/media/v4l2_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698