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

Function DecodeBc1

externals/bc_decoder/bc_decoder.cpp:1475–1479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)};

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected