rEFIt_UEFI/libeg/lodepng.cpp
/* The color channel bits of less-than-8-bit pixels are read with the MSB of bytes first,
so LodePNGBitWriter and LodePNGBitReader can't be used for those. */
The color channel bits of less-than-8-bit pixels are read with the MSB of bytes first,
so LodePNGBitWriter and LodePNGBitReader can't be used for those.
The color channel bits of less - than - 8 - bit pixels are read with the MSB of bytes first so LodePNGBitWriter and LodePNGBitReader can ' t be used for those .
static unsigned char readBitFromReversedStream(size_t* bitpointer, const unsigned char* bitstream) {
  unsigned char result = (unsigned char)((bitstream[(*bitpointer) >> 3] >> (7 - ((*bitpointer) & 0x7))) & 1);
  ++(*bitpointer);
  return result;
}
static unsigned char readBitFromReversedStream ( size_t * bitpointer , const unsigned char * bitstream ) { unsigned char result = ( unsigned char ) ( ( bitstream [ ( * bitpointer ) >> 3 ] >> ( 7 - ( ( * bitpointer ) & 0x7 ) ) ) & 1 ) ; ++ ( * bitpointer ) ; return result ; }
The color channel bits of less-than-8-bit pixels are read with the MSB of bytes first,
so LodePNGBitWriter and LodePNGBitReader can't be used for those.
The color channel bits of less - than - 8 - bit pixels are read with the MSB of bytes first so LodePNGBitWriter and LodePNGBitReader can ' t be used for those .