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

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: fix nits Created 5 years, 8 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: 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..a0daf24cc09e2f534419d4fb49101f5d5e2efb5a 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,18 @@ class CONTENT_EXPORT V4L2Device
// Returns the preferred V4L2 input format or 0 if don't care.
virtual uint32 PreferredInputFormat() = 0;
+ // Get maximum resolution for fourcc format.
+ gfx::Size GetMaxSupportedResolution(uint32_t pixelformat);
+
+ // Get supported profiles for decoder according to |pixelformats|.
+ media::VideoDecodeAccelerator::SupportedProfiles GetSupportedDecodeProfiles(
+ const std::vector<uint32_t>& pixelformats);
+
protected:
friend class base::RefCountedThreadSafe<V4L2Device>;
+ V4L2Device(Type type);
piman 2015/04/24 03:16:29 nit: explicit
henryhsu 2015/04/24 05:25:45 Done.
virtual ~V4L2Device();
+ const Type type_;
Pawel Osciak 2015/04/24 05:55:51 Nit: please add empty line above.
henryhsu 2015/04/24 07:07:29 Done.
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698