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

Function PixelDePack16

encoder/pvpngreader.cpp:792–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792static void PixelDePack16(void* src, void* dst, int numbytes)
793{
794 uint8_t* src8 = (uint8_t*)src;
795 uint8_t* dst8 = (uint8_t*)dst;
796
797 while (numbytes)
798 {
799 uint8_t v = *src8++;
800
801 dst8[0] = (uint8_t)v >> 4;
802 dst8[1] = (uint8_t)v & 0xF;
803 dst8 += 2;
804
805 numbytes--;
806 }
807}
808
809static int unpack_grey_1(uint8_t* src, uint8_t* dst, int pixels, png_decoder *pwi)
810{

Callers 1

unpack_grey_4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected