主权项 |
1. A computer-implemented method of compressing a texel block consisting of a first texel sub-block comprising multiple texels and a second texel sub-block comprising multiple texels, said computer-implemented method executable on one or more processors and comprising:
determining, based on texel values of at least a portion of said multiple texels of said texel block, a first value codeword that is a representation of a first base texel value for said multiple texels in said first texel sub-block; determining, based on texel values of at least a portion of said multiple texels of said texel block, a second value codeword that is a representation of a second base texel value for said multiple texels in said second texel sub-block; providing, for said first texel sub-block, a first table codeword that is a representation of a first modifier set of multiple value modifiers for modifying said first base texel value; providing a second table codeword for said second texel sub-block; selecting, for each texel in said first texel sub-block, a texel index associated with a value modifier of said first modifier set or indicating that a base texel value for said texel is based on said second base texel value, wherein a respective texel index is selected for at least one texel in said first texel sub-block to indicate that said base texel value for said texel is based on said second base texel value; selecting, for each texel in said second texel sub-block, a texel index; and storing at a memory a compressed representation of said texel block comprising said first value codeword, said second value codeword, said first table codeword, said second table codeword and said texel indices. |