Home
last modified time | relevance | path

Searched refs:mByteCursor (Results 1 – 2 of 2) sorted by relevance

/system/media/audio_utils/spdif/
DSPDIFEncoder.cpp42 , mByteCursor(0) in SPDIFEncoder()
103 mByteCursor = (mByteCursor + 1) & ~1; // round up to even byte in writeBurstBufferShorts()
105 if ((mByteCursor + bytesToWrite) > mBurstBufferSizeBytes) { in writeBurstBufferShorts()
110 memcpy(&mBurstBuffer[mByteCursor >> 1], buffer, bytesToWrite); in writeBurstBufferShorts()
111 mByteCursor += bytesToWrite; in writeBurstBufferShorts()
125 if ((mByteCursor + bytesToWrite) > mBurstBufferSizeBytes) { in writeBurstBufferBytes()
130 uint16_t pad = mBurstBuffer[mByteCursor >> 1]; in writeBurstBufferBytes()
132 if (mByteCursor & 1 ) { in writeBurstBufferBytes()
134 mBurstBuffer[mByteCursor >> 1] = pad; in writeBurstBufferBytes()
139 mByteCursor++; in writeBurstBufferBytes()
[all …]
/system/media/audio_utils/include/audio_utils/spdif/
DSPDIFEncoder.h102 size_t mByteCursor; // cursor into data burst variable