| 1473 | constexpr size_t R16g16b16a16Bpp{8}; //!< The amount of bytes per pixel in R16G16B16 |
| 1474 | |
| 1475 | void DecodeBc1(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height) { |
| 1476 | const auto *color{reinterpret_cast<const BC_color *>(src)}; |
| 1477 | size_t pitch{R8g8b8a8Bpp * width}; |
| 1478 | color->decode(dst, x, y, width, height, pitch, R8g8b8a8Bpp, true, false); |
| 1479 | } |
| 1480 | |
| 1481 | void DecodeBc2(const uint8_t *src, uint8_t *dst, size_t x, size_t y, size_t width, size_t height) { |
| 1482 | const auto *alpha{reinterpret_cast<const BC_alpha *>(src)}; |