/frameworks/native/libs/ui/ |
FrameStats.cpp | 41 size_t frameCount = desiredPresentTimesNano.size(); 46 memcpy(timestamps, desiredPresentTimesNano.array(), frameCount * timestampSize); 47 timestamps += frameCount; 49 memcpy(timestamps, actualPresentTimesNano.array(), frameCount * timestampSize); 50 timestamps += frameCount; 52 memcpy(timestamps, frameReadyTimesNano.array(), frameCount * timestampSize); 65 size_t frameCount = (size - timestampSize) / (3 * timestampSize); 70 desiredPresentTimesNano.resize(frameCount); 71 memcpy(desiredPresentTimesNano.editArray(), timestamps, frameCount * timestampSize); 72 timestamps += frameCount; [all...] |
/frameworks/av/media/libeffects/testlibs/ |
AudioBiquadFilter.h | 27 // The filter works on fixed sized blocks of data (frameCount multi-channel 72 // Process a buffer of data. Always processes frameCount multi-channel 75 // in The input buffer. Should be of size frameCount * nChannels. 76 // out The output buffer. Should be of size frameCount * nChannels. 77 // frameCount Number of multi-channel samples to process. 79 int frameCount); 98 int frameCount); 154 bool updateCoefs(const audio_coef_t coefs[NUM_COEFS], int frameCount); 158 int frameCount); 161 int frameCount); [all...] |
AudioBiquadFilter.cpp | 66 int frameCount) { 67 (this->*mCurProcessFunc)(in, out, frameCount); 121 int frameCount) { 122 int64_t maxDelta = mMaxDelta * frameCount; 141 int frameCount) { 144 memcpy(out, in, frameCount * mNumChannels * sizeof(audio_sample_t)); 150 int frameCount) { 151 size_t nFrames = frameCount; 184 int frameCount) { 185 if (updateCoefs(mTargetCoefs, frameCount)) { [all...] |
AudioPeakingFilter.h | 99 // frameCount * nChannels interlaced samples. Processing can be done 103 // frameCount Number of frames to produce. 105 int frameCount) { mBiquad.process(in, out, frameCount); }
|
AudioShelvingFilter.h | 93 // frameCount * nChannels interlaced samples. Processing can be done 97 // frameCount Number of frames to produce. 99 int frameCount) { mBiquad.process(in, out, frameCount); }
|
/frameworks/av/media/libnbaio/ |
SourceAudioBufferProvider.cpp | 50 ALOG_ASSERT(buffer != NULL && buffer->frameCount > 0 && mGetCount == 0); 54 if (mRemaining < buffer->frameCount) { 55 buffer->frameCount = mRemaining; 58 mGetCount = buffer->frameCount; 62 if (buffer->frameCount > mSize) { 67 mAllocated = calloc(buffer->frameCount, mFrameSize); 72 mSize = buffer->frameCount; 76 ssize_t actual = mSource->read(mAllocated, buffer->frameCount); 78 ALOG_ASSERT((size_t) actual <= buffer->frameCount); 82 buffer->frameCount = actual [all...] |
AudioBufferProviderSource.cpp | 46 return mBuffer.raw != NULL ? mBuffer.frameCount - mConsumed : 0; 55 mBuffer.frameCount = count; 63 size_t available = mBuffer.frameCount - mConsumed; 70 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) { 101 mBuffer.frameCount = count; 104 ALOG_ASSERT(mBuffer.raw != NULL && mBuffer.frameCount <= count); 115 size_t available = mBuffer.frameCount - mConsumed; 131 if (CC_LIKELY((mConsumed += ret) < mBuffer.frameCount)) {
|
/frameworks/av/include/media/ |
AudioBufferProvider.h | 32 Buffer() : raw(NULL), frameCount(0) { } 38 size_t frameCount; 46 // buffer->frameCount maximum number of desired frames 49 // buffer->raw non-NULL pointer to buffer->frameCount contiguous available frames 50 // buffer->frameCount number of contiguous available frames at buffer->raw, 51 // 0 < buffer->frameCount <= entry value 55 // buffer->frameCount 0 61 // buffer->frameCount number of frames to release, must be <= number of frames 65 // buffer->frameCount 0; implementation MUST set to zero
|
/external/replicaisland/src/com/replica/replicaisland/ |
SpriteAnimation.java | 32 public SpriteAnimation(int animationId, int frameCount) { 34 mFrames = new FixedSizeArray<AnimationFrame>(frameCount); 35 mFrameStartTimes = new float[frameCount]; 47 final int frameCount = frames.getCount(); 48 result = frames.get(frameCount - 1); 50 if (frameCount > 1) { 68 for (int x = 0; x < frameCount; x++) {
|
Utils.java | 87 public final static float framesToTime(int framesPerSecond, int frameCount) { 88 return (1.0f / framesPerSecond) * frameCount;
|
/external/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/ |
GifHeader.java | 15 int frameCount = 0; 48 return frameCount;
|
/frameworks/base/graphics/java/android/graphics/ |
Interpolator.java | 29 public Interpolator(int valueCount, int frameCount) { 31 mFrameCount = frameCount; 32 native_instance = nativeConstructor(valueCount, frameCount); 49 public void reset(int valueCount, int frameCount) { 51 mFrameCount = frameCount; 52 nativeReset(native_instance, valueCount, frameCount); 157 private static native long nativeConstructor(int valueCount, int frameCount); 159 private static native void nativeReset(long native_instance, int valueCount, int frameCount);
|
/external/skia/src/animator/ |
SkOperandInterpolator.h | 20 SkOperandInterpolator(int elemCount, int frameCount, SkDisplayTypes type); 23 void reset(int elemCount, int frameCount, SkDisplayTypes type);
|
SkOperandIterpolator.cpp | 16 SkOperandInterpolator::SkOperandInterpolator(int elemCount, int frameCount, 19 this->reset(elemCount, frameCount, type); 22 void SkOperandInterpolator::reset(int elemCount, int frameCount, SkDisplayTypes type) 26 INHERITED::reset(elemCount, frameCount); 28 fStorage = sk_malloc_throw((sizeof(SkOperand) * elemCount + sizeof(SkTimeCode)) * frameCount); 30 fValues = (SkOperand*) ((char*) fStorage + sizeof(SkTimeCode) * frameCount);
|
/frameworks/av/services/audioflinger/ |
BufferProviders.cpp | 61 mBuffer.frameCount = 0; 67 if (mBuffer.frameCount != 0) { 76 // this, pBuffer, pBuffer->frameCount); 80 copyFrames(pBuffer->raw, pBuffer->raw, pBuffer->frameCount); 84 if (mBuffer.frameCount == 0) { 85 mBuffer.frameCount = pBuffer->frameCount; 88 // res == OK and mBuffer.frameCount == 0, doesn't seem to happen now 7/18/2014. 90 // By API spec, if res != OK, then mBuffer.frameCount == 0. 92 ALOG_ASSERT(res == OK || mBuffer.frameCount == 0) [all...] |
FastCapture.cpp | 92 const size_t frameCount = current->mFrameCount; 128 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { 132 if (frameCount > 0 && mSampleRate > 0) { 136 size_t bufferSize = frameCount * Format_frameSize(mFormat); 139 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00 140 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75 141 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50 142 mForceNs = (frameCount * 950000000LL) / mSampleRate; // 0.95 143 mWarmupNsMin = (frameCount * 750000000LL) / mSampleRate; // 0.75 144 mWarmupNsMax = (frameCount * 1250000000LL) / mSampleRate; // 1.2 [all...] |
AudioResampler.cpp | 280 mBuffer.frameCount = 0; 311 mBuffer.frameCount = 0; 353 while (mBuffer.frameCount == 0) { 354 mBuffer.frameCount = inFrameCount; 360 // ALOGE("New buffer fetched: %d frames", mBuffer.frameCount); 361 if (mBuffer.frameCount > inputIndex) break; 363 inputIndex -= mBuffer.frameCount; 364 mX0L = mBuffer.i16[mBuffer.frameCount*2-2]; 365 mX0R = mBuffer.i16[mBuffer.frameCount*2-1]; 367 // mBuffer.frameCount == 0 now so we reload a new buffe [all...] |
AudioResamplerCubic.cpp | 67 if (mBuffer.frameCount == 0) { 68 mBuffer.frameCount = inFrameCount; 73 // ALOGW("New buffer: offset=%p, frames=%dn", mBuffer.raw, mBuffer.frameCount); 95 if (inputIndex == mBuffer.frameCount) { 98 mBuffer.frameCount = inFrameCount; 104 // ALOGW("New buffer: offset=%p, frames=%d", mBuffer.raw, mBuffer.frameCount); 134 if (mBuffer.frameCount == 0) { 135 mBuffer.frameCount = inFrameCount; 140 // ALOGW("New buffer: offset=%p, frames=%d", mBuffer.raw, mBuffer.frameCount); 163 if (inputIndex == mBuffer.frameCount) { [all...] |
FastMixer.cpp | 141 const size_t frameCount = current->mFrameCount; 174 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { 182 if (frameCount > 0 && mSampleRate > 0) { 190 mMixer = new AudioMixer(frameCount, mSampleRate, FastMixerState::sMaxFastTracks); 193 mMixerBufferSize = mixerFrameSize * frameCount; 198 mSinkBufferSize = sinkFrameSize * frameCount; 201 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00 202 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75 203 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50 204 mForceNs = (frameCount * 950000000LL) / mSampleRate; // 0.9 [all...] |
/frameworks/av/services/audioflinger/tests/ |
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/ |
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; } 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*/, 407 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 457 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, 459 : ClientProxy(cblk, buffers, frameCount, frameSize, 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...] |
/external/skia/include/utils/ |
SkInterpolator.h | 26 void reset(int elemCount, int frameCount); 90 SkInterpolator(int elemCount, int frameCount); 91 void reset(int elemCount, int frameCount);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/ |
JDWPStackTraceBaseTest.java | 99 int frameCount = jdwpGetFrameCount(threadID); 100 logWriter.println("=> frames count = " + frameCount); 103 FrameInfo[] frameIDs = jdwpGetFrames(threadID, 0, frameCount); 104 if (frameIDs.length != frameCount) { 107 + frameCount); 112 for (int i = 0; i < frameCount; i++) {
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
VisualSampleEntry.java | 68 private int frameCount = 1; 95 return frameCount; 126 public void setFrameCount(int frameCount) { 127 this.frameCount = frameCount; 150 frameCount = IsoTypeReader.readUInt16(content);
|
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/ |
fifo.h | 49 // frameCount Max number of significant frames to be stored in the FIFO > 0. 51 // frameCount, then the writes and reads will never do a partial transfer. 53 // buffer Pointer to a caller-allocated buffer of frameCount frames. 54 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize,
|