Home
last modified time | relevance | path

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

/system/media/audio_utils/spdif/
DSPDIFEncoder.cpp43 , mByteCursor(0) in SPDIFEncoder()
108 mByteCursor = (mByteCursor + 1) & ~1; // round up to even byte in writeBurstBufferShorts()
110 if ((mByteCursor + bytesToWrite) > mBurstBufferSizeBytes) { in writeBurstBufferShorts()
115 memcpy(&mBurstBuffer[mByteCursor >> 1], buffer, bytesToWrite); in writeBurstBufferShorts()
116 mByteCursor += bytesToWrite; in writeBurstBufferShorts()
130 if ((mByteCursor + bytesToWrite) > mBurstBufferSizeBytes) { in writeBurstBufferBytes()
135 uint16_t pad = mBurstBuffer[mByteCursor >> 1]; in writeBurstBufferBytes()
137 if (mByteCursor & 1 ) { in writeBurstBufferBytes()
139 mBurstBuffer[mByteCursor >> 1] = pad; in writeBurstBufferBytes()
144 mByteCursor++; in writeBurstBufferBytes()
[all …]
/system/media/audio_utils/include/audio_utils/spdif/
DSPDIFEncoder.h102 size_t mByteCursor; // cursor into data burst variable