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

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..8c8d378f27c00241fffe6ca77a5fc4a6b16ee9e1 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.
+ std::vector<VideoPixelFormat> supported_output_formats{PIXEL_FORMAT_ARGB,
Pawel Osciak 2016/06/13 07:57:31 What would you think of making an empty list the d
+ PIXEL_FORMAT_XRGB};
};
// 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