| 1487 | } |
| 1488 | |
| 1489 | void DecodeBc3(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height) { |
| 1490 | const auto *alpha{reinterpret_cast<const BC_channel *>(src)}; |
| 1491 | const auto *color{reinterpret_cast<const BC_color *>(src + 8)}; |
| 1492 | size_t pitch{R8g8b8a8Bpp * width}; |
| 1493 | color->decode(dst, x, y, width, height, pitch, R8g8b8a8Bpp, false, true); |
| 1494 | alpha->decode(dst, x, y, width, height, pitch, R8g8b8a8Bpp, 3, false); |
| 1495 | } |
| 1496 | |
| 1497 | void DecodeBc4(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height, bool isSigned) { |
| 1498 | const auto *red{reinterpret_cast<const BC_channel *>(src)}; |