/frameworks/native/libs/ui/ |
D | FrameStats.cpp | 41 size_t frameCount = desiredPresentTimesNano.size(); in flatten() local 46 memcpy(timestamps, desiredPresentTimesNano.array(), frameCount * timestampSize); in flatten() 47 timestamps += frameCount; in flatten() 49 memcpy(timestamps, actualPresentTimesNano.array(), frameCount * timestampSize); in flatten() 50 timestamps += frameCount; in flatten() 52 memcpy(timestamps, frameReadyTimesNano.array(), frameCount * timestampSize); in flatten() 65 size_t frameCount = (size - timestampSize) / (3 * timestampSize); in unflatten() local 70 desiredPresentTimesNano.resize(frameCount); in unflatten() 71 memcpy(desiredPresentTimesNano.editArray(), timestamps, frameCount * timestampSize); in unflatten() 72 timestamps += frameCount; in unflatten() [all …]
|
/frameworks/av/services/audioflinger/ |
D | BufferProviders.cpp | 61 mBuffer.frameCount = 0; in CopyBufferProvider() 67 if (mBuffer.frameCount != 0) { in ~CopyBufferProvider() 80 copyFrames(pBuffer->raw, pBuffer->raw, pBuffer->frameCount); in getNextBuffer() 84 if (mBuffer.frameCount == 0) { in getNextBuffer() 85 mBuffer.frameCount = pBuffer->frameCount; in getNextBuffer() 92 ALOG_ASSERT(res == OK || mBuffer.frameCount == 0); in getNextBuffer() 93 if (res != OK || mBuffer.frameCount == 0) { // not needed by API spec, but to be safe. in getNextBuffer() 95 pBuffer->frameCount = 0; in getNextBuffer() 100 ALOG_ASSERT(mConsumed < mBuffer.frameCount); in getNextBuffer() 101 size_t count = min(mLocalBufferFrameCount, mBuffer.frameCount - mConsumed); in getNextBuffer() [all …]
|
D | FastCapture.cpp | 92 const size_t frameCount = current->mFrameCount; in onStateChange() local 128 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { in onStateChange() 132 if (frameCount > 0 && mSampleRate > 0) { in onStateChange() 136 size_t bufferSize = frameCount * Format_frameSize(mFormat); in onStateChange() 139 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00 in onStateChange() 140 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75 in onStateChange() 141 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50 in onStateChange() 142 mForceNs = (frameCount * 950000000LL) / mSampleRate; // 0.95 in onStateChange() 143 mWarmupNsMin = (frameCount * 750000000LL) / mSampleRate; // 0.75 in onStateChange() 144 mWarmupNsMax = (frameCount * 1250000000LL) / mSampleRate; // 1.25 in onStateChange() [all …]
|
D | AudioResampler.cpp | 280 mBuffer.frameCount = 0; in AudioResampler() 311 mBuffer.frameCount = 0; in reset() 353 while (mBuffer.frameCount == 0) { in resampleStereo16() 354 mBuffer.frameCount = inFrameCount; in resampleStereo16() 361 if (mBuffer.frameCount > inputIndex) break; in resampleStereo16() 363 inputIndex -= mBuffer.frameCount; in resampleStereo16() 364 mX0L = mBuffer.i16[mBuffer.frameCount*2-2]; in resampleStereo16() 365 mX0R = mBuffer.i16[mBuffer.frameCount*2-1]; in resampleStereo16() 387 if (inputIndex + 2 < mBuffer.frameCount) { in resampleStereo16() 392 maxInIdx = mBuffer.frameCount - 2; in resampleStereo16() [all …]
|
D | Tracks.cpp | 72 size_t frameCount, in TrackBase() argument 93 mFrameCount(frameCount), in TrackBase() 114 size_t bufferSize = (buffer == NULL ? roundup(frameCount) : frameCount) * mFrameSize; in TrackBase() 249 (void) mTeeSink->write(buffer->raw, buffer->frameCount); in releaseBuffer() 254 buf.mFrameCount = buffer->frameCount; in releaseBuffer() 256 buffer->frameCount = 0; in releaseBuffer() 341 size_t frameCount, in Track() argument 348 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, in Track() 383 mAudioTrackServerProxy = new AudioTrackServerProxy(mCblk, mBuffer, frameCount, in Track() 386 mAudioTrackServerProxy = new StaticAudioTrackServerProxy(mCblk, mBuffer, frameCount, in Track() [all …]
|
D | AudioMixer.cpp | 101 AudioMixer::AudioMixer(size_t frameCount, uint32_t sampleRate, uint32_t maxNumTracks) in AudioMixer() argument 115 mState.frameCount = frameCount; in AudioMixer() 703 target == RAMP_VOLUME ? mState.frameCount : 0, in setParameter() 714 target == RAMP_VOLUME ? mState.frameCount : 0, in setParameter() 1003 state->outputTemp = new int32_t[MAX_NUM_CHANNELS * state->frameCount]; in process__validate() 1006 state->resampleTemp = new int32_t[MAX_NUM_CHANNELS * state->frameCount]; in process__validate() 1114 void AudioMixer::volumeRampStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, in volumeRampStereo() argument 1142 } while (--frameCount); in volumeRampStereo() 1150 } while (--frameCount); in volumeRampStereo() 1157 void AudioMixer::volumeStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, in volumeStereo() argument [all …]
|
D | FastMixer.cpp | 141 const size_t frameCount = current->mFrameCount; in onStateChange() local 174 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { in onStateChange() 182 if (frameCount > 0 && mSampleRate > 0) { in onStateChange() 190 mMixer = new AudioMixer(frameCount, mSampleRate, FastMixerState::sMaxFastTracks); in onStateChange() 193 mMixerBufferSize = mixerFrameSize * frameCount; in onStateChange() 198 mSinkBufferSize = sinkFrameSize * frameCount; in onStateChange() 201 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00 in onStateChange() 202 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75 in onStateChange() 203 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50 in onStateChange() 204 mForceNs = (frameCount * 950000000LL) / mSampleRate; // 0.95 in onStateChange() [all …]
|
D | AudioResamplerCubic.cpp | 67 if (mBuffer.frameCount == 0) { in resampleStereo16() 68 mBuffer.frameCount = inFrameCount; in resampleStereo16() 95 if (inputIndex == mBuffer.frameCount) { in resampleStereo16() 98 mBuffer.frameCount = inFrameCount; in resampleStereo16() 134 if (mBuffer.frameCount == 0) { in resampleMono16() 135 mBuffer.frameCount = inFrameCount; in resampleMono16() 163 if (inputIndex == mBuffer.frameCount) { in resampleMono16() 166 mBuffer.frameCount = inFrameCount; in resampleMono16()
|
D | test-resample.cpp | 276 size_t requestedFrames = buffer->frameCount; in main() 278 buffer->frameCount = mNumFrames - mNextFrame; in main() 282 printf("mPvalue[%zu]=%zu not %zu\n", mNextPidx-1, provided, buffer->frameCount); in main() 283 if (provided < buffer->frameCount) { in main() 284 buffer->frameCount = provided; in main() 293 requestedFrames, (size_t) (mNumFrames - mNextFrame), buffer->frameCount); in main() 295 mUnrel = buffer->frameCount; in main() 296 if (buffer->frameCount > 0) { in main() 305 if (buffer->frameCount > mUnrel) { in main() 307 "to release\n", buffer->frameCount, mUnrel); in main() [all …]
|
D | AudioResamplerDyn.cpp | 523 ALOG_ASSERT(inputIndex <= mBuffer.frameCount, "inputIndex%d > frameCount%d", in resample() 524 inputIndex, mBuffer.frameCount); in resample() 527 while (mBuffer.frameCount == 0 && inFrameCount > 0) { in resample() 528 mBuffer.frameCount = inFrameCount; in resample() 533 inFrameCount -= mBuffer.frameCount; in resample() 541 if (inputIndex >= mBuffer.frameCount) { in resample() 555 const size_t frameCount = mBuffer.frameCount; in resample() local 582 if (inputIndex >= frameCount) { in resample() 594 ALOG_ASSERT(inputIndex == frameCount, "inputIndex(%d) != frameCount(%d)", in resample() 595 inputIndex, frameCount); // must have been fully read. in resample() [all …]
|
D | AudioMixer.h | 45 AudioMixer(size_t frameCount, uint32_t sampleRate, 193 uint16_t frameCount; member 287 size_t frameCount; member 326 static void volumeRampStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, 328 static void volumeStereo(track_t* t, int32_t* out, size_t frameCount, int32_t* temp, 361 static void track__Resample(track_t* t, TO* out, size_t frameCount, 364 static void track__NoResample(track_t* t, TO* out, size_t frameCount,
|
/frameworks/av/media/libnbaio/ |
D | SourceAudioBufferProvider.cpp | 50 ALOG_ASSERT(buffer != NULL && buffer->frameCount > 0 && mGetCount == 0); in getNextBuffer() 54 if (mRemaining < buffer->frameCount) { in getNextBuffer() 55 buffer->frameCount = mRemaining; in getNextBuffer() 58 mGetCount = buffer->frameCount; in getNextBuffer() 62 if (buffer->frameCount > mSize) { in getNextBuffer() 67 mAllocated = calloc(buffer->frameCount, mFrameSize); in getNextBuffer() 72 mSize = buffer->frameCount; in getNextBuffer() 76 ssize_t actual = mSource->read(mAllocated, buffer->frameCount); in getNextBuffer() 78 ALOG_ASSERT((size_t) actual <= buffer->frameCount); in getNextBuffer() 82 buffer->frameCount = actual; in getNextBuffer() [all …]
|
D | AudioBufferProviderSource.cpp | 46 return mBuffer.raw != NULL ? mBuffer.frameCount - mConsumed : 0; in availableToRead() 55 mBuffer.frameCount = count; in read() 63 size_t available = mBuffer.frameCount - mConsumed; in read() 70 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) { in read() 101 mBuffer.frameCount = count; in readVia() 104 ALOG_ASSERT(mBuffer.raw != NULL && mBuffer.frameCount <= count); in readVia() 115 size_t available = mBuffer.frameCount - mConsumed; in readVia() 131 if (CC_LIKELY((mConsumed += ret) < mBuffer.frameCount)) { in readVia()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioBiquadFilter.cpp | 66 int frameCount) { in process() argument 67 (this->*mCurProcessFunc)(in, out, frameCount); in process() 121 int frameCount) { in updateCoefs() argument 122 int64_t maxDelta = mMaxDelta * frameCount; in updateCoefs() 141 int frameCount) { in process_bypass() argument 144 memcpy(out, in, frameCount * mNumChannels * sizeof(audio_sample_t)); in process_bypass() 150 int frameCount) { in process_normal_mono() argument 151 size_t nFrames = frameCount; in process_normal_mono() 184 int frameCount) { in process_transition_normal_mono() argument 185 if (updateCoefs(mTargetCoefs, frameCount)) { in process_transition_normal_mono() [all …]
|
D | AudioBiquadFilter.h | 79 int frameCount); 98 int frameCount); 154 bool updateCoefs(const audio_coef_t coefs[NUM_COEFS], int frameCount); 158 int frameCount); 161 int frameCount); 164 audio_sample_t * out, int frameCount); 167 audio_sample_t * out, int frameCount); 170 int frameCount); 173 audio_sample_t * out, int frameCount); 176 audio_sample_t * out, int frameCount);
|
/frameworks/base/graphics/java/android/graphics/ |
D | Interpolator.java | 29 public Interpolator(int valueCount, int frameCount) { in Interpolator() argument 31 mFrameCount = frameCount; in Interpolator() 32 native_instance = nativeConstructor(valueCount, frameCount); in Interpolator() 49 public void reset(int valueCount, int frameCount) { in reset() argument 51 mFrameCount = frameCount; in reset() 52 nativeReset(native_instance, valueCount, frameCount); in reset() 157 private static native long nativeConstructor(int valueCount, int frameCount); in nativeConstructor() argument 159 private static native void nativeReset(long native_instance, int valueCount, int frameCount); in nativeReset() argument
|
/frameworks/av/services/audioflinger/tests/ |
D | test_utils.h | 117 size_t requestedFrames = buffer->frameCount; 119 buffer->frameCount = mNumFrames - mNextFrame; 124 mNextIdx-1, provided, buffer->frameCount); 125 if (provided < buffer->frameCount) { 126 buffer->frameCount = provided; 134 requestedFrames, mNumFrames - mNextFrame, buffer->frameCount); 135 mUnrel = buffer->frameCount; 136 if (buffer->frameCount > 0) { 147 if (buffer->frameCount > mUnrel) { 149 "to release", buffer->frameCount, mUnrel); [all …]
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 205 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut, 216 size_t frameCount() const { return mFrameCount; } in frameCount() function 238 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 356 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 358 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, in ClientProxy() argument 407 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 457 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in AudioRecordClientProxy() argument 459 : ClientProxy(cblk, buffers, frameCount, frameSize, in AudioRecordClientProxy() 479 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 544 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, [all …]
|
/frameworks/av/media/libmedia/ |
D | AudioRecord.cpp | 37 size_t* frameCount, in getMinFrameCount() argument 42 if (frameCount == NULL) { in getMinFrameCount() 56 if ((*frameCount = (size * 2) / (audio_channel_count_from_in_mask(channelMask) * in getMinFrameCount() 81 size_t frameCount, in AudioRecord() argument 100 mStatus = set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user, in AudioRecord() 138 size_t frameCount, in set() argument 153 inputSource, sampleRate, format, channelMask, frameCount, notificationFrames, in set() 225 mReqFrameCount = frameCount; in set() 594 size_t frameCount = mReqFrameCount; in openRecord_l() local 605 size_t temp = frameCount; // temp may be replaced by a revised value of frameCount, in openRecord_l() [all …]
|
D | AudioTrack.cpp | 117 size_t* frameCount, in getMinFrameCount() argument 121 if (frameCount == NULL) { in getMinFrameCount() 155 *frameCount = calculateMinFrameCount(afLatency, afFrameCount, afSampleRate, sampleRate, 1.0f in getMinFrameCount() 161 if (*frameCount == 0) { in getMinFrameCount() 167 *frameCount, afFrameCount, afSampleRate, afLatency); in getMinFrameCount() 192 size_t frameCount, in AudioTrack() argument 213 frameCount, flags, cbf, user, notificationFrames, in AudioTrack() 282 size_t frameCount, in set() argument 300 streamType, sampleRate, format, channelMask, frameCount, flags, notificationFrames, in set() 345 ALOGV("set() streamType %d frameCount %zu flags %04x", streamType, frameCount, flags); in set() [all …]
|
D | AudioTrackShared.cpp | 59 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, in Proxy() argument 61 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy() 62 mFrameCountP2(roundup(frameCount)), mIsOut(isOut), mClientInServer(clientInServer), in Proxy() 69 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in ClientProxy() argument 71 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer) in ClientProxy() 75 setBufferSizeInFrames(frameCount); in ClientProxy() 94 const uint32_t maximum = frameCount(); in setBufferSizeInFrames() 524 size_t frameCount, size_t frameSize) in StaticAudioTrackClientProxy() argument 525 : AudioTrackClientProxy(cblk, buffers, frameCount, frameSize), in StaticAudioTrackClientProxy() 615 ServerProxy::ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in ServerProxy() argument [all …]
|
/frameworks/av/media/libeffects/preprocessing/ |
D | PreProcessing.cpp | 108 size_t frameCount; // buffer size before input resampler ( <=> apmFrameCount) member 853 session->frameCount = session->apmFrameCount; in Session_CreateEffect() 973 session->frameCount = session->apmFrameCount; in Session_SetConfig() 975 session->frameCount = (session->apmFrameCount * session->samplingRate) / in Session_SetConfig() 1234 size_t framesRq = outBuffer->frameCount; in PreProcessingFx_Process() 1238 if (outBuffer->frameCount < fr) { in PreProcessingFx_Process() 1239 fr = outBuffer->frameCount; in PreProcessingFx_Process() 1250 outBuffer->frameCount = framesWr; in PreProcessingFx_Process() 1252 inBuffer->frameCount = 0; in PreProcessingFx_Process() 1257 size_t fr = session->frameCount - session->framesIn; in PreProcessingFx_Process() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Interpolator.cpp | 7 static jlong Interpolator_constructor(JNIEnv* env, jobject clazz, jint valueCount, jint frameCount) in Interpolator_constructor() argument 9 return reinterpret_cast<jlong>(new SkInterpolator(valueCount, frameCount)); in Interpolator_constructor() 18 …nterpolator_reset(JNIEnv* env, jobject clazz, jlong interpHandle, jint valueCount, jint frameCount) in Interpolator_reset() argument 21 interp->reset(valueCount, frameCount); in Interpolator_reset()
|
/frameworks/native/opengl/tests/angeles/ |
D | app-linux.cpp | 206 int frameCount = 0; in main() local 220 frameCount++; in main() 230 totalTime, frameCount, frameCount/totalTime); in main()
|
/frameworks/av/include/media/ |
D | AudioBufferProvider.h | 32 Buffer() : raw(NULL), frameCount(0) { } in Buffer() 38 size_t frameCount; member
|