Lines Matching defs:sampleIndex

54 status_t SampleIterator::seekTo(uint32_t sampleIndex) {
55 ALOGV("seekTo(%d)", sampleIndex);
57 if (sampleIndex >= mTable->mNumSampleSizes) {
69 if (mInitialized && mCurrentSampleIndex == sampleIndex) {
73 if (!mInitialized || sampleIndex < mFirstChunkSampleIndex) {
77 if (sampleIndex >= mStopChunkSampleIndex) {
79 if ((err = findChunkRange(sampleIndex)) != OK) {
85 CHECK(sampleIndex < mStopChunkSampleIndex);
93 (sampleIndex - mFirstChunkSampleIndex) / mSamplesPerChunk
125 (sampleIndex - mFirstChunkSampleIndex) % mSamplesPerChunk;
133 if (sampleIndex < mTTSSampleIndex) {
143 sampleIndex, &mCurrentSampleTime, &mCurrentSampleDuration)) != OK) {
148 mCurrentSampleIndex = sampleIndex;
155 status_t SampleIterator::findChunkRange(uint32_t sampleIndex) {
156 CHECK(sampleIndex >= mFirstChunkSampleIndex);
158 while (sampleIndex >= mStopChunkSampleIndex) {
232 uint32_t sampleIndex, size_t *size) {
235 if (sampleIndex >= mTable->mNumSampleSizes) {
249 mTable->mSampleSizeOffset + 12 + 4 * sampleIndex,
262 mTable->mSampleSizeOffset + 12 + 2 * sampleIndex,
275 mTable->mSampleSizeOffset + 12 + sampleIndex,
290 mTable->mSampleSizeOffset + 12 + sampleIndex / 2,
295 *size = (sampleIndex & 1) ? x & 0x0f : x >> 4;
304 uint32_t sampleIndex, uint32_t *time, uint32_t *duration) {
305 if (sampleIndex >= mTable->mNumSampleSizes) {
313 if(sampleIndex < mTTSSampleIndex + mTTSCount) {
331 *time = mTTSSampleTime + mTTSDuration * (sampleIndex - mTTSSampleIndex);
333 int32_t offset = mTable->getCompositionTimeOffset(sampleIndex);