Lines Matching full:with

92 source files with custom allocators.*/
101 The default built-in CRC code comes with 8KB of lookup tables, so for memory constrained environmen…
130 LCT_GREY_ALPHA = 4, /*grayscale with alpha: 8,16 bit*/
131 LCT_RGBA = 6, /*RGB with alpha: 8,16 bit*/
134 not use, compare with or set the name LCT_MAX_OCTET_VALUE, instead either use
146 Must be freed after usage with free(*out).
150 in: Memory buffer with the PNG file.
170 Load PNG from disk, from file with given name.
203 Must be freed after usage with free(*out).
398 Dynamically allocated with the colors of the palette, including alpha.
405 When decoding, with the default settings you can ignore this palette, since
422 pixels with this key to transparent already in the raw RGBA output.
432 /*init, cleanup and copy functions to use with this struct*/
456 /*only returns true if there is a palette and there is a value in the palette with alpha < 255.
463 In detail, it returns true only if it's a color type with alpha, or has a palette with non-opaque v…
467 /*Returns the byte size of a raw image buffer with given width, height and color mode*/
495 with values truncated to the bit depth in the unsigned integer.
505 When encoding with auto_convert, you must use the color model defined in info_png.color for
511 write the PNG with a more expensive color mode (when auto_convert is on).
547 Similar to the non-international text chunks, but with additional strings
574 use these values with a color management library.
609 …For encoding, if iCCP is present, gAMA and cHRM are recommended to be added as well with values th…
624 char * iccp_name; /* Null terminated string with profile name, 1-79 bytes */
644 Decoders using this value, if able to work with data that's e.g. 10-bit or 12-bit, should right
646 sbit and work e.g. with the 8-bit or 16-bit data from the PNG directly, since thanks
650 type RGBA or grayscale+alpha, sbit_a is not used (it's not used even for palette images with
651 translucent palette values, or images with color key). The values that are used must be
655 decoding with a color mode conversion, such as always decoding to RGBA, this metadata still
657 if the PNG was RGB. When encoding with auto_convert (as well as without), also always the
662 strict requirements for the allowed sbit values in combination with color modes.
683 … For encoding, do not store critical chunks or known chunks that are enabled with a "_defined" flag
685 (such as one with two IHDR chunks or the disallowed combination of sRGB with iCCP). But do use
697 /*init, cleanup and copy functions to use with this struct*/
743 …/* TODO: make a system involving warnings with levels and a strict mode instead. Other potentially…
772 /*automatically use color type with less bits per pixel if losslessly possible. Default: AUTO*/
838 /*used if filter_strategy is LFS_PREDEFINED. In that case, this must point to a buffer with
877 /*init, cleanup and copy functions to use with this struct*/
905 Use lodepng_inspect first with a new state, then e.g. lodepng_chunk_find_const
906 to find the desired chunk type, and if non null use lodepng_inspect_chunk (with
918 /*This function allocates the out buffer with standard malloc and stores the size in *outsize.*/
939 exists out of concatenated chunks with the above format.
994 /*Finds the first chunk with the given type in the range [chunk, end), or returns NULL if not found…
1047 Compresses data with Zlib. Reallocates the out buffer and appends the data.
1064 /*Compress a buffer with deflate. See RFC 1951. Out buffer must be freed after use.*/
1182 [.] check compatibility with various compilers - done but needs to be redone for every newer versi…
1186 [ ] make sure encoder generates no chunks with size > (2^31)-1
1192 [ ] error messages with line numbers (and version)
1242 PNG is a file format to store raster images losslessly with good compression,
1260 LodePNG works both in C (ISO C90) and C++, with a C++ wrapper that adds
1273 on any external library. There are functions to decode and encode a PNG with
1290 *) decoding of PNGs with any color type, bit depth and interlace mode, to a 24- or 32-bit color raw…
1333 The C version uses buffers allocated with alloc that you need to free()
1337 The C++ version has extra functions with std::vectors in the interface and the
1338 lodepng::State class which is a LodePNGState with constructor and destructor.
1342 ignore it, and the C code is made to compile both with strict ISO C90 and C++.
1345 (instead of lodepng.c), and compile it with a C++ compiler.
1348 of lodepng.cpp), and compile it with a C compiler.
1357 When using LodePNG, care has to be taken with the C version of LodePNG, as well
1358 as the C-style structs when working with C++. The following conventions are used
1373 above. For C, simple decoding can be done with functions such as
1374 lodepng_decode32, and more advanced decoding can be done with the struct
1375 LodePNGState and lodepng_decode. For C++, all decoding can be done with the
1402 a palette with missing colors.
1424 above. For C, simple encoding can be done with functions such as
1425 lodepng_encode32, and more advanced decoding can be done with the struct
1426 LodePNGState and lodepng_encode. For C++, all encoding can be done with the
1453 When encoding to a PNG with colortype 3, the encoder will generate a PLTE chunk.
1465 format with 4 bytes (unsigned chars) per pixel.
1497 no matter whether the PNG was encoded with a palette, grayscale or RGBA color.
1532 4: grayscale with alpha, bit depths 8 and 16
1602 -In the encoder, you can make it save a PNG with any color type by giving the
1616 will NOT have these padding bits, e.g. in the case of a 1-bit image with a width
1635 endian output of LodePNG to little endian with a for loop. This is certainly not
1647 The meaning of the LodePNG error values can be retrieved with the function
1665 then that's possible with the chunk functions of LodePNG.
1719 Iterate to the next chunk. This works if you have a buffer with consecutive chunks. Note that these
1729 function creates a new chunk with the given parameters and appends it. Type is the 4-letter
1735 The LodePNGInfo struct contains fields with the unknown chunk in it. It has 3
1736 buffers (each with size) to contain 3 types of unknown chunks:
1772 It is compatible with C90 and up, and C++03 and up.
1777 Make sure that LodePNG is compiled with the same compiler of the same version
1778 and with the same settings as the rest of the program, or the interfaces with
1786 warnings with compiler options "-Wall -Wextra -pedantic -ansi", with gcc and g++
1800 LodePNG should be warning-free with warning level W4. Two warnings were disabled
1801 with pragmas though: warning 4244 about implicit conversions, and warning 4996
1816 LodePNG has been reported to work both with gcc and LLVM for Macintosh, both for
1906 state.encoder.filter_strategy: PNG filter strategy to encode with
1925 Some changes aren't backwards compatible. Those are indicated with a (!)
1931 *) 10 apr 2023: faster CRC32 implementation, but with larger lookup table.
1947 *) 19 aug 2018: (!) fixed color mode bKGD is encoded with and made it use
1959 *) 24 okt 2015: Bugfix with decoding to palette output.
1967 *) 15 apr 2013: Fixed bug with LAC_ALPHA and color key.
1969 *) 11 mar 2013: (!) Bugfix with custom free. Changed from "my" to "lodepng_"
1970 prefix for the custom allocators and made it possible with a new #define to
1972 *) 28 jan 2013: Bugfix with color key.
1979 and made it work with function pointers instead.
1993 A bug with the PNG filtertype heuristic was fixed, so that it chooses much
1999 *) 21 feb 2011: fixed compiling for C90. Fixed compiling with sections disabled.
2015 *) 06 mar 2008: crash with encoding of strings fixed
2032 *) 08 jun 2007: fixed bug with 2- and 4-bit color, and small interlaced images
2033 *) 04 jun 2007: improved support for Visual Studio 2005: crash with accessing
2035 *) 02 jun 2007: made the encoder add a tag with version by default
2044 palettized PNG images. Plus little interface change with palette and texts.
2045 *) 03 mar 2007: Made it encode dynamic Huffman shorter with repeat codes.
2047 *) 26 feb 2007: Huffman compression with dynamic trees (BTYPE 2) now implemented
2051 greyscale type to 8-bit greyscale with or without alpha.
2057 *) 01 jan 2007: Fixed bug with encoding PNGs with less than 8 bits per channel.
2064 Fixed a bug of the decoder with 16-bit per color.
2068 *) 08 sep 2006: (!) Changed to interface with a Decoder class
2081 happened on PNGs with an uncompressed block.
2095 Feel free to contact me with suggestions, problems, comments, ... concerning
2096 LodePNG. If you encounter a PNG image that doesn't work properly with this
2099 My email address is (puzzle the account and domain together with an @ symbol):