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

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

Issue 1566533003: V4L2(S)VDA: Check if device handles profile for supported fourccs on init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | 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 df6b59822a6b56df58b565fb7a877f1ed01107a8..d66413c43a3631184862198427bf4cf8b7e4c316 100644
--- a/content/common/gpu/media/v4l2_device.h
+++ b/content/common/gpu/media/v4l2_device.h
@@ -123,6 +123,13 @@ class CONTENT_EXPORT V4L2Device
media::VideoDecodeAccelerator::SupportedProfiles GetSupportedDecodeProfiles(
const size_t num_formats, const uint32_t pixelformats[]);
+ // Return true if the device supports |profile|, taking into account only
+ // fourccs from the given array of |pixelformats| of size |num_formats|.
+ bool SupportsDecodeProfileForV4L2PixelFormats(
+ media::VideoCodecProfile profile,
+ const size_t num_formats,
+ const uint32_t pixelformats[]);
+
protected:
friend class base::RefCountedThreadSafe<V4L2Device>;
explicit V4L2Device(Type type);
« no previous file with comments | « no previous file | content/common/gpu/media/v4l2_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698