60 virtual int size()
const = 0;
110 virtual int size()
const {
return data_size; }
111 uint8_t*
data()
const {
return data_mem; }
139 uint32_t data_capacity;
146 uint32_t vlc_buffer_len;
154 uint8_t buffered_byte;
155 uint16_t num_buffered_bytes;
158 void check_size_and_resize(
int nBytes);
159 void testAndWriteOut();
161 void append_byte(
int byte);
int decode_CABAC_TR_bypass(CABAC_decoder *decoder, int cRiceParam, int cTRMax)
void init_CABAC_decoder_2(CABAC_decoder *decoder)
int decode_CABAC_term_bit(CABAC_decoder *decoder)
void init_CABAC_decoder(CABAC_decoder *decoder, uint8_t *bitstream, int length)
int decode_CABAC_bypass(CABAC_decoder *decoder)
int decode_CABAC_TU(CABAC_decoder *decoder, int cMax, context_model *model)
int decode_CABAC_EGk_bypass(CABAC_decoder *decoder, int k)
int decode_CABAC_FL_bypass(CABAC_decoder *decoder, int nBits)
int decode_CABAC_bit(CABAC_decoder *decoder, context_model *model)
int decode_CABAC_TU_bypass(CABAC_decoder *decoder, int cMax)
virtual void write_CABAC_bypass(int bit)
virtual void init_CABAC()
CABAC_encoder_bitstream()
virtual void flush_CABAC()
virtual int size() const
Definition: cabac.h:110
virtual void write_CABAC_term_bit(int bit)
virtual bool modifies_context() const
Definition: cabac.h:133
virtual void write_bits(uint32_t bits, int n)
~CABAC_encoder_bitstream()
uint8_t * data() const
Definition: cabac.h:111
virtual void write_startcode()
virtual void skip_bits(int nBits)
virtual int number_free_bits_in_byte() const
virtual void write_CABAC_bit(int modelIdx, int bit)
virtual bool modifies_context() const
Definition: cabac.h:208
void write_CABAC_bit(int modelIdx, int bit)
virtual void reset()
Definition: cabac.h:170
virtual int number_free_bits_in_byte() const
Definition: cabac.h:183
virtual void write_startcode()
Definition: cabac.h:181
virtual void write_CABAC_bypass(int bit)
Definition: cabac.h:188
virtual void write_CABAC_bit(int modelIdx, int bit)
virtual bool modifies_context() const
Definition: cabac.h:196
virtual void write_bits(uint32_t bits, int n)
Definition: cabac.h:179
virtual void write_bit(int bit)
Definition: cabac.h:180
float getRDBits() const
Definition: cabac.h:175
CABAC_encoder_estim()
Definition: cabac.h:168
virtual void write_CABAC_FL_bypass(int value, int nBits)
Definition: cabac.h:191
virtual int size() const
Definition: cabac.h:172
virtual void skip_bits(int nBits)
Definition: cabac.h:182
uint64_t getFracBits() const
Definition: cabac.h:174
uint64_t mFracBits
Definition: cabac.h:199
virtual void write_CABAC_term_bit(int bit)
Definition: cabac.h:194
virtual ~CABAC_encoder()
Definition: cabac.h:58
virtual int number_free_bits_in_byte() const =0
virtual void write_bit(int bit)
Definition: cabac.h:66
virtual void write_CABAC_TU_bypass(int value, int cMax)
virtual bool modifies_context() const =0
virtual void write_startcode()=0
CABAC_encoder()
Definition: cabac.h:57
virtual void init_CABAC()
Definition: cabac.h:83
context_model_table * mCtxModels
Definition: cabac.h:98
virtual void flush_VLC()
Definition: cabac.h:76
void write_CABAC_EGk(int absolute_symbol, int k)
virtual int size() const =0
virtual void skip_bits(int nBits)=0
virtual void write_CABAC_FL_bypass(int value, int nBits)
virtual void write_CABAC_bit(int modelIdx, int bit)=0
virtual void write_svlc(int value)
virtual void flush_CABAC()
Definition: cabac.h:89
virtual void add_trailing_bits()
virtual void write_bits(uint32_t bits, int n)=0
virtual void write_CABAC_term_bit(int bit)=0
virtual void write_CABAC_bypass(int bit)=0
virtual void write_uvlc(int value)
void set_context_models(context_model_table *models)
Definition: cabac.h:81
float RDBits_for_CABAC_bin(int modelIdx, int bit)
Definition: contextmodel.h:100
qulonglong value
Definition: itemviewutilities.cpp:592
uint32_t range
Definition: cabac.h:33
uint8_t * bitstream_end
Definition: cabac.h:31
uint8_t * bitstream_start
Definition: cabac.h:29
uint8_t * bitstream_curr
Definition: cabac.h:30
uint32_t value
Definition: cabac.h:34
int16_t bits_needed
Definition: cabac.h:35
Definition: contextmodel.h:34