Home
last modified time | relevance | path

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

/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp102 AudioCodec *codec, int sampleRate, int sampleCount,
168 AudioCodec *codec, int sampleRate, int sampleCount, in set() argument
181 mSampleCount = sampleCount; in set()
478 bool set(int sampleRate, int sampleCount);
577 bool AudioGroup::set(int sampleRate, int sampleCount) in set() argument
586 mSampleCount = sampleCount; in set()
599 sampleRate, sampleCount, -1, -1)) { in set()
608 tv.tv_usec = 1000 * sampleCount / sampleRate * 500; in set()
789 size_t sampleCount = mGroup->mSampleCount; in threadLoop() local
804 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/base/services/core/java/com/android/server/
DAnyMotionDetector.java396 int sampleCount; field in AnyMotionDetector.RunningSignalStats
407 sampleCount = 0; in reset()
418 sampleCount++; in accumulate()
434 if (sampleCount > 0) { in getRunningAverage()
435 return runningSum.times((float)(1.0f / sampleCount)); in getRunningAverage()
445 return sampleCount; in getSampleCount()
457 msg += ", sampleCount = " + sampleCount; in toString()
/frameworks/native/libs/input/
DInput.cpp426 size_t sampleCount = parcel->readInt32(); in readFromParcel() local
428 sampleCount == 0 || sampleCount > MAX_SAMPLES) { in readFromParcel()
449 mSampleEventTimes.setCapacity(sampleCount); in readFromParcel()
451 mSamplePointerCoords.setCapacity(sampleCount * pointerCount); in readFromParcel()
460 while (sampleCount > 0) { in readFromParcel()
461 sampleCount--; in readFromParcel()
476 size_t sampleCount = mSampleEventTimes.size(); in writeToParcel() local
479 parcel->writeInt32(sampleCount); in writeToParcel()
502 for (size_t h = 0; h < sampleCount; h++) { in writeToParcel()
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp349 void addOneSttsTableEntry(size_t sampleCount, int32_t timescaledDur);
350 void addOneCttsTableEntry(size_t sampleCount, int32_t timescaledDur);
1536 size_t sampleCount, int32_t duration) { in addOneSttsTableEntry() argument
1539 ALOGW("0-duration samples found: %zu", sampleCount); in addOneSttsTableEntry()
1541 mSttsTableEntries->add(htonl(sampleCount)); in addOneSttsTableEntry()
1546 size_t sampleCount, int32_t duration) { in addOneCttsTableEntry() argument
1551 mCttsTableEntries->add(htonl(sampleCount)); in addOneCttsTableEntry()
2295 int32_t sampleCount = 1; // Sample count in the current stts table entry in threadEntry() local
2566 addOneSttsTableEntry(sampleCount, lastDurationTicks); in threadEntry()
2567 sampleCount = 1; in threadEntry()
[all …]
DSampleTable.cpp99 uint32_t sampleCount = mDeltaEntries[2 * mCurrentDeltaEntry]; in getCompositionTimeOffset() local
100 if (sampleIndex < mCurrentEntrySampleIndex + sampleCount) { in getCompositionTimeOffset()
104 mCurrentEntrySampleIndex += sampleCount; in getCompositionTimeOffset()
DMPEG4Extractor.cpp4029 uint32_t sampleCount; in parseTrackFragmentRun() local
4030 if (!mDataSource->getUInt32(offset + 4, &sampleCount)) { in parseTrackFragmentRun()
4105 if (size < (off64_t)(sampleCount * bytesPerSample)) { in parseTrackFragmentRun()
4110 for (uint32_t i = 0; i < sampleCount; ++i) { in parseTrackFragmentRun()
/frameworks/rs/driver/
DrsdGL.cpp259 for (uint32_t sampleCount = prefSample; sampleCount >= minSample; sampleCount--) { in rsdGLInit() local
260 getConfigData(rsc, configAttribs, (sizeof(configAttribs) / sizeof(EGLint)), sampleCount); in rsdGLInit()
/frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/
DHistogramPredictor.java284 int sampleCount = (mClassCounts.containsKey(sampleId)) ? in addSample() local
286 mClassCounts.put(sampleId, sampleCount); in addSample()
/frameworks/av/services/audioflinger/
DAudioMixer.h368 void *in, audio_format_t mixerInFormat, size_t sampleCount);
DAudioMixer.cpp1922 void *in, audio_format_t mixerInFormat, size_t sampleCount) in convertMixerFormat() argument
1928 memcpy(out, in, sampleCount * sizeof(float)); // MEMCPY. TODO optimize out in convertMixerFormat()
1931 memcpy_to_i16_from_float((int16_t*)out, (float*)in, sampleCount); in convertMixerFormat()
1941 memcpy_to_float_from_q4_27((float*)out, (int32_t*)in, sampleCount); in convertMixerFormat()
1945 ditherAndClamp((int32_t*)out, (int32_t*)in, sampleCount >> 1); in convertMixerFormat()