Lines Matching full:or

6 This software is provided 'as-is', without any express or implied
22 3. This notice may not be removed or altered from any source
43 -DLODEPNG_NO_COMPILE_ZLIB for gcc or clang.
48 …/*pass -DLODEPNG_NO_COMPILE_ZLIB to the compiler to disable this, or comment out LODEPNG_COMPILE_Z…
54 …/*pass -DLODEPNG_NO_COMPILE_PNG to the compiler to disable this, or comment out LODEPNG_COMPILE_PN…
60 …/*pass -DLODEPNG_NO_COMPILE_DECODER to the compiler to disable this, or comment out LODEPNG_COMPIL…
66 …/*pass -DLODEPNG_NO_COMPILE_ENCODER to the compiler to disable this, or comment out LODEPNG_COMPIL…
72 …/*pass -DLODEPNG_NO_COMPILE_DISK to the compiler to disable this, or comment out LODEPNG_COMPILE_D…
79 or comment out LODEPNG_COMPILE_ANCILLARY_CHUNKS below*/
86 or comment out LODEPNG_COMPILE_ERROR_TEXT below*/
95 or comment out LODEPNG_COMPILE_ALLOCATORS below*/
106 or comment out LODEPNG_COMPILE_CRC below*/
114 or comment out LODEPNG_COMPILE_CPP below*/
134 not use, compare with or set the name LCT_MAX_OCTET_VALUE, instead either use
135 the valid color type names above, or numeric values like 1 or 7 when checking for
136 particular disallowed color type byte values, or cast to integer to print it.*/
359 …unsigned btype; /*the block type for LZ (0, 1, 2 or 3, see zlib standard). Should be 2 for proper …
360 unsigned use_lz77; /*whether or not to use LZ77. Should be 1 for proper compression.*/
392 …LodePNGColorType colortype; /*color type, see PNG standard or documentation further in this header…
393 …unsigned bitdepth; /*bits per sample, see PNG standard or documentation further in this header fi…
412 …unsigned char * palette; /*palette in RGBARGBA... order. Must be either 0, or when allocated must …
450 /*is it a grayscale type? (only colortype 0 or 4)*/
452 /*has it got an alpha channel? (only colortype 2 or 6)*/
461 Returns true if the image can have translucent or invisible pixels (it still be opaque if it doesn'…
463 In detail, it returns true only if it's a color type with alpha, or has a palette with non-opaque v…
464 or if "key_defined" is true.
510 when the image is gray, or the compression will be worse since it will be forced to
526 the actual text represents, e.g. Title, Author, Description, or anything else.
567 unsigned phys_unit; /*may be 0 (unknown unit) or 1 (metre)*/
572 …LodePNG does not apply any color conversions on pixels in the encoder or decoder and does not inte…
579 /* gAMA chunk: optional, overridden by sRGB or iCCP if those are present. */
583 /* cHRM chunk: optional, overridden by sRGB or iCCP if those are present. */
605 …LodePNG does not parse or use the ICC profile (except its color space header field for an edge cas…
617 …error if the pixel data has non-gray pixels for a GRAY profile, or a silent less-optimal compressi…
636 …d, these values give the bit depth of the original data. Since PNG only stores 1, 2, 4, 8 or 16-bit
638 sample depth, such as 10 or 12.
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
652 greater than zero and smaller than or equal to the PNG bit depth.
667 unsigned sbit_r; /*red or gray component of significant bits*/
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
686 …this if you wish to store an ancillary chunk that is not supported by LodePNG (such as sPLT or hIS…
687 or any non-standard PNG chunk.
689 Do not allocate or traverse this data yourself. Use the chunk traversing functions declared
757 …unless reading text chunks is disabled or this limit is set higher or disabled. Set to 0 to allow …
776 /*every filter at 1, 2, 3 or 4 (paeth), unlike LFS_ZERO not a good choice, but for testing*/
784 on the image, this is better or worse than minsum.*/
804 unsigned alpha; /*image is not opaque and alpha channel or alpha palette required*/
805 …unsigned numcolors; /*amount of colors, up to 257. Not valid if bits == 16 or allow_palette is dis…
808 …unsigned bits; /*bits per channel (not for palette). 1,2 or 4 for grayscale only. 16 if 16-bit per…
813 …unsigned allow_greyscale; /*default 1. if 0, choose RGB or RGBA even if the image only has gray co…
819 Returns error code (e.g. alloc fail) or 0 if ok.*/
830 /*If true, follows the official PNG heuristic: if the PNG uses a palette or lower than
841 must be set to 0 to ensure this is also used on palette or low bitdepth images.*/
844 /*force creating a PLTE chunk if colortype is 2 or 6 (= a suggested palette).
846 to a grayscale type (1 or 4), this is not done and is ignored. If enabling this,
909 Ignores unsupported, unknown, non-metadata or IHDR chunks (without error).
912 there is a PLTE chunk, that one must be inspected before tRNS or bKGD.
926 unknown chunks stored in the LodePNGInfo struct, or add new ones to it.
983 or the 8th byte of a PNG file which always has the first chunk), or alternatively may
986 Will output pointer to the start of the next chunk, or at or beyond end of the file if there
987 is no more chunk after this or possibly if the chunk is corrupt.
994 /*Finds the first chunk with the given type in the range [chunk, end), or returns NULL if not found…
1037 Either, *out must be NULL and *outsize must be 0, or, *out must be a valid
1050 Either, *out must be NULL and *outsize must be 0, or, *out must be a valid
1181 [.] test if there are no memory leaks or security exploits - done a lot but needs to be checked oft…
1194 [ ] new errors/warnings like suspiciously big decompressed ztxt or iccp chunk
1196 …o provide custom color conversion functions, e.g. for premultiplied alpha, padding bits or not, ...
1265 -lodepng.c(pp): give it the name lodepng.c or lodepng.cpp (or .cc) depending on your usage
1268 examples from the LodePNG website to see how to use it in code, or check the
1275 LodePNGState struct allowing to specify or get more information. By default
1276 the colors of the raw image are always RGB or RGBA, no matter what color type
1290 *) decoding of PNGs with any color type, bit depth and interlace mode, to a 24- or 32-bit color raw…
1291 or the same color type as the PNG
1292 *) encoding of PNGs, from any raw image to 24- or 32-bit color, or the same color type as the raw i…
1294 *) loading the image from harddisk or decoding it from a buffer from other sources than harddisk
1401 always works, except if you want it to convert a color PNG to grayscale or to
1477 *) use_lz77: whether or not to use LZ77 for compressed block types. Should be
1481 *) force_palette: if colortype is 2 or 6, you can make the encoder write a PLTE
1488 It's all tEXt or all zTXt though, there's no separate setting per text yet.
1497 no matter whether the PNG was encoded with a palette, grayscale or RGBA color.
1512 By default, when decoding, you get the raw image in 32-bit RGBA or 24-bit RGB
1515 the input image to be 32-bit RGBA or 24-bit RGB. So, unless you want to control
1547 or the parameters colortype and bitdepth of the simple decoding function.
1551 of the raw image, or use the parameters colortype and bitdepth of the simple
1560 If the input and output color type differ (whether user chosen or auto chosen),
1596 -any gray or gray+alpha, to gray or gray+alpha
1601 If you want no color conversion to be done (e.g. for speed or control):
1645 OK, or a non-zero code if there was an error.
1656 only 0 or non-0 matter.
1662 If you want to add extra chunks to a PNG you encode, or use LodePNG for a PNG
1663 editor that should follow the rules about handling of unknown chunks, or if your
1694 Get the type of the chunk or compare if it's a certain type
1714 Check if the crc is correct or generate a correct one.
1756 use lodepng_chunk_append or lodepng_chunk_create to the chunk data in
1778 and with the same settings as the rest of the program, or the interfaces with
1781 CHAR_BITS must be 8 or higher, because LodePNG uses unsigned chars for octets.
1832 external method to handle such files and encode or decode in-memory
2051 greyscale type to 8-bit greyscale with or without alpha.
2056 at last made the decoder give errors for incorrect Adler32 or Crc.