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
28 Rename this file to lodepng.cpp to use it for C++, or to lodepng.c to use it for C.
67 -DLODEPNG_NO_COMPILE_ALLOCATORS to the compiler, or comment out
206 -All of them wrap dynamic arrays or text strings in a similar way.
477 Ensures the reader can at least read nbits bits in one or more readBits calls,
662 …unsigned char* table_len; /*length of symbol from lookup table, or max length if secondary lookup …
663 …unsigned short* table_value; /*value of symbol from lookup table, or pointer to secondary table if…
685 which is possible in case of only 0 or 1 present symbols. */
734 /*fill in the first table for short symbols, or secondary table for long symbols*/ in HuffmanTree_makeTable()
1131 …/*make sure that length values that aren't filled in will be 0, or a wrong tree will be generated*/ in getTreeInflateDynamic()
1142 if(!ensureBits17(reader, 14)) return 49; /*error: the bit pointer is or will go past the memory*/ in getTreeInflateDynamic()
1159 ERROR_BREAK(50); /*error: the bit pointer is or will go past the memory*/ in getTreeInflateDynamic()
1235 /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol in getTreeInflateDynamic()
1261 /*inflate a block with dynamic of fixed Huffman tree. btype must be 1 or 2.*/
1275 /*code_ll is literal, length or end code*/ in inflateHuffmanBlock()
1339 /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol in inflateHuffmanBlock()
1404 …nflateHuffmanBlock(out, &reader, BTYPE, settings->max_output_size); /*compression, BTYPE 01 or 10*/ in lodepng_inflatev()
1449 /*search the index in the array, that has the largest value smaller than or equal to the given valu…
1585 is in the form of unsigned integers with codes representing for example literal bytes, or
1601 …unsigned usezeros = 1; /*not sure if setting it to false for windowsize < 8192 is better or worse*/ in encodeLZ77()
1712 … if(length >= 3 && offset > windowsize) ERROR_BREAK(86 /*too big (or overflown negative) offset*/); in encodeLZ77()
1714 /*encode it as length/distance pair or literal value*/ in encodeLZ77()
1715 if(length < 3) /*only lengths of 3 or higher are supported as length/distance pair*/ { in encodeLZ77()
1983 or in the loop for numcodes_cl above, which saves space. */ in deflateDynamic()
2291 /* compress using the default or custom zlib function */
2455 /*the current bit in bitstream may be 0 or 1 for this to work*/ in setBitOfReversedStream()
2587 set data or crc yet. Returns the start of the chunk in chunk. The start of
2774 return (info->colortype & 4) != 0; /*4 or 6*/ in lodepng_is_alpha_type()
2834 …if(lodepng_mulofl(numpixels, 8, &total)) return 1; /* bit pointer with 8-bit color, or 8 bytes per… in lodepng_pixel_overflow()
3094 /*index: bitgroup index, bits: bitgroup size(1, 2 or 4), in: bitgroup value, out: octet array to ad…
3097 …/*p = the partial index in the byte, e.g. with 4 palettebits it is 0 for first half or 1 for secon… in addColorBits()
3152 Returns error code, or 0 if ok*/
3603 their bitdepth. In case of single channel (gray or palette), only the r channel is used. Slow
3954 } else /*8-bit or 16-bit per channel*/ { in auto_choose_color()
4005 "padded" is only relevant if bpp is less than 8 and a scanline or image does not
4070 /*TODO: remove the undocumented feature that allows to give null pointers to width or height*/ in lodepng_inspect()
4083 /*error: invalid colortype or bitdepth combination*/ in lodepng_inspect()
4206 w and h are image dimensions or dimensions of reduced image, bpp is bits per pixel in unfilter()
4337 move bytes instead of bits or move not at all*/ in postProcessScanlines()
4355 …if(color->palettesize == 0 || color->palettesize > 256) return 38; /*error: palette too small or b… in readChunk_PLTE()
4407 /*error: invalid palette index, or maybe this chunk appeared before PLTE*/ in readChunk_bKGD()
4445 if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ in readChunk_tEXt()
4489 if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ in readChunk_zTXt()
4540 if(length < 1 || length > 79) CERROR_BREAK(error, 89); /*keyword too short or long*/ in readChunk_iTXt()
4681 if(length < 1 || length > 79) return 89; /*keyword too short or long*/ in readChunk_iCCP()
4961 /*same color type, no copying or converting of data needed*/ in lodepng_decode()
4973 from grayscale input color type, to 8-bit grayscale or grayscale with alpha"*/ in lodepng_decode()
5120 /* only adds the chunk if needed (there is a key or palette with alpha) */
5468 …* If the image type is Palette, or the bit depth is smaller than 8, then do not filter the image … in filter()
5470 …* (The other case) If the image type is Grayscale or RGB (with or without Alpha), and the bit dept… in filter()
5524 … /*check if this is smallest sum (or if type == 0 it's the first case so always store the values)*/ in filter()
5563 … /*check if this is smallest sum (or if type == 0 it's the first case so always store the values)*/ in filter()
5623 …/*check if this is smallest size (or if type == 0 it's the first case so always store the values)*/ in filter()
5905 /*Not allowed to use RGB/RGBA/palette with GRAY ICC profile or vice versa, in lodepng_encode()
5906 or in case of auto_convert, it wasn't possible to find appropriate model*/ in lodepng_encode()
6005 /*tEXt and/or zTXt*/ in lodepng_encode()
6028 …/* Could use strcmp, but we're not calling or reimplementing this C library function for this use … in lodepng_encode()
6151 /*this error could happen if there are only 0 or 1 symbols present in the huffman code:*/ in lodepng_error_text()
6170 case 28: return "incorrect PNG signature, it's no PNG or corrupted"; in lodepng_error_text()
6173 case 31: return "illegal PNG color type or bpp"; in lodepng_error_text()
6177 case 35: return "chunk length of a chunk is too large or the chunk too small"; in lodepng_error_text()
6180 case 38: return "the palette is too small or too big"; /*0, or more than 256 colors*/ in lodepng_error_text()
6181 case 39: return "tRNS chunk before PLTE or has more entries than palette size"; in lodepng_error_text()
6199 case 56: return "given output image colortype or bitdepth not supported for color conversion"; in lodepng_error_text()
6213 …case 68: return "tried to encode a PLTE chunk with a palette that has less than 1 or more than 256… in lodepng_error_text()
6215 case 71: return "invalid interlace mode given to encoder (must be 0 or 1)"; in lodepng_error_text()
6216 …case 72: return "while decoding, invalid compression method encountering in zTXt or iTXt chunk (it… in lodepng_error_text()
6219 /*length could be wrong, or data chopped off*/ in lodepng_error_text()
6223 …case 78: return "failed to open file for reading"; /*file doesn't exist or couldn't be opened for … in lodepng_error_text()
6227 …case 82: return "color conversion to palette requested while a color isn't in palette, or index ou… in lodepng_error_text()
6233 case 89: return "text chunk keyword too short or long: must have size 1-79"; in lodepng_error_text()
6238 case 93: return "zero width or height is invalid"; in lodepng_error_text()
6245 … case 100: return "invalid ICC profile color type, the PNG specification only allows RGB or GRAY"; in lodepng_error_text()
6255 case 109: return "tried to decompress zlib or deflate data larger than desired max_output_size"; in lodepng_error_text()
6256 case 110: return "custom zlib or inflate decompression failed"; in lodepng_error_text()
6257 case 111: return "custom zlib or deflate compression failed"; in lodepng_error_text()