Lines Matching defs:to
13 * The functions here are used during reads to store data from the file
14 * into the info struct, and during writes to store application data
16 * info struct and allows us to change the structure in the future.
147 /* Changed in libpng-1.5.4 to limit the values to ensure overflow can't
149 * possible for 1/gamma to overflow the limit of 21474 and this means the
151 * safety the limits here are a little narrower. The values are 0.00016 to
197 /* Changed from info->num_palette to PNG_MAX_PALETTE_LENGTH in
260 - 7*8 /* rounding of width to multiple of 8 pixels */
455 /* Convert 'width' and 'height' to ASCII. */
485 /* Convert 'width' and 'height' to ASCII. */
537 /* It may not actually be necessary to set png_ptr->palette here;
539 * function used to do the allocation.
543 /* Changed in libpng-1.2.1 to allocate PNG_MAX_PALETTE_LENGTH instead
635 png_warning(png_ptr, "Insufficient memory to process iCCP chunk");
646 "Insufficient memory to process iCCP profile");
658 * does not have to change if we introduce multiple compression types
675 png_error(png_ptr, "Insufficient memory to store text");
691 * to hold all of the incoming text_ptr objects.
710 /* Restore to previous condition */
729 /* Restore to previous condition */
902 /* It may not actually be necessary to set png_ptr->trans_alpha here;
904 * function used to do the allocation.
909 /* Changed from num_trans to PNG_MAX_PALETTE_LENGTH in version 1.2.1 */
953 * to be added to the list of palettes
956 * nentries - number of palette structures to be
984 png_sPLT_tp to = np + info_ptr->splt_palettes_num + i;
989 to->name = (png_charp)png_malloc_warn(png_ptr, length);
991 if (to->name == NULL)
998 png_memcpy(to->name, from->name, length);
999 to->entries = (png_sPLT_entryp)png_malloc_warn(png_ptr,
1002 if (to->entries == NULL)
1006 png_free(png_ptr, to->name);
1007 to->name = NULL;
1011 png_memcpy(to->entries, from->entries,
1014 to->nentries = from->nentries;
1015 to->depth = from->depth;
1056 png_unknown_chunkp to = np + info_ptr->unknown_chunks_num + i;
1059 png_memcpy(to->name, from->name, png_sizeof(from->name));
1060 to->name[png_sizeof(to->name)-1] = '\0';
1061 to->size = from->size;
1064 to->location = (png_byte)(png_ptr->mode & 0xff);
1067 to->data=NULL;
1071 to->data = (png_bytep)png_malloc_warn(png_ptr,
1074 if (to->data == NULL)
1078 to->size = 0;
1082 png_memcpy(to->data, from->data, from->size);
1216 png_warning(png_ptr, "Attempt to set buffer size beyond max ignored");
1244 /* This function was added to libpng 1.2.6 */
1250 * rejected by png_set_IHDR(). To accept any PNG datastream
1251 * regardless of dimensions, set both limits to 0x7ffffffL.
1260 /* This function was added to libpng 1.4.0 */
1269 /* This function was added to libpng 1.4.1 */
1295 /* Whether to report invalid palette index; added at libng-1.5.10