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

Unified Diff: media/video/video_decode_accelerator.h

Issue 2045273005: Have VDA clients inform decoder of supported picture buffer formats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « media/gpu/ipc/common/media_param_traits_macros.h ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 994d1cb3f5cd6cbd2e16415c61c49e660833a31a..62927eae59fb36e791211544fce0f7c6c3474842 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -115,12 +115,15 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
IMPORT,
};
- Config() = default;
+ Config();
+ Config(const Config& config);
// Intentional converting constructor.
// TODO(watk): Make this explicit.
Config(VideoCodecProfile profile);
+ ~Config();
+
std::string AsHumanReadableString() const;
// The video codec and profile.
@@ -145,6 +148,10 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
gfx::Size initial_expected_coded_size = gfx::Size(320, 240);
OutputMode output_mode = OutputMode::ALLOCATE;
+
+ // The list of picture buffer formats that the client knows how to use. An
+ // empty list means any format is supported.
+ std::vector<VideoPixelFormat> supported_output_formats;
};
// Interface for collaborating with picture interface to provide memory for
« no previous file with comments | « media/gpu/ipc/common/media_param_traits_macros.h ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698