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() 88 (sampleIndex - mFirstChunkSampleIndex) / mSamplesPerChunk in seekTo() 119 (sampleIndex - mFirstChunkSampleIndex) % mSamplesPerChunk; in seekTo() [all …]
|
D | SampleTable.cpp | 49 uint32_t getCompositionTimeOffset(uint32_t sampleIndex); 81 uint32_t sampleIndex) { in getCompositionTimeOffset() argument 88 if (sampleIndex < mCurrentEntrySampleIndex) { in getCompositionTimeOffset() 95 if (sampleIndex < mCurrentEntrySampleIndex + sampleCount) { in getCompositionTimeOffset() 504 uint32_t sampleIndex = 0; in buildSampleEntriesTable() local 512 if (sampleIndex < mNumSampleSizes) { in buildSampleEntriesTable() 517 mSampleTimeEntries[sampleIndex].mSampleIndex = sampleIndex; in buildSampleEntriesTable() 521 sampleIndex); in buildSampleEntriesTable() 523 mSampleTimeEntries[sampleIndex].mCompositionTime = in buildSampleEntriesTable() 527 ++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 | 459 uint32_t sampleIndex; in getTrackMetaData() local 461 if (track->sampleTable->findThumbnailSample(&sampleIndex) == OK in getTrackMetaData() 463 sampleIndex, NULL /* offset */, NULL /* size */, in getTrackMetaData() 3695 uint32_t sampleIndex; in read() local 3698 &sampleIndex, findFlags); in read() 3710 sampleIndex, &syncSampleIndex, findFlags); in read() 3716 sampleIndex, NULL, NULL, &sampleTime); in read()
|
/frameworks/av/media/libstagefright/include/ |
D | SampleIterator.h | 26 status_t seekTo(uint32_t sampleIndex); 36 uint32_t sampleIndex, size_t *size); 68 status_t findChunkRange(uint32_t sampleIndex); 70 status_t findSampleTimeAndDuration(uint32_t sampleIndex, uint32_t *time, uint32_t *duration);
|
D | AVIExtractor.h | 96 size_t trackIndex, size_t sampleIndex, 101 size_t trackIndex, size_t sampleIndex, int64_t *sampleTimeUs); 106 size_t *sampleIndex) const;
|
D | SampleTable.h | 65 uint32_t sampleIndex, 150 uint32_t getCompositionTimeOffset(uint32_t sampleIndex);
|