Lines Matching refs:pixel
39 # 2009-03-04 David: Flat and Boxed pixel formats.
62 bits per pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB,
102 When getting pixel data out of this module (reading) and presenting
105 three formats called "flat row flat pixel", "boxed row flat pixel", and
106 "boxed row boxed pixel". Basically the concern is whether each pixel
109 Consider an image that is 3 pixels wide by 2 pixels high, and each pixel
112 Boxed row flat pixel::
118 three values for one pixel simply follow the three values for the previous
119 pixel. This is the most common format used, because it provides a good
126 Flat row flat pixel::
134 Boxed row boxed pixel::
139 Each row appears in its own list, but each pixel also appears in its own
143 ordered from left-to-right. Within a pixel the values appear in the
151 is 8 this is essentially the same as boxed row flat pixel; when the
154 by the PNG image format) each pixel value is decomposed into 2 bytes
248 from each pixel in `ipixels` followed by the `apsize` elements of data
249 from each pixel in `apixels`. Conventionally `ipixels` and
265 # Interleave in the pixel data
376 `bitdepth` specifies the bit depth of the source pixel values.
377 Each source pixel value must be an integer between 0 and
383 precision of the source image. In this case the supplied pixel
404 mapped image is created, the pixel values are palette indexes
628 an iterable that yields each row in boxed row flat pixel format.
665 `packed` is ``False`` the rows should be in boxed row flat pixel
730 # function packs/decomposes the pixel values into bytes and
824 Write an array in flat row flat pixel
835 Write PNG file to `outfile`. The pixel data comes from `rows`
855 Convert a PNM file containing raw pixel data into a PNG file
871 Convert a PPM and PGM file containing raw pixel data into a
892 Generates boxed rows in flat pixel format, from the input file
895 pixel. The number of pixels to read is taken from the image
933 the full source image in flat row flat pixel format. The
935 boxed row flat pixel format.
994 filter offset; normally this is size of a pixel in bytes (the number
1447 images this is the previous pixel row, but for interlaced
1449 in general is not the previous pixel row in the final image).
1471 # Filter unit. The stride from one pixel to the corresponding
1472 # byte from the previous previous. Normally this is the pixel
1556 Read raw pixel data, undo filters, deinterlace, and flatten.
1557 Return in flat row flat pixel format.
1591 # Convert so that there is one element per pixel value
1607 """Iterator that yields each scanline in boxed row flat pixel
1635 """Convert serial format (byte stream) pixel data to flat row
1636 flat pixel.
1766 # per pixel; check only indexed or greyscale images have
1767 # fewer than 8 bits per pixel.
1873 `pixels` are returned in boxed row flat pixel format.
1941 Read a PNG file and decode it into flat row flat pixel format.
1946 `pixels` are returned in flat row flat pixel format.
1949 more stream-friendly boxed row flat pixel format.
1952 x, y, pixel, meta = self.read()
1954 pixel = array(arraycode, itertools.chain(*pixel))
1955 return x, y, pixel, meta
1987 When returned in this format the pixel values represent the
1995 This method normally returns pixel values with the bit depth
1998 the result pixels; pixel values will be reduced according to
2012 *pixels* is the pixel data in boxed row flat pixel format (just
2053 # characterisation vector that says whether each pixel
2086 all pixel values to be floating point values between 0.0 and
2131 *pixels* is the pixel data in boxed row flat pixel format.
2596 # I just happen to know that the first pixel is transparent.
2671 # The pixels in flat row flat pixel format
2734 for pixel in range(8):
2735 s.write(struct.pack('<I', (0x4081*pixel)&0x10101)[:3])
2853 x,y,pixel,meta = r.read_flat()
2854 d = hashlib.md5(seqtobytes(pixel)).digest()
2942 fo = 3 # bytes per pixel