Home
last modified time | relevance | path

Searched refs:sampleIndex (Results 1 – 9 of 9) sorted by relevance

/frameworks/av/media/libaaudio/examples/utils/
DSineGenerator.h51 int sampleIndex = 0; in render() local
53 buffer[sampleIndex] = (int16_t) (INT16_MAX * next()); in render()
54 sampleIndex += channelStride; in render()
59 int sampleIndex = 0; in render() local
61 buffer[sampleIndex] = next(); in render()
62 sampleIndex += channelStride; in render()
67 int sampleIndex = 0; in render() local
69 buffer[sampleIndex] = (int32_t) (INT32_MAX * next()); in render()
70 sampleIndex += channelStride; in render()
75 int sampleIndex = 0; in render24() local
[all …]
/frameworks/av/media/module/extractors/mp4/
DSampleIterator.cpp53 status_t SampleIterator::seekTo(uint32_t sampleIndex) { in seekTo() argument
54 ALOGV("seekTo(%d)", sampleIndex); in seekTo()
56 if (sampleIndex >= mTable->mNumSampleSizes) { in seekTo()
68 if (mInitialized && mCurrentSampleIndex == sampleIndex) { in seekTo()
72 if (!mInitialized || sampleIndex < mFirstChunkSampleIndex) { in seekTo()
76 if (sampleIndex >= mStopChunkSampleIndex) { in seekTo()
78 if ((err = findChunkRange(sampleIndex)) != OK) { in seekTo()
84 CHECK(sampleIndex < mStopChunkSampleIndex); in seekTo()
92 (sampleIndex - mFirstChunkSampleIndex) / mSamplesPerChunk in seekTo()
131 (sampleIndex - mFirstChunkSampleIndex) % mSamplesPerChunk; in seekTo()
[all …]
DSampleTable.cpp58 int32_t getCompositionTimeOffset(uint32_t sampleIndex);
90 uint32_t sampleIndex) { in getCompositionTimeOffset() argument
97 if (sampleIndex < mCurrentEntrySampleIndex) { in getCompositionTimeOffset()
104 if (sampleIndex < mCurrentEntrySampleIndex + sampleCount) { in getCompositionTimeOffset()
663 uint32_t sampleIndex = 0; in buildSampleEntriesTable() local
671 if (sampleIndex < mNumSampleSizes) { in buildSampleEntriesTable()
676 mSampleTimeEntries[sampleIndex].mSampleIndex = sampleIndex; in buildSampleEntriesTable()
680 sampleIndex); in buildSampleEntriesTable()
697 mSampleTimeEntries[sampleIndex].mCompositionTime = in buildSampleEntriesTable()
702 ++sampleIndex; in buildSampleEntriesTable()
[all …]
DMPEG4Extractor.cpp654 uint32_t sampleIndex; in getTrackMetaData() local
657 track->sampleTable->findThumbnailSample(&sampleIndex) == OK in getTrackMetaData()
659 sampleIndex, NULL /* offset */, NULL /* size */, in getTrackMetaData()
6225 uint32_t sampleIndex; in read() local
6228 &sampleIndex, findFlags); in read()
6238 uint32_t syncSampleIndex = sampleIndex; in read()
6245 sampleIndex, &syncSampleIndex, findFlags); in read()
6251 sampleIndex, NULL, NULL, &sampleTime); in read()
/frameworks/av/media/module/extractors/mp4/include/
DSampleIterator.h30 status_t seekTo(uint32_t sampleIndex);
45 uint32_t sampleIndex, size_t *size);
77 status_t findChunkRange(uint32_t sampleIndex);
79 status_t findSampleTimeAndDuration(uint32_t sampleIndex, uint64_t *time, uint64_t *duration);
DSampleTable.h66 uint32_t sampleIndex,
167 int32_t getCompositionTimeOffset(uint32_t sampleIndex);
/frameworks/av/services/oboeservice/
DAAudioMixer.cpp111 for (int sampleIndex = 0; sampleIndex < numSamples; sampleIndex++) { in mixPart() local
/frameworks/av/media/module/libmediatranscoding/transcoder/include/media/
DMediaSampleReaderNDK.h71 void set(uint64_t sampleIndex, int64_t sampleTimeUs) { in set()
72 index = sampleIndex; in set()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaSampleReaderNDKTests.cpp242 for (size_t sampleIndex = 0; sampleIndex < readerSamples[trackIndex].size(); in compareSamples() local
243 sampleIndex++) { in compareSamples()
244 EXPECT_EQ(readerSamples[trackIndex][sampleIndex], in compareSamples()
245 mExtractorSamples[trackIndex][sampleIndex]); in compareSamples()