/frameworks/av/media/libeffects/hapticgenerator/ |
D | Processors.cpp | 64 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/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Muxer.java | 67 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/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 104 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 …]
|
D | EchoSuppressor.cpp | 42 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()
|
D | EchoSuppressor.h | 26 EchoSuppressor(int sampleCount, int tailLength);
|
/frameworks/av/media/libmediatranscoding/transcoder/tests/ |
D | MediaSampleReaderNDKTests.cpp | 107 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()
|
D | VideoTrackTranscoderTests.cpp | 110 uint64_t sampleCount = 0; in TEST_F() local 111 transcoder->setSampleConsumer([&sampleCount, &eos](const std::shared_ptr<MediaSample>& sample) { in TEST_F() 115 if (sampleCount == 0) { in TEST_F() 121 } else if (sampleCount == 1) { in TEST_F() 138 ++sampleCount; in TEST_F()
|
D | PassthroughTrackTranscoderTests.cpp | 169 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()
|
D | MediaTrackTranscoderTests.cpp | 299 uint32_t sampleCount = 0; in TEST_P() local 310 if (++sampleCount >= 10) { // Wait for a few samples before stopping. in TEST_P()
|
D | MediaSampleWriterTests.cpp | 269 static uint32_t sampleCount = 0; in newSampleWithPts() local 272 uint32_t sampleId = ++sampleCount; in newSampleWithPts()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | AnyMotionDetector.java | 470 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/av/media/libmediatranscoding/transcoder/benchmark/ |
D | MediaTrackTranscoderBenchmark.cpp | 282 uint32_t& sampleCount) { in ConfigureEmptySampleConsumer() argument 283 transcoder->setSampleConsumer([&sampleCount](const std::shared_ptr<MediaSample>& sample) { in ConfigureEmptySampleConsumer() 285 ++sampleCount; in ConfigureEmptySampleConsumer() 374 uint32_t sampleCount = 0; in BenchmarkTranscoder() local 375 ConfigureEmptySampleConsumer(transcoder, sampleCount); in BenchmarkTranscoder() 390 LOG(DEBUG) << "Number of samples received: " << sampleCount; in BenchmarkTranscoder() 391 state.counters["FrameRate"] = benchmark::Counter(sampleCount, benchmark::Counter::kIsRate); in BenchmarkTranscoder()
|
/frameworks/native/libs/input/ |
D | Input.cpp | 692 size_t sampleCount = parcel->readInt32(); in readFromParcel() local 694 sampleCount == 0 || sampleCount > MAX_SAMPLES) { in readFromParcel() 734 mSampleEventTimes.reserve(sampleCount); in readFromParcel() 736 mSamplePointerCoords.reserve(sampleCount * pointerCount); in readFromParcel() 745 while (sampleCount > 0) { in readFromParcel() 746 sampleCount--; in readFromParcel() 761 size_t sampleCount = mSampleEventTimes.size(); in writeToParcel() local 764 parcel->writeInt32(sampleCount); in writeToParcel() 802 for (size_t h = 0; h < sampleCount; h++) { in writeToParcel()
|
/frameworks/rs/driver/ |
D | rsdGL.cpp | 249 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/extractors/mp4/ |
D | SampleTable.cpp | 103 uint32_t sampleCount = mDeltaEntries[2 * mCurrentDeltaEntry]; in getCompositionTimeOffset() local 104 if (sampleIndex < mCurrentEntrySampleIndex + sampleCount) { in getCompositionTimeOffset() 108 mCurrentEntrySampleIndex += sampleCount; in getCompositionTimeOffset()
|
D | MPEG4Extractor.cpp | 5659 uint32_t sampleCount = mCurrentSampleInfoCount; in parseClearEncryptedSizes() local 5664 if (!mDataSource->getUInt32(offset, &sampleCount)) { in parseClearEncryptedSizes() 5672 for (size_t i = 0; i < sampleCount; i++) { in parseClearEncryptedSizes() 5884 uint32_t sampleCount; in parseTrackFragmentRun() local 5885 if (!mDataSource->getUInt32(offset + 4, &sampleCount)) { in parseTrackFragmentRun() 5977 if (size < (off64_t)sampleCount * bytesPerSample) { in parseTrackFragmentRun() 5990 if (sampleCount > kMaxTrunSampleCount) { in parseTrackFragmentRun() 5992 sampleCount, kMaxTrunSampleCount); in parseTrackFragmentRun() 5999 for (uint32_t i = 0; i < sampleCount; ++i) { in parseTrackFragmentRun()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixer.cpp | 581 size_t sampleCount = mFrameCount * t->mMixerHapticChannelCount; in postProcess() local 587 os::scaleHapticData((float*) buffer, sampleCount, t->mHapticIntensity, in postProcess()
|
D | AudioMixerBase.cpp | 1540 void *in, audio_format_t mixerInFormat, size_t sampleCount) in convertMixerFormat() argument 1546 memcpy(out, in, sampleCount * sizeof(float)); // MEMCPY. TODO optimize out in convertMixerFormat() 1549 memcpy_to_i16_from_float((int16_t*)out, (float*)in, sampleCount); in convertMixerFormat() 1559 memcpy_to_float_from_q4_27((float*)out, (const int32_t*)in, sampleCount); in convertMixerFormat() 1562 memcpy_to_i16_from_q4_27((int16_t*)out, (const int32_t*)in, sampleCount); in convertMixerFormat()
|
/frameworks/av/media/libstagefright/ |
D | MPEG4Writer.cpp | 451 void addOneSttsTableEntry(size_t sampleCount, int32_t delta /* media time scale based */); 452 void addOneCttsTableEntry(size_t sampleCount, int32_t sampleOffset); 2320 void MPEG4Writer::Track::addOneSttsTableEntry(size_t sampleCount, int32_t delta) { in addOneSttsTableEntry() argument 2322 ALOGW("0-duration samples found: %zu", sampleCount); in addOneSttsTableEntry() 2324 mSttsTableEntries->add(htonl(sampleCount)); in addOneSttsTableEntry() 2328 void MPEG4Writer::Track::addOneCttsTableEntry(size_t sampleCount, int32_t sampleOffset) { in addOneCttsTableEntry() argument 2332 mCttsTableEntries->add(htonl(sampleCount)); in addOneCttsTableEntry() 3447 int32_t sampleCount = 1; // Sample count in the current stts table entry in threadEntry() local 3894 addOneSttsTableEntry(sampleCount, lastDurationTicks); in threadEntry() 3895 sampleCount = 1; in threadEntry() [all …]
|
/frameworks/av/media/libaudioprocessing/include/media/ |
D | AudioMixerBase.h | 344 void *in, audio_format_t mixerInFormat, size_t sampleCount);
|