Searched defs:numFrames (Results 1 - 25 of 37) sorted by relevance

12

/frameworks/av/media/libaaudio/src/fifo/
H A DFifoControllerBase.cpp44 void FifoControllerBase::advanceReadIndex(fifo_frames_t numFrames) { argument
45 setReadCounter(getReadCounter() + numFrames);
57 void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { argument
58 setWriteCounter(getWriteCounter() + numFrames);
H A DFifoBuffer.h35 int32_t numFrames[SIZE]; member in struct:android::WrappingBuffer
81 * @param numFrames
84 fifo_frames_t readNow(void *buffer, fifo_frames_t numFrames);
H A DFifoBuffer.cpp86 wrappingBuffer->numFrames[1] = 0;
93 wrappingBuffer->numFrames[0] = mFrameCapacity - startIndex;
95 wrappingBuffer->numFrames[1] = mFrameCapacity - startIndex;
99 wrappingBuffer->numFrames[0] = framesAvailable;
103 wrappingBuffer->numFrames[0] = 0;
120 fifo_frames_t FifoBuffer::read(void *buffer, fifo_frames_t numFrames) { argument
123 fifo_frames_t framesLeft = numFrames;
131 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex];
146 fifo_frames_t framesRead = numFrames - framesLeft;
151 fifo_frames_t FifoBuffer::write(const void *buffer, fifo_frames_t numFrames) { argument
182 readNow(void *buffer, fifo_frames_t numFrames) argument
[all...]
/frameworks/av/media/libaaudio/examples/utils/
H A DSineGenerator.h37 double numFrames = seconds * mFrameRate; local
38 mUpScaler = pow((frequencyHigh / frequencyLow), (1.0 / numFrames));
44 void render(int16_t *buffer, int32_t channelStride, int32_t numFrames) { argument
46 for (int i = 0; i < numFrames; i++) {
52 void render(float *buffer, int32_t channelStride, int32_t numFrames) { argument
54 for (int i = 0; i < numFrames; i++) {
H A DAAudioSimplePlayer.h144 const int numFrames = 32; local
145 float zeros[numFrames * samplesPerFrame];
147 aaudio_result_t result = numFrames;
148 while (result == numFrames) {
149 result = AAudioStream_write(mStream, zeros, numFrames, 0);
199 int32_t numFrames
221 sineData->sineOsc1.render(&audioBuffer[0], samplesPerFrame, numFrames);
224 sineData->sineOsc2.render(&audioBuffer[1], samplesPerFrame, numFrames);
231 sineData->sineOsc1.render(&audioBuffer[0], samplesPerFrame, numFrames);
234 sineData->sineOsc2.render(&audioBuffer[1], samplesPerFrame, numFrames);
[all...]
H A DAAudioSimpleRecorder.h144 const int numFrames = 32; // arbitrary local
145 float zeros[numFrames * samplesPerFrame];
147 aaudio_result_t result = numFrames;
148 while (result == numFrames) {
149 result = AAudioStream_write(mStream, zeros, numFrames, 0);
207 int32_t numFrames
216 // printf("MyCallbackProc(): frameCount = %d\n", numFrames);
224 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) {
236 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) {
/frameworks/av/services/oboeservice/
H A DAAudioMixer.cpp56 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex];
76 void AAudioMixer::mixPart(float *destination, float *source, int32_t numFrames, float volume) { argument
77 int32_t numSamples = numFrames * mSamplesPerFrame;
/frameworks/base/media/mca/filterfw/native/core/
H A Dtime_util.h39 void SetLoggingPeriodInFrames(uint64_t numFrames) { argument
40 mLoggingPeriodInFrames = numFrames;
/frameworks/base/media/mca/filterpacks/native/base/
H A Dtime_util.h39 void SetLoggingPeriodInFrames(uint64_t numFrames) { argument
40 mLoggingPeriodInFrames = numFrames;
/frameworks/native/include/gui/
H A DOccupancyTracker.h44 numFrames(0),
51 numFrames(_numFrames),
60 size_t numFrames; member in struct:android::OccupancyTracker::Segment
83 numFrames = 0;
88 size_t numFrames; member in struct:android::OccupancyTracker::PendingSegment
/frameworks/av/media/libaaudio/src/client/
H A DAudioEndpoint.cpp176 aaudio_result_t AudioEndpoint::writeDataNow(const void *buffer, int32_t numFrames) argument
178 return mDataQueue->write(buffer, numFrames);
H A DAudioStreamInternalCapture.cpp40 aaudio_result_t AudioStreamInternalCapture::read(void *buffer, int32_t numFrames, argument
43 return processData(buffer, numFrames, timeoutNanoseconds);
47 aaudio_result_t AudioStreamInternalCapture::processDataNow(void *buffer, int32_t numFrames, argument
68 //ALOGD("AudioStreamInternalCapture::processDataNow() - readNowWithConversion(%d)", numFrames);
69 int32_t framesProcessed = readNowWithConversion(buffer, numFrames);
71 // numFrames, framesProcessed);
109 int32_t numFrames) {
111 // buffer, numFrames);
114 int32_t framesLeft = numFrames;
121 int32_t framesAvailable = wrappingBuffer.numFrames[partInde
108 readNowWithConversion(void *buffer, int32_t numFrames) argument
[all...]
H A DAudioStreamInternalPlay.cpp38 aaudio_result_t AudioStreamInternalPlay::write(const void *buffer, int32_t numFrames, argument
42 return processData((void *)buffer, numFrames, timeoutNanoseconds);
46 aaudio_result_t AudioStreamInternalPlay::processDataNow(void *buffer, int32_t numFrames, argument
67 //ALOGD("AudioStreamInternal::processDataNow() - writeNowWithConversion(%d)", numFrames);
68 int32_t framesWritten = writeNowWithConversion(buffer, numFrames);
70 // numFrames, framesWritten);
113 int32_t numFrames) {
115 // buffer, numFrames);
118 int32_t framesLeft = numFrames;
126 int32_t framesAvailable = wrappingBuffer.numFrames[partInde
112 writeNowWithConversion(const void *buffer, int32_t numFrames) argument
[all...]
/frameworks/av/media/libstagefright/
H A DVBRISeeker.cpp70 size_t numFrames = U32_AT(&vbriHeader[14]); local
73 numFrames * 1000000ll * (sampleRate >= 32000 ? 1152 : 576) / sampleRate;
H A DAACExtractor.cpp170 off64_t streamSize, numFrames = 0; local
185 numFrames ++;
190 duration = numFrames * mFrameDurationUs;
H A DAMRExtractor.cpp141 size_t frameSize, numFrames = 0; local
153 if ((numFrames % 50 == 0) && (numFrames / 50 < OFFSET_TABLE_LEN)) {
154 CHECK_EQ(mOffsetTableLength, numFrames / 50);
161 numFrames ++;
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureGL_test.cpp197 enum { numFrames = 1024 }; enumerator in enum:android::__anon1688
231 for (int i = 0; i < numFrames; i++) {
310 for (int i = 0; i < numFrames; i++) {
455 for (int numFrames =0 ; numFrames < 2; numFrames ++) {
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamRecord.cpp277 int32_t numFrames,
282 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes);
276 read(void *buffer, int32_t numFrames, int64_t timeoutNanoseconds) argument
H A DAudioStreamTrack.cpp345 int32_t numFrames,
350 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes);
344 write(const void *buffer, int32_t numFrames, int64_t timeoutNanoseconds) argument
/frameworks/av/media/libaaudio/src/utility/
H A DAAudioUtilities.cpp116 int32_t numFrames,
121 // divide by numFrames so that we almost reach amplitude2
122 float delta = (amplitude2 - amplitude1) / numFrames;
123 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) {
147 int32_t numFrames,
152 float delta = (amplitude2 - amplitude1) / (SHORT_SCALE * (float) numFrames);
153 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) {
164 int32_t numFrames,
169 float delta = (amplitude2 - amplitude1) / numFrames;
170 for (int frameIndex = 0; frameIndex < numFrames; frameInde
114 AAudioConvert_floatToPcm16(const float *source, int16_t *destination, int32_t numFrames, int32_t samplesPerFrame, float amplitude1, float amplitude2) argument
145 AAudioConvert_pcm16ToFloat(const int16_t *source, float *destination, int32_t numFrames, int32_t samplesPerFrame, float amplitude1, float amplitude2) argument
162 AAudio_linearRamp(const float *source, float *destination, int32_t numFrames, int32_t samplesPerFrame, float amplitude1, float amplitude2) argument
185 AAudio_linearRamp(const int16_t *source, int16_t *destination, int32_t numFrames, int32_t samplesPerFrame, float amplitude1, float amplitude2) argument
310 AAudioConvert_framesToBytes(int32_t numFrames, int32_t bytesPerFrame, int32_t *sizeInBytes) argument
[all...]
/frameworks/av/media/libstagefright/codecs/opus/dec/
H A DSoftOpus.cpp467 int numFrames = opus_multistream_decode(mDecoder, local
473 if (numFrames < 0) {
474 ALOGE("opus_multistream_decode returned %d", numFrames);
481 if (mSamplesToDiscard > numFrames) {
482 mSamplesToDiscard -= numFrames;
483 numFrames = 0;
485 numFrames -= mSamplesToDiscard;
492 outHeader->nFilledLen = numFrames * sizeof(int16_t) * mHeader->channels;
499 mNumFramesOutput += numFrames;
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp393 int numFrames = 0; local
410 numFrames = vorbis_dsp_pcmout(
414 if (numFrames < 0) {
415 ALOGE("vorbis_dsp_pcmout returned %d", numFrames);
416 numFrames = 0;
421 if (numFrames > mNumFramesLeftOnPage) {
423 numFrames - mNumFramesLeftOnPage);
424 numFrames = mNumFramesLeftOnPage;
430 mNumFramesLeftOnPage -= numFrames;
433 outHeader->nFilledLen = numFrames * sizeo
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcColorEquiv.cpp309 const unsigned int numFrames = 2; local
345 size_t size = sizeof(hwc_display_contents_1_t) + numFrames * sizeof(hwc_layer_1_t);
351 list->numHwLayers = numFrames;
/frameworks/native/services/surfaceflinger/
H A DFrameTracker.cpp183 int* numFrames = const_cast<int*>(mNumFrames); local
202 numFrames[i]++;
208 numFrames[NUM_FRAME_BUCKETS-1]++;
/frameworks/wilhelm/src/android/util/
H A DAacAdtsExtractor.cpp133 off64_t offset = 0, numFrames = 0; local
150 numFrames ++;
154 int64_t duration = numFrames * mFrameDurationUs;

Completed in 344 milliseconds

12