Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp34 FifoBuffer::FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames) in FifoBuffer()
53 fifo_frames_t capacityInFrames, in FifoBuffer()
80 int32_t FifoBuffer::convertFramesToBytes(fifo_frames_t frames) { in convertFramesToBytes()
94 fifo_frames_t firstFrames = mFrameCapacity - startIndex; in fillWrappingBuffer()
108 fifo_frames_t FifoBuffer::getFullDataAvailable(WrappingBuffer *wrappingBuffer) { in getFullDataAvailable()
110 fifo_frames_t framesAvailable = std::min(mFifo->getFullFramesAvailable(), mFrameCapacity); in getFullDataAvailable()
111 fifo_frames_t startIndex = mFifo->getReadIndex(); in getFullDataAvailable()
116 fifo_frames_t FifoBuffer::getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyRoomAvailable()
118 fifo_frames_t framesAvailable = std::min(mFifo->getEmptyFramesAvailable(), mFrameCapacity); in getEmptyRoomAvailable()
119 fifo_frames_t startIndex = mFifo->getWriteIndex(); 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);
107 void setThreshold(fifo_frames_t threshold);
109 fifo_frames_t getThreshold() const { in getThreshold()
[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) (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) (getWriteCounter() % mCapacity); in getWriteIndex()
57 void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { in advanceWriteIndex()
[all …]
DFifoBuffer.h40 FifoBuffer(int32_t bytesPerFrame, fifo_frames_t capacityInFrames);
43 fifo_frames_t capacityInFrames,
50 int32_t convertFramesToBytes(fifo_frames_t frames);
52 fifo_frames_t read(void *destination, fifo_frames_t framesToRead);
54 fifo_frames_t write(const void *source, fifo_frames_t framesToWrite);
56 fifo_frames_t getThreshold();
58 void setThreshold(fifo_frames_t threshold);
60 fifo_frames_t getBufferCapacityInFrames();
69 fifo_frames_t getFullDataAvailable(WrappingBuffer *wrappingBuffer);
78 fifo_frames_t getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer);
[all …]
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;
79 explicit TestFifoBuffer(fifo_frames_t capacity, fifo_frames_t threshold = 0) in TestFifoBuffer()
98 fifo_frames_t framesAvailable = in checkWrappingBuffer()
100 fifo_frames_t wrapAvailable = mFifoBuffer.getEmptyRoomAvailable(&wrappingBuffer); in checkWrappingBuffer()
102 fifo_frames_t bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in checkWrappingBuffer()
114 void writeData(fifo_frames_t numFrames) { in writeData()
115 fifo_frames_t framesAvailable = in writeData()
117 fifo_frames_t framesToWrite = std::min(framesAvailable, numFrames); in writeData()
121 fifo_frames_t actual = mFifoBuffer.write(mData, framesToWrite); in writeData()
126 void verifyData(fifo_frames_t numFrames) { in verifyData()
[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()