Data Structure Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
225
12.22
RLAD Class Reference
#include <ut_class_rlad.h>
Data Structures
class BitStream
class Frame
struct Package
Public Types
enum { NUM_C = 4 }
enum { MAX_BPC = 8 }
enum { CNT_RLAD = 8 }
enum { MAX_CNT_RLA = 32 }
enum Mode {MODE_RLAD, MODE_RLAD_UNIFORM, MODE_RLA, MODE_RL,NUM_MODE }
Public Member Functions
unsigned cbpc_width (unsigned i) const
unsigned cnt_width () const
unsigned cwrap (unsigned i) const
unsigned max_code (unsigned i) const
unsigned header_size () const
unsigned buffer_size () const
unsigned bpp () const
unsigned cbpp_max () const
unsigned image_size () const
double compression_rate () const
bool Encode (Frame &f, BitStream &bs)
bool Decode (BitStream &bs, Frame &f)
Data Fields
enum RLAD::Mode mode
unsigned width
unsigned height
unsigned bpc [NUM_C]
unsigned cbpc_max [NUM_C]
bool decode_BufferTooSmall
bool decode_BufferTooLarge
Protected Member Functions
bool Encode_Lossy (Frame &f, BitStream &bs)
bool Encode_Lossless (Frame &f, BitStream &bs)
void set_pbpc (unsigned
∗
pbpc, unsigned
∗
cbpc, unsigned &credit_cnt, unsigned pcnt)