Data Structure Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
226
Static Protected Member Functions
static unsigned SpatialDither (unsigned data_in, unsigned size_in, unsigned size_out, unsigned x, unsigned y,
bool exact)
static unsigned MSBitReplication (unsigned data_in, unsigned size_in, unsigned size_out)
static int ClampToBpc (unsigned int data_in, unsigned bpc)
static unsigned Log2 (unsigned t)
12.22.1 Detailed Description
This class contains sample code for compression
12.22.2 Member Enumeration Documentation
12.22.2.1 enum Mode
configuration
Enumerator
MODE_RLAD_UNIFORM
Proprietary (lossy with upper limit for compression rate) Proprietary (lossy with fixed
compression rate)
MODE_RLA
Proprietary (lossless)
MODE_RL
Standard RL format according to TGA spec (for backward compatibility)
12.22.3 Member Function Documentation
12.22.3.1 unsigned bpp ( ) const [inline]
return sum of component bpp
12.22.3.2 unsigned buffer_size ( ) const
calc buffer size
12.22.3.3 unsigned cbpc_width ( unsigned i ) const [inline]
bit width of cbpc fields in package headers
12.22.3.4 unsigned cbpp_max ( ) const [inline]
return sum of compressed component bpp
12.22.3.5 unsigned cnt_width ( ) const [inline]
return max bit size
12.22.3.6 double compression_rate ( ) const [inline]
Return compression rate
12.22.3.7 unsigned cwrap ( unsigned i ) const [inline]
return component size