Searched refs:sampleIndex (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/media/libstagefright/ |
D | SampleIterator.cpp | 54 status_t SampleIterator::seekTo(uint32_t sampleIndex) { in seekTo() argument 55 ALOGV("seekTo(%d)", sampleIndex); in seekTo() 57 if (sampleIndex >= mTable->mNumSampleSizes) { in seekTo() 69 if (mInitialized && mCurrentSampleIndex == sampleIndex) { in seekTo() 73 if (!mInitialized || sampleIndex < mFirstChunkSampleIndex) { in seekTo() 77 if (sampleIndex >= mStopChunkSampleIndex) { in seekTo() 79 if ((err = findChunkRange(sampleIndex)) != OK) { in seekTo() 85 CHECK(sampleIndex < mStopChunkSampleIndex); in seekTo() 93 (sampleIndex - mFirstChunkSampleIndex) / mSamplesPerChunk in seekTo() 124 (sampleIndex - mFirstChunkSampleIndex) % mSamplesPerChunk; in seekTo() [all …]
|
D | SampleTable.cpp | 54 int32_t getCompositionTimeOffset(uint32_t sampleIndex); 86 uint32_t sampleIndex) { in getCompositionTimeOffset() argument 93 if (sampleIndex < mCurrentEntrySampleIndex) { in getCompositionTimeOffset() 100 if (sampleIndex < mCurrentEntrySampleIndex + sampleCount) { in getCompositionTimeOffset() 551 uint32_t sampleIndex = 0; in buildSampleEntriesTable() local 559 if (sampleIndex < mNumSampleSizes) { in buildSampleEntriesTable() 564 mSampleTimeEntries[sampleIndex].mSampleIndex = sampleIndex; in buildSampleEntriesTable() 568 sampleIndex); in buildSampleEntriesTable() 585 mSampleTimeEntries[sampleIndex].mCompositionTime = in buildSampleEntriesTable() 590 ++sampleIndex; in buildSampleEntriesTable() [all …]
|
D | AVIExtractor.cpp | 1057 size_t sampleIndex = 0; in addH264CodecSpecificData() local 1061 trackIndex, sampleIndex, &offset, &size, &isKey, &timeUs); in addH264CodecSpecificData() 1071 ++sampleIndex; in addH264CodecSpecificData() 1105 size_t trackIndex, size_t sampleIndex, in getSampleInfo() argument 1114 if (sampleIndex >= track.mSamples.size()) { in getSampleInfo() 1118 const SampleInfo &info = track.mSamples.itemAt(sampleIndex); in getSampleInfo() 1148 if (sampleIndex == 0) { in getSampleInfo() 1152 track.mFirstChunkSize + track.mAvgChunkSize * (sampleIndex - 1); in getSampleInfo() 1155 sampleIndex = sampleStartInBytes / track.mBytesPerSample; in getSampleInfo() 1158 *sampleTimeUs = (sampleIndex * 1000000ll * track.mRate) / track.mScale; in getSampleInfo() [all …]
|
D | MPEG4Extractor.cpp | 473 uint32_t sampleIndex; in getTrackMetaData() local 475 if (track->sampleTable->findThumbnailSample(&sampleIndex) == OK in getTrackMetaData() 477 sampleIndex, NULL /* offset */, NULL /* size */, in getTrackMetaData() 4217 uint32_t sampleIndex; in read() local 4220 &sampleIndex, findFlags); in read() 4232 sampleIndex, &syncSampleIndex, findFlags); in read() 4238 sampleIndex, NULL, NULL, &sampleTime); in read()
|
/frameworks/av/media/libstagefright/include/ |
D | SampleIterator.h | 30 status_t seekTo(uint32_t sampleIndex); 40 uint32_t sampleIndex, size_t *size); 72 status_t findChunkRange(uint32_t sampleIndex); 74 status_t findSampleTimeAndDuration(uint32_t sampleIndex, uint32_t *time, uint32_t *duration);
|
D | AVIExtractor.h | 97 size_t trackIndex, size_t sampleIndex, 102 size_t trackIndex, size_t sampleIndex, int64_t *sampleTimeUs); 107 size_t *sampleIndex) const;
|
D | SampleTable.h | 66 uint32_t sampleIndex, 153 int32_t getCompositionTimeOffset(uint32_t sampleIndex);
|