17#include "config-adpcm.h"
19namespace adpcm_ffmpeg {
38 for (
int k =
n - 1; k >= 0; k--) {
39 acc_ = (acc_ << 1) | ((
value >> k) & 1);
83 if (pos_ < buffer_size_) buffer_[pos_] =
v;
Vector implementation which provides the most important methods as defined by std::vector....
Definition ADPCMVector.h:16
Writes bits into a buffer. By default the first bit written is the least significant bit of the first...
Definition BitWriter.h:27
void put(int n, uint32_t value)
writes the low n bits of value (0 to 32)
Definition BitWriter.h:36
void setMsbFirst(bool msb)
Selects the bit order used by put(); call before writing.
Definition BitWriter.h:33
void flush()
stores the pending bits as a final, zero padded byte
Definition BitWriter.h:64
int bytesWritten() const
number of bytes stored so far
Definition BitWriter.h:72
void putSigned(int n, int32_t value)
writes the low n bits of a signed value (two's complement, 0 to 31)
Definition BitWriter.h:59