Home | History | Annotate | Download | only in tools

Lines Matching defs:bytes

163  * (16-bit RGBA) pixels in size; that's less than 2^65 bytes or 2^68 bits, so
439 /* Generate random bytes. This uses a boring repeatable algorithm and it
452 png_bytep bytes = voidcast(png_bytep, pv);
466 *bytes++ = (png_byte)u;
562 * a CRC of the first four bytes of the stream, but this is what happens in
632 /* Return the size in bytes of an IDAT_list of the given length. */
880 * reset by the chunk handling code. They record the total number of bytes
881 * read or written for the chunk, including the header (length,type) bytes.
883 png_uint_32 read_count; /* Count of bytes read (in the chunk) */
884 png_uint_32 write_count; /* Count of bytes written (in the chunk) */
1327 /* Skip exactly 12 bytes in the input stream - used to skip a CRC and chunk
1364 /* Read four bytes, returns the number of bytes read successfully and, if all
1365 * four bytes are read, assigns the result to *pu.
1388 /* Reads 'length' bytes and updates the CRC, returns true on success, false
1562 png_uint_32 rewrite_offset; /* Count of bytes before rewrite. */
1563 int rewrite_length; /* Number of bytes left to change */
1659 * minimum length of 7 bytes.
1739 /* Ran out of bytes in the compressed case. */
1865 * of remaining bytes.
1876 /* Add up the remaining bytes. This can't overflow because the
1892 /* If this was the end return the count of the available bytes */
1974 * contained the correct number of bytes of image data.
2033 png_uint_32 extra_bytes; /* Count of extra compressed bytes */
2268 /* Read nbytes compressed bytes; the stream will be initialized if required.
2269 * Bytes are always being reread and errors are fatal. The return code is as
2346 default: /* After the header bytes */
2431 } /* for (output bytes) */
2438 * ZLIB_OK or all the input bytes have been consumed; meanwhile keep
2439 * adding input bytes.
2444 } /* while (input bytes) */
2448 /* Update the running total of input bytes consumed */
2597 /* The extra bytes in the chunk are handled now by adjusting the chunk
2706 * contains a distance code that addresses bytes before
2988 * a leading sequence of bytes that match the CRC in the following four
2989 * bytes. Each time a match is found check the next 8 bytes for a valid
3016 /* Need 8 bytes */
3029 /* Examine the 8 bytes for a valid chunk header. */
3053 * the code will always read ahead exactly 8 bytes and pass this on to
3073 /* Control gets to here if when 0x7fffffff bytes (plus 8) have been read,
3189 /* Return 'count' bytes to libpng in 'buffer' */
3197 stop(file, UNEXPECTED_ERROR_CODE, "read callback for 0 bytes");
3199 /* The callback always reads ahead by 8 bytes - the signature or chunk header
3200 * - these bytes are stored in chunk_length and chunk_type. This block is
3406 /* And skip 12 bytes to the next chunk data */
3714 " chunks will be the maximum size permitted; 2^31-1 bytes. If the option",
3835 " compressed: The count of compressed bytes in the zlib stream, when the",
3836 " reason is 'SKP'; this is a count of the bytes read from the",
3839 " uncompress: The count of bytes from uncompressing the zlib stream; this",
3840 " may not be the same as the number of bytes in the image.",