diff options
author | Andreas Huber <andih@google.com> | 2011-09-13 11:12:57 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-09-13 11:12:57 -0700 |
commit | 7de73f4eb68f3aa478e19ba05a13bc84296f9894 (patch) | |
tree | 358aaff9893f6676069c1ea0ac6f3df995e6f622 /media/libstagefright/include/AVIExtractor.h | |
parent | 9215ea4cd8bc5f9c9770c5c34a009dc7c6068f86 (diff) | |
download | frameworks_av-7de73f4eb68f3aa478e19ba05a13bc84296f9894.zip frameworks_av-7de73f4eb68f3aa478e19ba05a13bc84296f9894.tar.gz frameworks_av-7de73f4eb68f3aa478e19ba05a13bc84296f9894.tar.bz2 |
Support .avi tracks that have a sample size of 1, i.e. samples != chunks
Assume for now that all chunks are the same size, i.e. have the same number of
samples.
Change-Id: Ib8a7dfeb16cc3e5be199ff9d98b68dd0b9c23eb8
related-to-bug: 5279872
Diffstat (limited to 'media/libstagefright/include/AVIExtractor.h')
-rw-r--r-- | media/libstagefright/include/AVIExtractor.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/media/libstagefright/include/AVIExtractor.h b/media/libstagefright/include/AVIExtractor.h index 375a94d..b575347 100644 --- a/media/libstagefright/include/AVIExtractor.h +++ b/media/libstagefright/include/AVIExtractor.h @@ -54,6 +54,11 @@ private: uint32_t mRate; uint32_t mScale; + // If bytes per sample == 0, each chunk represents a single sample, + // otherwise each chunk should me a multiple of bytes-per-sample in + // size. + uint32_t mBytesPerSample; + enum Kind { AUDIO, VIDEO, @@ -84,7 +89,11 @@ private: status_t getSampleInfo( size_t trackIndex, size_t sampleIndex, - off64_t *offset, size_t *size, bool *isKey); + off64_t *offset, size_t *size, bool *isKey, + int64_t *sampleTimeUs); + + status_t getSampleTime( + size_t trackIndex, size_t sampleIndex, int64_t *sampleTimeUs); status_t getSampleIndexAtTime( size_t trackIndex, |