Grok 20.3.2
grk::t1::ojph::local::dec_mel_st Struct Reference

MEL state structure for reading and decoding the MEL bitstream. More...

Public Member Functions

 dec_mel_st ()
 dec_mel_st ()
 dec_mel_st ()

Public Attributes

ui8data
 the address of data (or bitstream)
ui64 tmp
 temporary buffer for read data
int bits
 number of bits stored in tmp
int size
 number of bytes in MEL code
bool unstuff
 true if the next bit needs to be unstuffed
int k
 state of MEL decoder
int num_runs
 number of decoded runs left in runs (maximum 8)
ui64 runs
 runs of decoded MEL codewords (7 bits/run)

Detailed Description

MEL state structure for reading and decoding the MEL bitstream.

A number of events is decoded from the MEL bitstream ahead of time and stored in run/num_runs. Each run represents the number of zero events before a one event.

Constructor & Destructor Documentation

◆ dec_mel_st() [1/3]

grk::t1::ojph::local::dec_mel_st::dec_mel_st ( )
inline

References bits, data, k, num_runs, runs, size, tmp, and unstuff.

◆ dec_mel_st() [2/3]

grk::t1::ojph::local::dec_mel_st::dec_mel_st ( )
inline

References bits, data, k, num_runs, runs, size, tmp, and unstuff.

◆ dec_mel_st() [3/3]

grk::t1::ojph::local::dec_mel_st::dec_mel_st ( )
inline

References bits, data, k, num_runs, runs, size, tmp, and unstuff.

Member Data Documentation

◆ bits

int grk::t1::ojph::local::dec_mel_st::bits

◆ data

ui8 * grk::t1::ojph::local::dec_mel_st::data

the address of data (or bitstream)

Referenced by dec_mel_st(), grk::t1::ojph::local::mel_init(), and grk::t1::ojph::local::mel_read().

◆ k

int grk::t1::ojph::local::dec_mel_st::k

◆ num_runs

int grk::t1::ojph::local::dec_mel_st::num_runs

◆ runs

ui64 grk::t1::ojph::local::dec_mel_st::runs

◆ size

int grk::t1::ojph::local::dec_mel_st::size

number of bytes in MEL code

Referenced by dec_mel_st(), grk::t1::ojph::local::mel_init(), and grk::t1::ojph::local::mel_read().

◆ tmp

ui64 grk::t1::ojph::local::dec_mel_st::tmp

◆ unstuff

bool grk::t1::ojph::local::dec_mel_st::unstuff

true if the next bit needs to be unstuffed

Referenced by dec_mel_st(), grk::t1::ojph::local::mel_init(), and grk::t1::ojph::local::mel_read().


The documentation for this struct was generated from the following files: