From c68a48c474f609df3eeb7d9738675d6ac8835e0a Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Fri, 8 Oct 2010 12:06:27 -0700 Subject: Refactor some more h.264 utility code out into avc_utils. Work around a hardware decoder issue by making sure the first access unit submitted to a decoder at startup or after seek is an IDR. Change-Id: I61936601e55df7e4c23a8c13087579a4f85bd6e6 --- media/libstagefright/include/avc_utils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'media/libstagefright/include') diff --git a/media/libstagefright/include/avc_utils.h b/media/libstagefright/include/avc_utils.h index 6602852..62cfc36 100644 --- a/media/libstagefright/include/avc_utils.h +++ b/media/libstagefright/include/avc_utils.h @@ -29,6 +29,16 @@ void FindAVCDimensions( unsigned parseUE(ABitReader *br); +status_t getNextNALUnit( + const uint8_t **_data, size_t *_size, + const uint8_t **nalStart, size_t *nalSize, + bool startCodeFollows = false); + +struct MetaData; +sp MakeAVCCodecSpecificData(const sp &accessUnit); + +bool IsIDR(const sp &accessUnit); + } // namespace android #endif // AVC_UTILS_H_ -- cgit v1.1