/third_party/skia/third_party/externals/oboe/src/opensles/ |
D | AudioStreamBuffered.cpp | 76 DataCallbackResult AudioStreamBuffered::onDefaultCallback(void *audioData, int numFrames) { in onDefaultCallback() argument 81 framesTransferred = mFifoBuffer->readNow(audioData, numFrames); in onDefaultCallback() 84 framesTransferred = mFifoBuffer->write(audioData, numFrames); // There is no writeNow() in onDefaultCallback() 87 if (framesTransferred < numFrames) { in onDefaultCallback() 89 __func__, framesTransferred, numFrames); in onDefaultCallback() 93 markCallbackTime(static_cast<int32_t>(numFrames)); // so foreground knows how long to wait. in onDefaultCallback() 97 void AudioStreamBuffered::markCallbackTime(int32_t numFrames) { in markCallbackTime() argument 98 mLastBackgroundSize = numFrames; in markCallbackTime() 114 int32_t numFrames, in transfer() argument 121 if (numFrames < 0) { in transfer() [all …]
|
D | AudioStreamBuffered.h | 41 int32_t numFrames, 45 int32_t numFrames, 60 DataCallbackResult onDefaultCallback(void *audioData, int numFrames) override; 74 void markCallbackTime(int32_t numFrames); 77 ResultWithValue<int32_t> transfer(void *buffer, int32_t numFrames, int64_t timeoutNanoseconds);
|
/third_party/skia/third_party/externals/oboe/src/flowgraph/ |
D | FlowGraphNode.cpp | 25 int32_t FlowGraphNode::pullData(int32_t numFrames, int64_t callCount) { in pullData() argument 26 int32_t frameCount = numFrames; in pullData() 76 int32_t FlowGraphPortFloatOutput::pullData(int64_t callCount, int32_t numFrames) { in pullData() argument 77 numFrames = std::min(getFramesPerBuffer(), numFrames); in pullData() 78 return mContainingNode.pullData(numFrames, callCount); in pullData() 95 int32_t FlowGraphPortFloatInput::pullData(int64_t callCount, int32_t numFrames) { in pullData() argument 97 ? std::min(getFramesPerBuffer(), numFrames) in pullData() 98 : mConnected->pullData(callCount, numFrames); in pullData() 112 int32_t FlowGraphSink::pullData(int32_t numFrames) { in pullData() argument 113 return FlowGraphNode::pullData(numFrames, getLastCallCount() + 1); in pullData()
|
D | FlowGraphNode.h | 83 virtual int32_t onProcess(int32_t numFrames) = 0; 96 int32_t pullData(int32_t numFrames, int64_t callCount); 176 virtual int32_t pullData(int64_t framePosition, int32_t numFrames) = 0; 259 int32_t pullData(int64_t framePosition, int32_t numFrames) override; 328 int32_t pullData(int64_t framePosition, int32_t numFrames) override; 374 void setData(const void *data, int32_t numFrames) { in setData() argument 376 mSizeInFrames = numFrames; in setData() 409 int32_t onProcess(int32_t numFrames) override { in onProcess() argument 410 return numFrames; in onProcess() 413 virtual int32_t read(void *data, int32_t numFrames) = 0; [all …]
|
/third_party/skia/tools/viewer/ |
D | MSKPSlide.cpp | 63 fFrame = (fFrame + fPlayer->numFrames() - 1)%fPlayer->numFrames(); in draw() 66 if (ImGui::SliderInt("##msk_frameslider", &fFrame, 0, fPlayer->numFrames()-1, "% 3d")) { in draw() 67 fFrame = SkTPin(fFrame, 0, fPlayer->numFrames() - 1); in draw() 71 fFrame = (fFrame + 1)%fPlayer->numFrames(); in draw() 152 fFrame = (fFrame + 1)%fPlayer->numFrames(); in animate() 154 return this->fPlayer->numFrames() > 1; in animate() 158 fFrame = (fFrame + 1)%fPlayer->numFrames(); in animate() 159 return this->fPlayer->numFrames() > 1; in animate() 165 if (fFrame >= fPlayer->numFrames()) { in animate() 168 fFrame %= fPlayer->numFrames(); in animate() [all …]
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/ |
D | MultiChannelRecording.h | 76 int32_t write(int16_t *buffer, int32_t numFrames) { in write() argument 77 int32_t framesLeft = numFrames; in write() 93 return numFrames - framesLeft; in write() 103 int32_t write(float *buffer, int32_t numFrames) { in write() argument 104 int32_t framesLeft = numFrames; in write() 120 return numFrames; in write() 130 int32_t read(float *buffer, int32_t numFrames) { in read() argument 132 int32_t framesLeft = std::min(numFrames, in read()
|
D | InputStreamCallbackAnalyzer.cpp | 23 int numFrames) { in onAudioReady() argument 31 mRecording->write(shortData, numFrames); in onAudioReady() 34 for (int iFrame = 0; iFrame < numFrames; iFrame++) { in onAudioReady() 44 mRecording->write(floatData, numFrames); in onAudioReady() 47 for (int iFrame = 0; iFrame < numFrames; iFrame++) { in onAudioReady()
|
D | FullDuplexStream.cpp | 23 int numFrames) { in onAudioReady() argument 28 int32_t numBytes = numFrames * outputStream->getBytesPerFrame(); in onAudioReady() 36 numFrames, in onAudioReady() 65 …hValue<int32_t> resultRead = getInputStream()->read(mInputBuffer.get(), numFrames, 0 /* timeout */… in onAudioReady() 82 …Value<int32_t> resultRead = getInputStream()->read(mInputBuffer.get(), numFrames, 0 /* timeout */… in onAudioReady() 95 audioData, numFrames); in onAudioReady()
|
D | OboeStreamCallbackProxy.cpp | 57 int numFrames) { in onAudioReady() argument 62 mFramesPerCallback = numFrames; in onAudioReady() 68 s_burnCPU((int32_t)(mWorkload * kWorkloadScaler * numFrames)); in onAudioReady() 71 callbackResult = mCallback->onAudioReady(audioStream, audioData, numFrames); in onAudioReady() 76 double inverseRealTime = audioStream->getSampleRate() / (1.0e9 * numFrames); in onAudioReady()
|
D | SawPingGenerator.cpp | 33 int32_t SawPingGenerator::onProcess(int numFrames) { in onProcess() argument 47 for (int i = 0; i < numFrames; i++) { in onProcess() 53 for (int i = 0; i < numFrames; i++) { in onProcess() 58 return numFrames; in onProcess()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/ |
D | Player.cpp | 20 void Player::renderAudio(float *targetData, int32_t numFrames){ in renderAudio() argument 26 int64_t framesToRenderFromData = numFrames; in renderAudio() 31 if (!mIsLooping && mReadFrameIndex + numFrames >= totalSourceFrames){ in renderAudio() 45 if (framesToRenderFromData < numFrames){ in renderAudio() 47 renderSilence(&targetData[framesToRenderFromData], numFrames * properties.channelCount); in renderAudio() 51 renderSilence(targetData, numFrames * properties.channelCount); in renderAudio()
|
/third_party/skia/third_party/externals/oboe/src/fifo/ |
D | FifoBuffer.cpp | 69 int32_t FifoBuffer::read(void *buffer, int32_t numFrames) { in read() argument 70 if (numFrames <= 0) { in read() 74 uint32_t framesToRead = static_cast<uint32_t>(numFrames); in read() 111 int32_t FifoBuffer::write(const void *buffer, int32_t numFrames) { in write() argument 112 if (numFrames <= 0) { in write() 116 uint32_t framesToWrite = static_cast<uint32_t>(numFrames); in write() 154 int32_t FifoBuffer::readNow(void *buffer, int32_t numFrames) { in readNow() argument 155 int32_t framesRead = read(buffer, numFrames); in readNow() 159 int32_t framesLeft = numFrames - framesRead; in readNow()
|
D | FifoControllerBase.cpp | 51 void FifoControllerBase::advanceReadIndex(uint32_t numFrames) { in advanceReadIndex() argument 52 incrementReadCounter(numFrames); in advanceReadIndex() 64 void FifoControllerBase::advanceWriteIndex(uint32_t numFrames) { in advanceWriteIndex() argument 65 incrementWriteCounter(numFrames); in advanceWriteIndex()
|
/third_party/skia/third_party/externals/oboe/src/common/ |
D | DataConversionFlowGraph.cpp | 40 void DataConversionFlowGraph::setSource(const void *buffer, int32_t numFrames) { in setSource() argument 41 mSource->setData(buffer, numFrames); in setSource() 213 int32_t DataConversionFlowGraph::read(void *buffer, int32_t numFrames, int64_t timeoutNanos) { in read() argument 217 int32_t numRead = mSink->read(buffer, numFrames); in read() 222 int32_t DataConversionFlowGraph::write(void *inputBuffer, int32_t numFrames) { in write() argument 224 mSource->setData(inputBuffer, numFrames); in write() 234 return numFrames; in write() 238 int32_t numFrames = numBytes / mFilterStream->getBytesPerFrame(); in onProcessFixedBlock() local 239 mCallbackResult = mFilterStream->getCallback()->onAudioReady(mFilterStream, buffer, numFrames); in onProcessFixedBlock()
|
D | AudioStream.cpp | 55 DataCallbackResult AudioStream::fireDataCallback(void *audioData, int32_t numFrames) { in fireDataCallback() argument 63 result = onDefaultCallback(audioData, numFrames); in fireDataCallback() 65 result = mStreamCallback->onAudioReady(this, audioData, numFrames); in fireDataCallback() 164 ResultWithValue<int32_t> AudioStream::waitForAvailableFrames(int32_t numFrames, in waitForAvailableFrames() argument 166 if (numFrames == 0) return Result::OK; in waitForAvailableFrames() 167 if (numFrames < 0) return Result::ErrorOutOfRange; in waitForAvailableFrames() 177 ready = (framesAvailable >= numFrames); in waitForAvailableFrames()
|
D | FilterAudioStream.h | 105 int32_t numFrames, 109 int32_t numFrames, 178 int32_t numFrames) override { in onAudioReady() argument 181 framesProcessed = mFlowGraph->read(audioData, numFrames, 0 /* timeout */); in onAudioReady() 183 framesProcessed = mFlowGraph->write(audioData, numFrames); in onAudioReady() 185 return (framesProcessed < numFrames) in onAudioReady()
|
D | FilterAudioStream.cpp | 59 int32_t numFrames, in write() argument 62 mFlowGraph->setSource(buffer, numFrames); in write() 87 int32_t numFrames, in read() argument 89 int32_t framesRead = mFlowGraph->read(buffer, numFrames, timeoutNanoseconds); in read()
|
D | StabilizedCallback.cpp | 39 StabilizedCallback::onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) { in onAudioReady() argument 63 int64_t numFramesAsNanos = (numFrames * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady() 68 DataCallbackResult result = mCallback->onAudioReady(oboeStream, audioData, numFrames); in onAudioReady() 80 mFrameCount += numFrames; in onAudioReady()
|
/third_party/skia/third_party/externals/oboe/samples/LiveEffect/src/main/cpp/ |
D | FullDuplexStream.cpp | 22 int numFrames) { in onAudioReady() argument 27 int32_t numBytes = numFrames * outputStream->getBytesPerFrame(); in onAudioReady() 35 numFrames, in onAudioReady() 56 numFrames, in onAudioReady() 66 numFrames, in onAudioReady() 75 audioData, numFrames in onAudioReady()
|
/third_party/skia/third_party/externals/oboe/samples/shared/ |
D | Mixer.h | 35 void renderAudio(float *audioData, int32_t numFrames) { in renderAudio() argument 38 memset(audioData, 0, sizeof(float) * numFrames * mChannelCount); in renderAudio() 41 mTracks[i]->renderAudio(mixingBuffer, numFrames); in renderAudio() 43 for (int j = 0; j < numFrames * mChannelCount; ++j) { in renderAudio()
|
/third_party/skia/modules/audioplayer/ |
D | SkAudioPlayer_oboe.cpp | 45 onAudioReady(oboe::AudioStream *oboeStream, void *audioData, int32_t numFrames) override { in onAudioReady() argument 48 int framesRead = fReader->getDataFloat(outBuffer, numFrames); in onAudioReady() 50 int remainingFrames = numFrames - framesRead; in onAudioReady() 67 void renderSilence(float *start, int numFrames) { in renderSilence() argument 68 for (int i = 0; i < numFrames * fReader->getNumChannels(); ++i) { in renderSilence()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/ |
D | LatencyAnalyzer.h | 111 int32_t write(int16_t *inputData, int32_t inputChannelCount, int32_t numFrames) { in write() argument 113 if ((mFrameCounter + numFrames) > mMaxFrames) { in write() 114 numFrames = mMaxFrames - mFrameCounter; in write() 116 for (int i = 0; i < numFrames; i++) { in write() 119 return numFrames; in write() 123 int32_t write(float *inputData, int32_t inputChannelCount, int32_t numFrames) { in write() argument 125 if ((mFrameCounter + numFrames) > mMaxFrames) { in write() 126 numFrames = mMaxFrames - mFrameCounter; in write() 128 for (int i = 0; i < numFrames; i++) { in write() 131 return numFrames; in write()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/flowunits/ |
D | ExponentialShape.cpp | 25 int32_t ExponentialShape::onProcess(int32_t numFrames) { in onProcess() argument 29 for (int i = 0; i < numFrames; i++) { in onProcess() 34 return numFrames; in onProcess()
|
D | LinearShape.cpp | 26 int32_t LinearShape::onProcess(int numFrames) { in onProcess() argument 30 for (int i = 0; i < numFrames; i++) { in onProcess() 35 return numFrames; in onProcess()
|
D | SawtoothOscillator.cpp | 26 int32_t SawtoothOscillator::onProcess(int32_t numFrames) { in onProcess() argument 33 for (int i = 0; i < numFrames; i++) { in onProcess() 38 return numFrames; in onProcess()
|