Sha256: b428d041cac0fcf24edd514d3eb561f3ce706dfe281dfe99ee3e395006e026d8
Contents?: true
Size: 717 Bytes
Versions: 5
Compression:
Stored size: 717 Bytes
Contents
#ifndef PNG_DECODING_H #define PNG_DECODING_H #define BUILD_PIXEL(r, g, b, a) (((PIXEL) r << 24) + ((PIXEL) g << 16) + ((PIXEL) b << 8) + (PIXEL) a) #define UNFILTER_BYTE(byte, adjustment) byte = (BYTE) (((byte) + (adjustment)) & 0x000000ff) /* Decodes an image pass from the given byte stream at the given position. A normal PNG will only have one pass that consumes the entire stream, while an interlaced image requires 7 passes which are loaded from different starting positions. This function shouild replace ChunkyPNG::Canvas::PNGDecoding.decode_png_image_pass */ VALUE oily_png_decode_png_image_pass(VALUE self, VALUE stream, VALUE width, VALUE height, VALUE color_mode, VALUE start_pos); #endif
Version data entries
5 entries across 5 versions & 1 rubygems