96 if (outstream == 0)
return FALSE;
117 another_byte =
FALSE;
142 return (EntropyModel*)m;
160 return (EntropyModel*)m;
177 assert(model && (sym <= 1));
201 assert(sym <= m->last_symbol);
235 assert(bits && (bits <= 32) && (sym < (1u<<bits)));
virtual BOOL putBytes(const U8 *bytes, U32 num_bytes)=0
void writeBits(U32 bits, U32 sym)
void initBitModel(EntropyModel *model)
const U32 BM__LengthShift
void destroySymbolModel(EntropyModel *model)
BOOL init(ByteStreamOut *outstream)
EntropyModel * createSymbolModel(U32 n)
void renorm_enc_interval()
void encodeSymbol(EntropyModel *model, U32 sym)
void initSymbolModel(EntropyModel *model, U32 *table=0)
virtual BOOL putByte(U8 byte)=0
void destroyBitModel(EntropyModel *model)
void encodeBit(EntropyModel *model, U32 sym)
ByteStreamOut * outstream
const U32 DM__LengthShift
void writeDouble(F64 sym)
EntropyModel * createBitModel()