Searched refs:fifo_frames_t (Results 1 – 10 of 10) sorted by relevance
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoControllerBase.h | 25 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 …]
|
D | FifoBuffer.cpp | 36 using android::fifo_frames_t; 41 FifoBufferAllocated::FifoBufferAllocated(int32_t bytesPerFrame, fifo_frames_t capacityInFrames) in FifoBufferAllocated() 53 fifo_frames_t capacityInFrames, in FifoBufferIndirect() 67 int32_t FifoBuffer::convertFramesToBytes(fifo_frames_t frames) { in convertFramesToBytes() 78 fifo_frames_t capacity = mFifo->getCapacity(); in fillWrappingBuffer() 83 fifo_frames_t firstFrames = capacity - startIndex; in fillWrappingBuffer() 97 fifo_frames_t FifoBuffer::getFullDataAvailable(WrappingBuffer *wrappingBuffer) { in getFullDataAvailable() 99 fifo_frames_t framesAvailable = std::min(mFifo->getFullFramesAvailable(), in getFullDataAvailable() 101 fifo_frames_t startIndex = mFifo->getReadIndex(); in getFullDataAvailable() 106 fifo_frames_t FifoBuffer::getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyRoomAvailable() [all …]
|
D | FifoBuffer.h | 45 int32_t convertFramesToBytes(fifo_frames_t frames); 47 fifo_frames_t read(void *destination, fifo_frames_t framesToRead); 49 fifo_frames_t write(const void *source, fifo_frames_t framesToWrite); 51 fifo_frames_t getThreshold(); 53 void setThreshold(fifo_frames_t threshold); 55 fifo_frames_t getBufferCapacityInFrames(); 64 fifo_frames_t getFullDataAvailable(WrappingBuffer *wrappingBuffer); 73 fifo_frames_t getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer); 97 void advanceReadIndex(fifo_frames_t numFrames) { in advanceReadIndex() 101 void advanceWriteIndex(fifo_frames_t numFrames) { in advanceWriteIndex() [all …]
|
D | FifoControllerBase.cpp | 26 FifoControllerBase::FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold) in FifoControllerBase() 35 fifo_frames_t FifoControllerBase::getFullFramesAvailable() { in getFullFramesAvailable() 36 fifo_frames_t temp = 0; in getFullFramesAvailable() 41 fifo_frames_t FifoControllerBase::getReadIndex() { in getReadIndex() 43 return (fifo_frames_t) ((uint64_t)getReadCounter() % mCapacity); in getReadIndex() 46 void FifoControllerBase::advanceReadIndex(fifo_frames_t numFrames) { in advanceReadIndex() 52 fifo_frames_t FifoControllerBase::getEmptyFramesAvailable() { in getEmptyFramesAvailable() 56 fifo_frames_t FifoControllerBase::getWriteIndex() { in getWriteIndex() 58 return (fifo_frames_t) ((uint64_t)getWriteCounter() % mCapacity); in getWriteIndex() 61 void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { in advanceWriteIndex() [all …]
|
D | FifoController.h | 33 FifoController(fifo_frames_t bufferSize, fifo_frames_t threshold) in FifoController()
|
D | FifoControllerIndirect.h | 36 FifoControllerIndirect(fifo_frames_t capacity, in FifoControllerIndirect() 37 fifo_frames_t threshold, in FifoControllerIndirect()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_atomic_fifo.cpp | 25 using android::fifo_frames_t; 106 static constexpr fifo_frames_t kBigArraySize = 1024; 107 static constexpr fifo_frames_t kFifoDataOffset = 128; // starting index of FIFO data 112 explicit TestFifoBuffer(fifo_frames_t capacity, fifo_frames_t threshold = 0) in TestFifoBuffer() 127 for (fifo_frames_t i = 0; i < kBigArraySize; i++) { in TestFifoBuffer() 145 for (fifo_frames_t i = 0; i < kFifoDataOffset; i++) { in verifyStorageIntegrity() 148 fifo_frames_t firstFrameAfter = kFifoDataOffset + mFifoBuffer.getBufferCapacityInFrames(); in verifyStorageIntegrity() 149 for (fifo_frames_t i = firstFrameAfter; i < kBigArraySize; i++) { in verifyStorageIntegrity() 161 fifo_frames_t framesAvailable = in verifyWrappingBuffer() 163 fifo_frames_t wrapAvailable = mFifoBuffer.getEmptyRoomAvailable(&wrappingBuffer); in verifyWrappingBuffer() [all …]
|
/frameworks/av/services/oboeservice/ |
D | AAudioMixer.cpp | 34 using android::fifo_frames_t; 57 fifo_frames_t fullFrames = fifo->getFullDataAvailable(&wrappingBuffer); in mix() 75 fifo_frames_t framesDesired = mFramesPerBurst; in mix() 84 fifo_frames_t framesToMixFromPart = framesLeft; in mix() 85 fifo_frames_t framesAvailableFromPart = wrappingBuffer.numFrames[partIndex]; in mix()
|
D | SharedRingBuffer.h | 46 …aaudio_result_t allocate(android::fifo_frames_t bytesPerFrame, android::fifo_frames_t capacityInFr… 71 android::fifo_frames_t mCapacityInFrames = 0;
|
D | SharedRingBuffer.cpp | 42 aaudio_result_t SharedRingBuffer::allocate(fifo_frames_t bytesPerFrame, in allocate() 43 fifo_frames_t capacityInFrames) { in allocate()
|