png_set_swap

Name

png_set_swap -- swap byte-order for 16 bit depth files

Synopsis

#include <png.h>

void png_set_swap(png_structp png_ptr);

Description

PNG files store 16-bit pixels in network byte order (big-endian, ie most significant bytes first). png_set_swap() shall switch the byte-order to little-endian (ie, least significant bits first).