The alpha compression generates identical results as the reference implementation in C.
The ETC2 planar block mode compression generates slightly different results for some blocks. The floating point calculations are not identical.
I also added the check for solid blocks to ETC2 compression functions.
On a raspberry pi 4 the changes speed up ETC2 RGBA compression up by around 8x.
Code formatting doesn't match the rest of the code, I could clean that up if you are interested.
The alpha compression generates identical results as the reference implementation in C. The ETC2 planar block mode compression generates slightly different results for some blocks. The floating point calculations are not identical.
I also added the check for solid blocks to ETC2 compression functions.
On a raspberry pi 4 the changes speed up ETC2 RGBA compression up by around 8x.
Code formatting doesn't match the rest of the code, I could clean that up if you are interested.