| 14899 | |
| 14900 | static inline uint8_t to_5(uint32_t v) { v = v * 31 + 128; return (uint8_t)((v + (v >> 8)) >> 8); } |
| 14901 | static inline uint8_t to_6(uint32_t v) { v = v * 63 + 128; return (uint8_t)((v + (v >> 8)) >> 8); } |
| 14902 | |
| 14903 | // Good references: squish library, stb_dxt. |
| 14904 | void encode_bc1(void* pDst, const uint8_t* pPixels, uint32_t flags) |
no outgoing calls
no test coverage detected