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
109 not use, compare with or set the name LCT_MAX_OCTET_VALUE, instead either use
110 the valid color type names above, or numeric values like 1 or 7 when checking for
111 particular disallowed color type byte values, or cast to integer to print it.*/
309 …unsigned btype; /*the block type for LZ (0, 1, 2 or 3, see zlib standard). Should be 2 for proper …
310 unsigned use_lz77; /*whether or not to use LZ77. Should be 1 for proper compression.*/
342 …LodePNGColorType colortype; /*color type, see PNG standard or documentation further in this header…
343 …unsigned bitdepth; /*bits per sample, see PNG standard or documentation further in this header fi…
360 …unsigned char* palette; /*palette in RGBARGBA... order. Must be either 0, or when allocated must h…
398 /*is it a grayscale type? (only colortype 0 or 4)*/
400 /*has it got an alpha channel? (only colortype 2 or 6)*/
409 Returns true if the image can have translucent or invisible pixels (it still be opaque if it doesn'…
411 In detail, it returns true only if it's a color type with alpha, or has a palette with non-opaque v…
412 or if "key_defined" is true.
456 when the image is gray, or the compression will be worse since it will be forced to
472 the actual text represents, e.g. Title, Author, Description, or anything else.
513 unsigned phys_unit; /*may be 0 (unknown unit) or 1 (metre)*/
518 …LodePNG does not apply any color conversions on pixels in the encoder or decoder and does not inte…
525 /* gAMA chunk: optional, overridden by sRGB or iCCP if those are present. */
529 /* cHRM chunk: optional, overridden by sRGB or iCCP if those are present. */
551 …LodePNG does not parse or use the ICC profile (except its color space header field for an edge cas…
563 …error if the pixel data has non-gray pixels for a GRAY profile, or a silent less-optimal compressi…
590 For encoding, do not store critical chunks or known chunks that are enabled with a "_defined" flag
592 (such as one with two IHDR chunks or the disallowed combination of sRGB with iCCP). But do use
593 …this if you wish to store an ancillary chunk that is not supported by LodePNG (such as sPLT or hIS…
594 or any non-standard PNG chunk.
596 Do not allocate or traverse this data yourself. Use the chunk traversing functions declared
664 …unless reading text chunks is disabled or this limit is set higher or disabled. Set to 0 to allow …
683 /*every filter at 1, 2, 3 or 4 (paeth), unlike LFS_ZERO not a good choice, but for testing*/
691 on the image, this is better or worse than minsum.*/
711 unsigned alpha; /*image is not opaque and alpha channel or alpha palette required*/
712 …unsigned numcolors; /*amount of colors, up to 257. Not valid if bits == 16 or allow_palette is dis…
714 …unsigned bits; /*bits per channel (not for palette). 1,2 or 4 for grayscale only. 16 if 16-bit per…
719 …unsigned allow_greyscale; /*default 1. if 0, choose RGB or RGBA even if the image only has gray co…
725 Returns error code (e.g. alloc fail) or 0 if ok.*/
736 /*If true, follows the official PNG heuristic: if the PNG uses a palette or lower than
747 must be set to 0 to ensure this is also used on palette or low bitdepth images.*/
750 /*force creating a PLTE chunk if colortype is 2 or 6 (= a suggested palette).
811 Ignores unsupported, unknown, non-metadata or IHDR chunks (without error).
814 there is a PLTE chunk, that one must be inspected before tRNS or bKGD.
828 unknown chunks stored in the LodePNGInfo struct, or add new ones to it.
885 or the 8th byte of a PNG file which always has the first chunk), or alternatively may
888 Will output pointer to the start of the next chunk, or at or beyond end of the file if there
889 is no more chunk after this or possibly if the chunk is corrupt.
896 /*Finds the first chunk with the given type in the range [chunk, end), or returns NULL if not found…
938 Either, *out must be NULL and *outsize must be 0, or, *out must be a valid
951 Either, *out must be NULL and *outsize must be 0, or, *out must be a valid
1068 [.] test if there are no memory leaks or security exploits - done a lot but needs to be checked oft…
1081 [ ] new errors/warnings like suspiciously big decompressed ztxt or iccp chunk
1083 …o provide custom color conversion functions, e.g. for premultiplied alpha, padding bits or not, ...
1148 -lodepng.c(pp): give it the name lodepng.c or lodepng.cpp (or .cc) depending on your usage
1151 examples from the LodePNG website to see how to use it in code, or check the
1158 LodePNGState struct allowing to specify or get more information. By default
1159 the colors of the raw image are always RGB or RGBA, no matter what color type
1173 *) decoding of PNGs with any color type, bit depth and interlace mode, to a 24- or 32-bit color raw…
1174 or the same color type as the PNG
1175 *) encoding of PNGs, from any raw image to 24- or 32-bit color, or the same color type as the raw i…
1177 *) loading the image from harddisk or decoding it from a buffer from other sources than harddisk
1286 always works, except if you want it to convert a color PNG to grayscale or to
1362 *) use_lz77: whether or not to use LZ77 for compressed block types. Should be
1366 *) force_palette: if colortype is 2 or 6, you can make the encoder write a PLTE
1373 It's all tEXt or all zTXt though, there's no separate setting per text yet.
1382 no matter whether the PNG was encoded with a palette, grayscale or RGBA color.
1397 By default, when decoding, you get the raw image in 32-bit RGBA or 24-bit RGB
1400 the input image to be 32-bit RGBA or 24-bit RGB. So, unless you want to control
1432 or the parameters colortype and bitdepth of the simple decoding function.
1436 of the raw image, or use the parameters colortype and bitdepth of the simple
1445 If the input and output color type differ (whether user chosen or auto chosen),
1481 -any gray or gray+alpha, to gray or gray+alpha
1486 If you want no color conversion to be done (e.g. for speed or control):
1530 OK, or a non-zero code if there was an error.
1541 only 0 or non-0 matter.
1547 If you want to add extra chunks to a PNG you encode, or use LodePNG for a PNG
1548 editor that should follow the rules about handling of unknown chunks, or if your
1579 Get the type of the chunk or compare if it's a certain type
1599 Check if the crc is correct or generate a correct one.
1641 use lodepng_chunk_append or lodepng_chunk_create to the chunk data in
1663 and with the same settings as the rest of the program, or the interfaces with
1666 CHAR_BITS must be 8 or higher, because LodePNG uses unsigned chars for octets.
1927 greyscale type to 8-bit greyscale with or without alpha.
1932 at last made the decoder give errors for incorrect Adler32 or Crc.