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

Unified Diff: media/gpu/android_video_decode_accelerator.h

Issue 2365103002: Send the h264 SPS and PPS configuration parameters to AVDA (Closed)
Patch Set: Fix array init syntax Created 4 years, 3 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: media/gpu/android_video_decode_accelerator.h
diff --git a/media/gpu/android_video_decode_accelerator.h b/media/gpu/android_video_decode_accelerator.h
index ff44bc1147f55ab15460c1c6541893fba887507d..c7066f794bd91de847748a2bfd741adef7ba83b3 100644
--- a/media/gpu/android_video_decode_accelerator.h
+++ b/media/gpu/android_video_decode_accelerator.h
@@ -125,6 +125,10 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator
// software when autodetecting can sometimes hang mediaserver.
bool allow_autodetection_ = false;
+ // Codec specific data (SPS and PPS for H264).
+ std::vector<uint8_t> csd0_;
+ std::vector<uint8_t> csd1_;
+
protected:
friend class base::RefCountedThreadSafe<CodecConfig>;
virtual ~CodecConfig();
@@ -268,6 +272,10 @@ class MEDIA_GPU_EXPORT AndroidVideoDecodeAccelerator
// this.
void OnDestroyingSurface(int surface_id);
+ // Initialize the csd fields of |codec_config_| with parameters extracted from
+ // |extra_data|.
+ void SetCsd(const std::vector<uint8_t>& extra_data);
+
// Indicates if MediaCodec should not be used for software decoding since we
// have safer versions elsewhere.
bool IsMediaCodecSoftwareDecodingForbidden() const;

Powered by Google App Engine
This is Rietveld 408576698