MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / PixelDePack2

Function PixelDePack2

encoder/pvpngreader.cpp:775–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775static void PixelDePack2(void* src, void* dst, int numbytes)
776{
777 uint8_t* src8 = (uint8_t*)src;
778 uint8_t* dst8 = (uint8_t*)dst;
779
780 while (numbytes)
781 {
782 uint8_t v = *src8++;
783
784 for (uint32_t i = 0; i < 8; i++)
785 dst8[7 - i] = (v >> i) & 1;
786
787 dst8 += 8;
788 numbytes--;
789 }
790}
791
792static void PixelDePack16(void* src, void* dst, int numbytes)
793{

Callers 1

unpack_grey_1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected