Home
last modified time | relevance | path

Searched refs:bytesPerFrame (Results 1 – 17 of 17) sorted by relevance

/frameworks/av/services/oboeservice/
DSharedMemoryWrapper.cpp68 aaudio_result_t SharedMemoryWrapper::setupFifoBuffer(android::fifo_frames_t bytesPerFrame, in setupFifoBuffer() argument
78 mSharedMemorySizeInBytes = bytesPerFrame * capacityInFrames; in setupFifoBuffer()
90 bytesPerFrame, capacityInFrames, mReadCounterAddress, in setupFifoBuffer()
106 int32_t bytesPerFrame, int32_t framesPerBurst, int32_t capacityInFrames, in fillParcelable() argument
108 const int capacityInBytes = bytesPerFrame * capacityInFrames; in fillParcelable()
111 ringBufferParcelable.setBytesPerFrame(bytesPerFrame); in fillParcelable()
DSharedRingBuffer.cpp42 aaudio_result_t SharedRingBuffer::allocate(fifo_frames_t bytesPerFrame, in allocate() argument
47 mDataMemorySizeInBytes = bytesPerFrame * capacityInFrames; in allocate()
81 mFifoBuffer = std::make_shared<FifoBufferIndirect>(bytesPerFrame, capacityInFrames, in allocate()
DSharedMemoryWrapper.h43 aaudio_result_t setupFifoBuffer(android::fifo_frames_t bytesPerFrame,
66 int32_t bytesPerFrame,
DSharedRingBuffer.h46 …aaudio_result_t allocate(android::fifo_frames_t bytesPerFrame, android::fifo_frames_t capacityInFr…
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp38 FifoBuffer::FifoBuffer(int32_t bytesPerFrame) in FifoBuffer() argument
39 : mBytesPerFrame(bytesPerFrame) {} in FifoBuffer()
41 FifoBufferAllocated::FifoBufferAllocated(int32_t bytesPerFrame, fifo_frames_t capacityInFrames) in FifoBufferAllocated() argument
42 : FifoBuffer(bytesPerFrame) in FifoBufferAllocated()
46 int32_t bytesPerBuffer = bytesPerFrame * capacityInFrames; in FifoBufferAllocated()
49 __func__, capacityInFrames, bytesPerFrame); in FifoBufferAllocated()
52 FifoBufferIndirect::FifoBufferIndirect( int32_t bytesPerFrame, in FifoBufferIndirect() argument
58 : FifoBuffer(bytesPerFrame) in FifoBufferIndirect()
DFifoBuffer.h41 explicit FifoBuffer(int32_t bytesPerFrame);
141 FifoBufferAllocated(int32_t bytesPerFrame, fifo_frames_t capacityInFrames);
157 FifoBufferIndirect(int32_t bytesPerFrame,
/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp50 if (descriptor->bytesPerFrame < 1 in AudioEndpoint_validateQueueDescriptor()
51 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) { in AudioEndpoint_validateQueueDescriptor()
53 descriptor->bytesPerFrame); in AudioEndpoint_validateQueueDescriptor()
116 if(descriptor->bytesPerFrame != sizeof(AAudioServiceMessage)) { in configure()
118 descriptor->bytesPerFrame); in configure()
134 descriptor->bytesPerFrame, in configure()
174 size_t bufferSizeBytes = descriptor.capacityInFrames * descriptor.bytesPerFrame; in configureDataQueue()
178 descriptor.bytesPerFrame, in configureDataQueue()
/frameworks/av/media/libaaudio/src/binding/
DRingBufferParcelable.cpp36 mBytesPerFrame(parcelable.bytesPerFrame), in RingBufferParcelable()
48 result.bytesPerFrame = mBytesPerFrame; in parcelable()
89 void RingBufferParcelable::setBytesPerFrame(int32_t bytesPerFrame) { in setBytesPerFrame() argument
90 mBytesPerFrame = bytesPerFrame; in setBytesPerFrame()
129 descriptor->bytesPerFrame = mBytesPerFrame; in resolve()
DAAudioServiceDefinitions.h73 int32_t bytesPerFrame; // index is in frames member
DRingBufferParcelable.h68 void setBytesPerFrame(int32_t bytesPerFrame);
/frameworks/av/media/libaaudio/tests/
Dtest_pcm_offload.cpp100 int bytesPerFrame = mChannelCount; in writeAllStreamData() local
104 bytesPerFrame *= 2; in writeAllStreamData()
107 bytesPerFrame *= 4; in writeAllStreamData()
113 data = std::make_shared<uint8_t[]>(bytesPerFrame * mStreamFrames); in writeAllStreamData()
127 bytesWritten += framesWritten * bytesPerFrame; in writeAllStreamData()
Dtest_marshalling.cpp138 const size_t bytesPerFrame = 8; in TEST() local
156 ringBufferA.setBytesPerFrame(bytesPerFrame); in TEST()
157 ringBufferA.setCapacityInFrames(dataSizeBytes / bytesPerFrame); in TEST()
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/
DRingBuffer.aidl25 int bytesPerFrame; // index is in frames
/frameworks/av/media/module/extractors/wav/
DWAVExtractor.cpp451 int64_t bytesPerFrame; in read() local
452 overflowed |= __builtin_mul_overflow(mNumChannels, mBitsPerSample >> 3, &bytesPerFrame); in read()
453 overflowed |= __builtin_mul_overflow(bytesPerFrame, sampleNumber, &pos); in read()
517 const size_t bytesPerFrame = (mBitsPerSample >> 3) * mNumChannels; in read() local
518 const size_t numFrames = n / bytesPerFrame; in read()
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.cpp599 int32_t bytesPerFrame, in AAudioConvert_framesToBytes() argument
603 if (numFrames < 0 || bytesPerFrame < 0) { in AAudioConvert_framesToBytes()
604 ALOGE("negative size, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame); in AAudioConvert_framesToBytes()
609 if (numFrames > (INT32_MAX / bytesPerFrame)) { in AAudioConvert_framesToBytes()
610 ALOGE("size overflow, numFrames = %d, frameSize = %d", numFrames, bytesPerFrame); in AAudioConvert_framesToBytes()
614 *sizeInBytes = numFrames * bytesPerFrame; in AAudioConvert_framesToBytes()
DAAudioUtilities.h61 int32_t bytesPerFrame,
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp493 int32_t bytesPerFrame = getBytesPerFrame(); in write() local
495 aaudio_result_t result = AAudioConvert_framesToBytes(numFrames, bytesPerFrame, &numBytes); in write()
519 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame); in write()