Home
last modified time | relevance | path

Searched refs:mFrameCount (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp80 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy()
90 if (startThresholdInFrames == 0 || startThresholdInFrames > mFrameCount) { in getStartThresholdInFrames()
93 __func__, startThresholdInFrames, mFrameCount); in getStartThresholdInFrames()
94 return mFrameCount; in getStartThresholdInFrames()
153 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0, in obtainBuffer()
229 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
232 "shutting down", filled, mFrameCount); in obtainBuffer()
263 if (part1 > buffer->mFrameCount) { in obtainBuffer()
264 part1 = buffer->mFrameCount; in obtainBuffer()
266 buffer->mFrameCount = part1; in obtainBuffer()
[all …]
DAudioRecord.cpp94 mMetricsItem->setInt32(MM_PREFIX "frameCount", (int32_t)record->mFrameCount); in gather()
389 mLatency = (1000LL * mFrameCount) / mSampleRate; in set()
725 mFrameCount, mReqFrameCount); in dump()
940 mFrameCount = output.frameCount; in createRecord_l()
943 if (mFrameCount > mReqFrameCount) { in createRecord_l()
944 mReqFrameCount = mFrameCount; in createRecord_l()
948 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in createRecord_l()
971 .set(AMEDIAMETRICS_PROP_FRAMECOUNT, (int32_t)mFrameCount) in createRecord_l()
1050 buffer.mFrameCount = 0; in obtainBuffer()
1071 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer()
[all …]
DAudioTrack.cpp211 mMetricsItem->setInt32(MM_PREFIX "frameCount", (int32_t)track->mFrameCount); in gather()
1343 } else if (loopCount >= -1 && loopStart < loopEnd && loopEnd <= mFrameCount && in setLoop()
1443 if (position > mFrameCount) { in setPosition()
1628 mLatency = mAfLatency + (1000LL * mFrameCount) / mSampleRate; in updateLatency_l()
1742 mFrameCount = output.frameCount; in createTrack_l()
1757 mLatency = mAfLatency + (1000LL * mFrameCount) / mSampleRate; in createTrack_l()
1797 __func__, mPortId, mReqFrameCount, mFrameCount); in createTrack_l()
1803 __func__, mPortId, mReqFrameCount, mFrameCount); in createTrack_l()
1846 if (mFrameCount > mReqFrameCount) { in createTrack_l()
1847 mReqFrameCount = mFrameCount; in createTrack_l()
[all …]
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.cpp77 audio_buffer_t inBuffer = {.frameCount = mFrameCount, .s16 = input}; in process()
78 audio_buffer_t outBuffer = {.frameCount = mFrameCount, .s16 = output}; in process()
84 inBuffer.s16 += mFrameCount * mChannelCount; in process()
85 outBuffer.s16 += mFrameCount * mChannelCount; in process()
90 audio_buffer_t farInBuffer = {.frameCount = mFrameCount, .s16 = farInput}; in process_reverse()
91 audio_buffer_t outBuffer = {.frameCount = mFrameCount, .s16 = output}; in process_reverse()
96 farInBuffer.s16 += mFrameCount * mChannelCount; in process_reverse()
97 outBuffer.s16 += mFrameCount * mChannelCount; in process_reverse()
DEffectPreprocessingTest.cpp164 mFrameCount(mSampleRate * EffectTestHelper::kTenMilliSecVal), in SingleEffectTest()
166 mTotalFrameCount(mFrameCount * mLoopCount), in SingleEffectTest()
173 const size_t mFrameCount; member in SingleEffectTest
227 mFrameCount(mSampleRate * EffectTestHelper::kTenMilliSecVal), in SingleEffectComparisonTest()
229 mTotalFrameCount(mFrameCount * mLoopCount), in SingleEffectComparisonTest()
234 const size_t mFrameCount; member in SingleEffectComparisonTest
DEffectTestHelper.h60 mFrameCount(mSampleRate * kTenMilliSecVal), in EffectTestHelper()
107 const size_t mFrameCount; variable
/frameworks/av/media/libeffects/lvm/tests/
DEffectBundleTest.cpp46 mFrameCount(EffectTestHelper::kFrameCounts[std::get<2>(GetParam())]), in SingleEffectTest()
48 mTotalFrameCount(mFrameCount * mLoopCount), in SingleEffectTest()
54 const size_t mFrameCount; member in SingleEffectTest
64 << " frameCount: " << mFrameCount << " loopCount: " << mLoopCount); in TEST_P()
66 EffectTestHelper effect(mUuid, mChMask, mChMask, mSampleRate, mFrameCount, mLoopCount); in TEST_P()
97 mFrameCount(EffectTestHelper::kFrameCounts[std::get<1>(GetParam())]), in SingleEffectComparisonTest()
99 mTotalFrameCount(mFrameCount * mLoopCount), in SingleEffectComparisonTest()
103 const size_t mFrameCount; member in SingleEffectComparisonTest
112 << mFrameCount << " loopCount: " << mLoopCount); in TEST_P()
130 mSampleRate, mFrameCount, mLoopCount); in TEST_P()
[all …]
DEffectReverbTest.cpp54 mFrameCount(EffectTestHelper::kFrameCounts[std::get<2>(GetParam())]), in SingleEffectTest()
56 mTotalFrameCount(mFrameCount * mLoopCount), in SingleEffectTest()
66 const size_t mFrameCount; member in SingleEffectTest
80 << " frameCount: " << mFrameCount in TEST_P()
83 EffectTestHelper effect(mUuid, mInChMask, mOutChMask, mSampleRate, mFrameCount, mLoopCount); in TEST_P()
116 mFrameCount(EffectTestHelper::kFrameCounts[std::get<1>(GetParam())]), in SingleEffectComparisonTest()
118 mTotalFrameCount(mFrameCount * mLoopCount), in SingleEffectComparisonTest()
123 const size_t mFrameCount; member in SingleEffectComparisonTest
133 << " sampleRate: " << mSampleRate << " frameCount: " << mFrameCount in TEST_P()
153 AUDIO_CHANNEL_OUT_STEREO, mSampleRate, mFrameCount, mLoopCount); in TEST_P()
[all …]
DEffectTestHelper.cpp71 audio_buffer_t inBuffer = {.frameCount = mFrameCount, .f32 = input}; in process()
72 audio_buffer_t outBuffer = {.frameCount = mFrameCount, .f32 = output}; in process()
77 inBuffer.f32 += mFrameCount * mInChannelCount; in process()
78 outBuffer.f32 += mFrameCount * mOutChannelCount; in process()
DEffectTestHelper.h63 mFrameCount(frameCount), in EffectTestHelper()
119 const size_t mFrameCount; variable
/frameworks/base/graphics/java/android/graphics/
DInterpolator.java25 mFrameCount = 2; in Interpolator()
31 mFrameCount = frameCount; in Interpolator()
51 mFrameCount = frameCount; in reset()
56 return mFrameCount; in getKeyFrameCount()
88 if (index < 0 || index >= mFrameCount) { in setKeyFrame()
154 private int mFrameCount; field in Interpolator
/frameworks/av/services/audioflinger/
DFastCaptureDumpState.cpp28 mReadSequence(0), mFramesRead(0), mReadErrors(0), mSampleRate(0), mFrameCount(0) in FastCaptureDumpState()
44 double periodSec = (double) mFrameCount / mSampleRate; in dump()
50 mReadErrors, mSampleRate, mFrameCount, measuredWarmupMs, mWarmupCycles, in dump()
DTracks.cpp112 mFrameCount(frameCount), in TrackBase()
289 buf.mFrameCount = buffer->frameCount; in releaseBuffer()
867 const char modifiedBufferChar = bufferSizeInFrames < mFrameCount in appendDump()
868 ? 'r' /* buffer reduced */: bufferSizeInFrames > mFrameCount in appendDump()
930 buf.mFrameCount = desiredFrames; in getNextBuffer()
932 buffer->frameCount = buf.mFrameCount; in getNextBuffer()
934 if (buf.mFrameCount == 0 && !isStopping() && !isStopped() && !isPaused() && !isOffloaded()) { in getNextBuffer()
936 __func__, mId, buf.mFrameCount, desiredFrames, mState); in getNextBuffer()
1029 std::min(startThresholdInFrames, bufferSizeInFrames), size_t(1), mFrameCount); in isReady()
1138 buffer.mFrameCount = 1; in start()
[all …]
DFastCapture.cpp93 const size_t frameCount = current->mFrameCount; in onStateChange()
129 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { in onStateChange()
155 dumpState->mFrameCount = frameCount; in onStateChange()
165 size_t frameCount = current->mFrameCount; in onWork()
DFastMixerDumpState.cpp35 mSampleRate(0), mFrameCount(0), in FastMixerDumpState()
66 double mixPeriodSec = (double) mFrameCount / mSampleRate; in dump()
73 mSampleRate, mFrameCount, measuredWarmupMs, mWarmupCycles, in dump()
DFastCaptureDumpState.h37 size_t mFrameCount; member
DFastCaptureState.h38 size_t mFrameCount; // number of frames per fast capture buffer member
DFastCaptureState.cpp22 mInputSource(NULL), mInputSourceGen(0), mPipeSink(NULL), mPipeSinkGen(0), mFrameCount(0) in FastCaptureState()
/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DBokehPreviewExtenderImpl.java95 private int mFrameCount = 0;
100 mFrameCount++;
101 if (mFrameCount % 90 == 0) {
114 mFrameCount = 0;
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java75 mFrameCount = 0; in TouchLatencyView()
146 mFrameCount++; in drawBall()
156 mFrameCount = 0; in drawBall()
158 mFps = 1f * mFrameCount * SEC_TO_NANOS / fDiff; in drawBall()
160 mFrameCount = 0; in drawBall()
223 private long mLastDrawNano, mLastFpsUpdate, mFrameCount; field in TouchLatencyView
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequence.java33 private final int mFrameCount; field in FrameSequence
39 public int getFrameCount() { return mFrameCount; } in getFrameCount()
58 mFrameCount = frameCount; in FrameSequence()
/frameworks/av/media/libaudioclient/include/media/
DAudioIoDescriptor.h41 mFrameCount(0), mFrameCountHAL(0), mLatency(0), mPortId(AUDIO_PORT_HANDLE_NONE) in AudioIoDescriptor()
67 size_t mFrameCount; variable
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
DBackDropperFilter.java493 private int mFrameCount; field in BackDropperFilter
693 mFrameCount = 0; in allocateFrames()
710 mFrameCount = 0; in process()
755 if (mFrameCount <= mLearningDuration) { in process()
759 if (mFrameCount == mLearningDuration - mLearningVerifyDuration) { in process()
768 } else if (mFrameCount > mLearningDuration - mLearningVerifyDuration) { in process()
778 if (mFrameCount == mLearningDuration) { in process()
810 if (mFrameCount < mLearningDuration - mLearningVerifyDuration || in process()
840 mFrameCount++; in process()
843 if (mFrameCount % 30 == 0) { in process()
/frameworks/av/media/libaudioprocessing/
DAudioMixer.cpp134 track->prepareForAdjustChannelsNonDestructive(mFrameCount); in setChannelMasks()
380 track->prepareForAdjustChannelsNonDestructive(mFrameCount); in setParameter()
408 track->prepareForAdjustChannelsNonDestructive(mFrameCount); in setParameter()
427 track->prepareForAdjustChannelsNonDestructive(mFrameCount); in setParameter()
572 t->prepareForAdjustChannelsNonDestructive(mFrameCount); in postCreateTrack()
599 size_t sampleCount = mFrameCount * t->mMixerHapticChannelCount; in postProcess()
600 uint8_t* buffer = (uint8_t*)pair.first + mFrameCount * audio_bytes_per_frame( in postProcess()
DAudioMixerBase.cpp438 target == RAMP_VOLUME ? mFrameCount : 0, in setParameter()
449 target == RAMP_VOLUME ? mFrameCount : 0, in setParameter()
693 mOutputTemp.reset(new int32_t[MAX_NUM_CHANNELS * mFrameCount]); in process__validate()
696 mResampleTemp.reset(new int32_t[MAX_NUM_CHANNELS * mFrameCount]); in process__validate()
1058 mFrameCount * audio_bytes_per_frame(t->getMixerChannelCount(), t->mMixerFormat)); in process__nop()
1063 size_t outFrames = mFrameCount; in process__nop()
1089 t->buffer.frameCount = mFrameCount; in process__genericNoResampling()
1098 const size_t frameCount = std::min((size_t)BLOCKSIZE, mFrameCount - numFrames); in process__genericNoResampling()
1125 t->buffer.frameCount = (mFrameCount - numFrames) - in process__genericNoResampling()
1145 } while (numFrames < mFrameCount); in process__genericNoResampling()
[all …]

12