MCPcopy Create free account
hub / github.com/crownengine/crown / decodeBlockDxt23A

Function decodeBlockDxt23A

3rdparty/bimg/src/image.cpp:1487–1499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1485 }
1486
1487 static void decodeBlockDxt23A(uint8_t _dst[16*4], const uint8_t _src[8])
1488 {
1489 if (!BX_ENABLED(BIMG_DECODE_BC2) )
1490 {
1491 return;
1492 }
1493
1494 for (uint32_t ii = 0, next = 0; ii < 16*4; ii += 4, next += 4)
1495 {
1496 uint32_t c0 = (_src[next>>3] >> (next&7) ) & 0xf;
1497 _dst[ii] = bitRangeConvert(c0, 4, 8);
1498 }
1499 }
1500
1501 static void decodeBlockDxt45A(uint8_t _dst[16*4], const uint8_t _src[8])
1502 {

Callers 1

imageDecodeToBgra8Function · 0.85

Calls 1

bitRangeConvertFunction · 0.85

Tested by

no test coverage detected