| 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;
|
|
|