MCPcopy Create free account
hub / github.com/citron-neo/emulator / DecodeBc2

Function DecodeBc2

externals/bc_decoder/bc_decoder.cpp:1481–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)};
1483 const auto *color{reinterpret_cast<const BC_color *>(src + 8)};
1484 size_t pitch{R8g8b8a8Bpp * width};
1485 color->decode(dst, x, y, width, height, pitch, R8g8b8a8Bpp, false, true);
1486 alpha->decode(dst, x, y, width, height, pitch, R8g8b8a8Bpp);
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)};

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected