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

Unified Diff: media/video/video_decode_accelerator.h

Issue 2365103002: Send the h264 SPS and PPS configuration parameters to AVDA (Closed)
Patch Set: Shot in the dark Created 4 years, 2 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') | no next file » | 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 7e3c940d637269499297e724c3353b8cf024bd8c..b818a05503db22fbdbbadd86d48e31dfee384176 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -156,6 +156,12 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// 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;
+
+ // The H264 SPS and PPS configuration data. Not all clients populate these
+ // fields, so they should be parsed from the bitstream instead, if required.
+ // Each SPS and PPS is prefixed with the Annex B framing bytes: 0, 0, 0, 1.
+ std::vector<uint8_t> sps;
+ std::vector<uint8_t> pps;
};
// 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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698