Home
last modified time | relevance | path

Searched refs:sampleCount (Results 1 – 21 of 21) sorted by relevance

/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DMuxer.java67 for (int sampleCount = 0; sampleCount < inputExtractedBuffer.size(); sampleCount++) { in mux()
69 mMuxer.writeSampleData(trackIndex, inputExtractedBuffer.get(sampleCount), in mux()
70 inputBufferInfo.get(sampleCount)); in mux()
72 mStats.addFrameSize(inputBufferInfo.get(sampleCount).size); in mux()
/frameworks/av/media/libeffects/hapticgenerator/
DProcessors.cpp64 size_t sampleCount = frameCount * mChannelCount; in process() local
66 while (i + 1 < sampleCount) { in process()
94 size_t sampleCount = frameCount * mChannelCount; in process() local
95 if (sampleCount > mLpfOutBuffer.size()) { in process()
96 mLpfOutBuffer.resize(sampleCount); in process()
97 mLpfInBuffer.resize(sampleCount); in process()
99 for (size_t i = 0; i < sampleCount; ++i) { in process()
103 for (size_t i = 0; i < sampleCount; ++i) { in process()
134 size_t sampleCount = frameCount * mChannelCount; in process() local
135 if (sampleCount > mLpfInBuffer.size()) { in process()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/powerstats/
DIntervalRandomNoiseGeneratorTest.java55 final int sampleCount = 1000; in assertDistribution() local
60 }, sampleCount, bucketCount, 100, 200); in assertDistribution()
64 .that((double) histogram[i] / sampleCount) in assertDistribution()
71 private int[] buildHistogram(Supplier<Long> generator, int sampleCount, in buildHistogram() argument
74 for (int i = 0; i < sampleCount; i++) { in buildHistogram()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp104 AudioCodec *codec, int sampleRate, int sampleCount,
170 AudioCodec *codec, int sampleRate, int sampleCount, in set() argument
183 mSampleCount = sampleCount; in set()
487 bool set(int sampleRate, int sampleCount);
586 bool AudioGroup::set(int sampleRate, int sampleCount) in set() argument
595 mSampleCount = sampleCount; in set()
608 sampleRate, sampleCount, -1, -1)) { in set()
617 tv.tv_usec = 1000 * sampleCount / sampleRate * 500; in set()
798 size_t sampleCount = mGroup->mSampleCount; in threadLoop() local
813 if (output < sampleCount * 2) { in threadLoop()
[all …]
DEchoSuppressor.cpp42 EchoSuppressor::EchoSuppressor(int sampleCount, int tailLength) in EchoSuppressor() argument
44 tailLength += sampleCount * 4; in EchoSuppressor()
47 while ((sampleCount >> shift) > 1 && (tailLength >> shift) > 256) { in EchoSuppressor()
53 mSampleCount = sampleCount; in EchoSuppressor()
54 mWindowSize = sampleCount >> shift; in EchoSuppressor()
56 mRecordLength = tailLength * 2 / sampleCount; in EchoSuppressor()
DEchoSuppressor.h26 EchoSuppressor(int sampleCount, int tailLength);
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaSampleReaderNDKTests.cpp107 void readSamplesAsync(int trackIndex, int sampleCount) { in readSamplesAsync() argument
108 mTrackThreads[trackIndex] = std::thread{[this, trackIndex, sampleCount] { in readSamplesAsync()
111 while (samplesRead < sampleCount || sampleCount == SAMPLE_COUNT_ALL) { in readSamplesAsync()
134 void readSamplesAsync(int sampleCount) { in readSamplesAsync() argument
136 readSamplesAsync(trackIndex, sampleCount); in readSamplesAsync()
360 for (int sampleCount = 0; sampleCount <= (mExtractorSamples[trackIndToTest].size() + 1); in TEST_F() local
361 ++sampleCount) { in TEST_F()
366 tester.readSamplesAsync(trackIndex, sampleCount); in TEST_F()
DVideoTrackTranscoderTests.cpp111 uint64_t sampleCount = 0; in TEST_F() local
112 transcoder->setSampleConsumer([&sampleCount, &eos](const std::shared_ptr<MediaSample>& sample) { in TEST_F()
116 if (sampleCount == 0) { in TEST_F()
122 } else if (sampleCount == 1) { in TEST_F()
139 ++sampleCount; in TEST_F()
DPassthroughTrackTranscoderTests.cpp169 uint64_t sampleCount = 0; in TEST_F() local
171 [&sampleCount, &sampleChecksums, &eos](const std::shared_ptr<MediaSample>& sample) { in TEST_F()
179 EXPECT_TRUE(sampleId == sampleChecksums[sampleCount]); in TEST_F()
180 ++sampleCount; in TEST_F()
185 EXPECT_EQ(sampleCount, sampleChecksums.size()); in TEST_F()
DMediaTrackTranscoderTests.cpp299 uint32_t sampleCount = 0; in TEST_P() local
310 if (++sampleCount >= 10) { // Wait for a few samples before stopping. in TEST_P()
DMediaSampleWriterTests.cpp269 static uint32_t sampleCount = 0; in newSampleWithPts() local
272 uint32_t sampleId = ++sampleCount; in newSampleWithPts()
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/
DMediaTrackTranscoderBenchmark.cpp281 uint32_t& sampleCount) { in ConfigureEmptySampleConsumer() argument
282 transcoder->setSampleConsumer([&sampleCount](const std::shared_ptr<MediaSample>& sample) { in ConfigureEmptySampleConsumer()
284 ++sampleCount; in ConfigureEmptySampleConsumer()
373 uint32_t sampleCount = 0; in BenchmarkTranscoder() local
374 ConfigureEmptySampleConsumer(transcoder, sampleCount); in BenchmarkTranscoder()
389 LOG(DEBUG) << "Number of samples received: " << sampleCount; in BenchmarkTranscoder()
390 state.counters["FrameRate"] = benchmark::Counter(sampleCount, benchmark::Counter::kIsRate); in BenchmarkTranscoder()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAnyMotionDetector.java470 int sampleCount; field in AnyMotionDetector.RunningSignalStats
481 sampleCount = 0; in reset()
492 sampleCount++; in accumulate()
509 if (sampleCount > 0) { in getRunningAverage()
510 return runningSum.times(1.0f / sampleCount); in getRunningAverage()
520 return sampleCount; in getSampleCount()
532 msg += ", sampleCount = " + sampleCount; in toString()
/frameworks/native/libs/input/
DInput.cpp824 size_t sampleCount = parcel->readInt32(); in readFromParcel() local
826 sampleCount == 0 || sampleCount > MAX_SAMPLES) { in readFromParcel()
866 mSampleEventTimes.reserve(sampleCount); in readFromParcel()
868 mSamplePointerCoords.reserve(sampleCount * pointerCount); in readFromParcel()
877 while (sampleCount > 0) { in readFromParcel()
878 sampleCount--; in readFromParcel()
893 size_t sampleCount = mSampleEventTimes.size(); in writeToParcel() local
896 parcel->writeInt32(sampleCount); in writeToParcel()
934 for (size_t h = 0; h < sampleCount; h++) { in writeToParcel()
/frameworks/rs/driver/
DrsdGL.cpp249 for (uint32_t sampleCount = prefSample; sampleCount >= minSample; sampleCount--) { in rsdGLInit() local
250 getConfigData(rsc, configAttribs, (sizeof(configAttribs) / sizeof(EGLint)), sampleCount); in rsdGLInit()
/frameworks/av/media/module/extractors/mp4/
DSampleTable.cpp103 uint32_t sampleCount = mDeltaEntries[2 * mCurrentDeltaEntry]; in getCompositionTimeOffset() local
104 if (sampleIndex < mCurrentEntrySampleIndex + sampleCount) { in getCompositionTimeOffset()
108 mCurrentEntrySampleIndex += sampleCount; in getCompositionTimeOffset()
DMPEG4Extractor.cpp5672 uint32_t sampleCount = mCurrentSampleInfoCount; in parseClearEncryptedSizes() local
5677 if (!mDataSource->getUInt32(offset, &sampleCount)) { in parseClearEncryptedSizes()
5685 for (size_t i = 0; i < sampleCount; i++) { in parseClearEncryptedSizes()
5897 uint32_t sampleCount; in parseTrackFragmentRun() local
5898 if (!mDataSource->getUInt32(offset + 4, &sampleCount)) { in parseTrackFragmentRun()
5990 if (size < (off64_t)sampleCount * bytesPerSample) { in parseTrackFragmentRun()
6003 if (sampleCount > kMaxTrunSampleCount) { in parseTrackFragmentRun()
6005 sampleCount, kMaxTrunSampleCount); in parseTrackFragmentRun()
6012 for (uint32_t i = 0; i < sampleCount; ++i) { in parseTrackFragmentRun()
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp457 void addOneSttsTableEntry(size_t sampleCount, int32_t delta /* media time scale based */);
458 void addOneCttsTableEntry(size_t sampleCount, int32_t sampleOffset);
2374 void MPEG4Writer::Track::addOneSttsTableEntry(size_t sampleCount, int32_t delta) { in addOneSttsTableEntry() argument
2376 ALOGW("0-duration samples found: %zu", sampleCount); in addOneSttsTableEntry()
2378 mSttsTableEntries->add(htonl(sampleCount)); in addOneSttsTableEntry()
2382 void MPEG4Writer::Track::addOneCttsTableEntry(size_t sampleCount, int32_t sampleOffset) { in addOneCttsTableEntry() argument
2386 mCttsTableEntries->add(htonl(sampleCount)); in addOneCttsTableEntry()
3506 int32_t sampleCount = 1; // Sample count in the current stts table entry in threadEntry() local
3953 addOneSttsTableEntry(sampleCount, lastDurationTicks); in threadEntry()
3954 sampleCount = 1; in threadEntry()
[all …]
/frameworks/av/media/libaudioprocessing/
DAudioMixer.cpp633 size_t sampleCount = mFrameCount * t->mMixerHapticChannelCount; in postProcess() local
639 os::scaleHapticData((float*) buffer, sampleCount, t->mHapticScale, in postProcess()
DAudioMixerBase.cpp1558 void *in, audio_format_t mixerInFormat, size_t sampleCount) in convertMixerFormat() argument
1564 memcpy(out, in, sampleCount * sizeof(float)); // MEMCPY. TODO optimize out in convertMixerFormat()
1567 memcpy_to_i16_from_float((int16_t*)out, (float*)in, sampleCount); in convertMixerFormat()
1577 memcpy_to_float_from_q4_27((float*)out, (const int32_t*)in, sampleCount); in convertMixerFormat()
1580 memcpy_to_i16_from_q4_27((int16_t*)out, (const int32_t*)in, sampleCount); in convertMixerFormat()
/frameworks/av/media/libaudioprocessing/include/media/
DAudioMixerBase.h363 void *in, audio_format_t mixerInFormat, size_t sampleCount);