Home
last modified time | relevance | path

Searched refs:fifo_frames_t (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp34 using android::fifo_frames_t;
36 FifoBuffer::FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames) in FifoBuffer()
49 fifo_frames_t capacityInFrames, in FifoBuffer()
70 int32_t FifoBuffer::convertFramesToBytes(fifo_frames_t frames) { in convertFramesToBytes()
80 fifo_frames_t capacity = mFifo->getCapacity(); in fillWrappingBuffer()
85 fifo_frames_t firstFrames = capacity - startIndex; in fillWrappingBuffer()
99 fifo_frames_t FifoBuffer::getFullDataAvailable(WrappingBuffer *wrappingBuffer) { in getFullDataAvailable()
101 fifo_frames_t framesAvailable = std::min(mFifo->getFullFramesAvailable(), in getFullDataAvailable()
103 fifo_frames_t startIndex = mFifo->getReadIndex(); in getFullDataAvailable()
108 fifo_frames_t FifoBuffer::getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyRoomAvailable()
[all …]
DFifoControllerBase.h25 typedef int32_t fifo_frames_t; typedef
44 FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold);
75 fifo_frames_t getFullFramesAvailable();
80 fifo_frames_t getReadIndex();
85 void advanceReadIndex(fifo_frames_t numFrames);
90 fifo_frames_t getEmptyFramesAvailable();
95 fifo_frames_t getWriteIndex();
100 void advanceWriteIndex(fifo_frames_t numFrames);
110 void setThreshold(fifo_frames_t threshold);
112 fifo_frames_t getThreshold() const { in getThreshold()
[all …]
DFifoBuffer.h41 FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames);
44 fifo_frames_t capacityInFrames,
51 int32_t convertFramesToBytes(fifo_frames_t frames);
53 fifo_frames_t read(void *destination, fifo_frames_t framesToRead);
55 fifo_frames_t write(const void *source, fifo_frames_t framesToWrite);
57 fifo_frames_t getThreshold();
59 void setThreshold(fifo_frames_t threshold);
61 fifo_frames_t getBufferCapacityInFrames();
70 fifo_frames_t getFullDataAvailable(WrappingBuffer *wrappingBuffer);
79 fifo_frames_t getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer);
[all …]
DFifoControllerBase.cpp26 FifoControllerBase::FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold) in FifoControllerBase()
35 fifo_frames_t FifoControllerBase::getFullFramesAvailable() { in getFullFramesAvailable()
36 return (fifo_frames_t) (getWriteCounter() - getReadCounter()); in getFullFramesAvailable()
39 fifo_frames_t FifoControllerBase::getReadIndex() { in getReadIndex()
41 return (fifo_frames_t) ((uint64_t)getReadCounter() % mCapacity); in getReadIndex()
44 void FifoControllerBase::advanceReadIndex(fifo_frames_t numFrames) { in advanceReadIndex()
48 fifo_frames_t FifoControllerBase::getEmptyFramesAvailable() { in getEmptyFramesAvailable()
52 fifo_frames_t FifoControllerBase::getWriteIndex() { in getWriteIndex()
54 return (fifo_frames_t) ((uint64_t)getWriteCounter() % mCapacity); in getWriteIndex()
57 void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { in advanceWriteIndex()
[all …]
DFifoController.h33 FifoController(fifo_frames_t bufferSize, fifo_frames_t threshold) in FifoController()
DFifoControllerIndirect.h36 FifoControllerIndirect(fifo_frames_t capacity, in FifoControllerIndirect()
37 fifo_frames_t threshold, in FifoControllerIndirect()
/frameworks/av/media/libaaudio/tests/
Dtest_atomic_fifo.cpp25 using android::fifo_frames_t;
105 static constexpr fifo_frames_t kBigArraySize = 1024;
106 static constexpr fifo_frames_t kFifoDataOffset = 128; // starting index of FIFO data
111 explicit TestFifoBuffer(fifo_frames_t capacity, fifo_frames_t threshold = 0) in TestFifoBuffer()
126 for (fifo_frames_t i = 0; i < kBigArraySize; i++) { in TestFifoBuffer()
144 for (fifo_frames_t i = 0; i < kFifoDataOffset; i++) { in verifyStorageIntegrity()
147 fifo_frames_t firstFrameAfter = kFifoDataOffset + mFifoBuffer.getBufferCapacityInFrames(); in verifyStorageIntegrity()
148 for (fifo_frames_t i = firstFrameAfter; i < kBigArraySize; i++) { in verifyStorageIntegrity()
160 fifo_frames_t framesAvailable = in verifyWrappingBuffer()
162 fifo_frames_t wrapAvailable = mFifoBuffer.getEmptyRoomAvailable(&wrappingBuffer); in verifyWrappingBuffer()
[all …]
/frameworks/av/services/oboeservice/
DAAudioMixer.cpp34 using android::fifo_frames_t;
61 fifo_frames_t fullFrames = fifo->getFullDataAvailable(&wrappingBuffer); in mix()
79 fifo_frames_t framesDesired = mFramesPerBurst; in mix()
88 fifo_frames_t framesToMixFromPart = framesLeft; in mix()
89 fifo_frames_t framesAvailableFromPart = wrappingBuffer.numFrames[partIndex]; in mix()
DSharedRingBuffer.h45 …aaudio_result_t allocate(android::fifo_frames_t bytesPerFrame, android::fifo_frames_t capacityInFr…
60 android::fifo_frames_t mCapacityInFrames = 0;
DSharedRingBuffer.cpp40 aaudio_result_t SharedRingBuffer::allocate(fifo_frames_t bytesPerFrame, in allocate()
41 fifo_frames_t capacityInFrames) { in allocate()