diff options
author | Andreas Huber <andih@google.com> | 2010-10-08 12:06:27 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-10-08 12:06:27 -0700 |
commit | c68a48c474f609df3eeb7d9738675d6ac8835e0a (patch) | |
tree | 4513bc3b15dc583bbca45db9c67f4d0aba8b1172 /media/libstagefright/include/avc_utils.h | |
parent | 6f3cba53efdd985ab13734c7ad90eb373ae9b9f7 (diff) | |
download | frameworks_av-c68a48c474f609df3eeb7d9738675d6ac8835e0a.zip frameworks_av-c68a48c474f609df3eeb7d9738675d6ac8835e0a.tar.gz frameworks_av-c68a48c474f609df3eeb7d9738675d6ac8835e0a.tar.bz2 |
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
Diffstat (limited to 'media/libstagefright/include/avc_utils.h')
-rw-r--r-- | media/libstagefright/include/avc_utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
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<MetaData> MakeAVCCodecSpecificData(const sp<ABuffer> &accessUnit); + +bool IsIDR(const sp<ABuffer> &accessUnit); + } // namespace android #endif // AVC_UTILS_H_ |