184.108.40.206.7 RLGR Entropy Encoding
Each 64 x 64-pixel tile contains an array of 4,096 coefficients. This coefficient array is losslessly entropy-encoded using the RLGR algorithm ([ARLGR] section 3). The three tile components are assembled into an encoded tile packet (section 220.127.116.11.4.1). RLGR is an algorithm that adaptively switches between Run-Length encoding of zeros and Golomb-Rice coding of nonzero coefficients. There are two variants of the RLGR algorithm that can be used, RLGR1 and RLGR3. The decoder endpoint specifies its preference through the capabilities negotiation (see the entropyBits field in section 18.104.22.168.1.1.1). The pseudocode that describes the complete RLGR1/RLGR3 algorithm in detail is given in section 22.214.171.124.7.3.