Lines Matching refs:lodepng_malloc
61 static void* lodepng_malloc(size_t size) in lodepng_malloc() function
76 void* lodepng_malloc(size_t size);
368 *out = (unsigned char*)lodepng_malloc((size_t)size); in lodepng_load_file()
529 tree->tree2d = (unsigned*)lodepng_malloc(tree->numcodes * 2 * sizeof(unsigned)); in HuffmanTree_make2DTree()
596 tree->tree1d = (unsigned*)lodepng_malloc(tree->numcodes * sizeof(unsigned)); in HuffmanTree_makeFromLengths2()
635 tree->lengths = (unsigned*)lodepng_malloc(numcodes * sizeof(unsigned)); in HuffmanTree_makeFromLengths()
765 coins = (Coin*)lodepng_malloc(sizeof(Coin) * coinmem); in lodepng_huffman_code_lengths()
766 prev_row = (Coin*)lodepng_malloc(sizeof(Coin) * coinmem); in lodepng_huffman_code_lengths()
866 unsigned* bitlen = (unsigned*)lodepng_malloc(NUM_DEFLATE_CODE_SYMBOLS * sizeof(unsigned)); in generateFixedLitLenTree()
885 unsigned* bitlen = (unsigned*)lodepng_malloc(NUM_DISTANCE_SYMBOLS * sizeof(unsigned)); in generateFixedDistanceTree()
968 bitlen_cl = (unsigned*)lodepng_malloc(NUM_CODE_LENGTH_CODES * sizeof(unsigned)); in getTreeInflateDynamic()
981 bitlen_ll = (unsigned*)lodepng_malloc(NUM_DEFLATE_CODE_SYMBOLS * sizeof(unsigned)); in getTreeInflateDynamic()
982 bitlen_d = (unsigned*)lodepng_malloc(NUM_DISTANCE_SYMBOLS * sizeof(unsigned)); in getTreeInflateDynamic()
1363 hash->head = (int*)lodepng_malloc(sizeof(int) * HASH_NUM_VALUES); in hash_init()
1364 hash->val = (int*)lodepng_malloc(sizeof(int) * windowsize); in hash_init()
1365 hash->chain = (unsigned short*)lodepng_malloc(sizeof(unsigned short) * windowsize); in hash_init()
1366 hash->zeros = (unsigned short*)lodepng_malloc(sizeof(unsigned short) * windowsize); in hash_init()
2546 dest->palette = (unsigned char*)lodepng_malloc(1024); in lodepng_color_mode_copy()
2679 dest->unknown_chunks_data[i] = (unsigned char*)lodepng_malloc(src->unknown_chunks_size[i]); in LodePNGUnknownChunks_copy()
2973 tree->children[i] = (ColorTree*)lodepng_malloc(sizeof(ColorTree)); in color_tree_add()
3503 profile->palette = (unsigned char*)lodepng_malloc(1024); in color_profile_init()
4259 color->palette = (unsigned char*)lodepng_malloc(4 * color->palettesize); in readChunk_PLTE()
4364 key = (char*)lodepng_malloc(length + 1); in readChunk_tEXt()
4373 str = (char*)lodepng_malloc(length + 1); in readChunk_tEXt()
4409 key = (char*)lodepng_malloc(length + 1); in readChunk_zTXt()
4462 key = (char*)lodepng_malloc(length + 1); in readChunk_iTXt()
4480 langtag = (char*)lodepng_malloc(length + 1); in readChunk_iTXt()
4491 transkey = (char*)lodepng_malloc(length + 1); in readChunk_iTXt()
4770 *out = (unsigned char*)lodepng_malloc(outsize); in lodepng_decode()
5126 unsigned char* data = (unsigned char*)lodepng_malloc(7); in addChunk_tIME()
5550 *out = (unsigned char*)lodepng_malloc(*outsize); in preProcessScanlines()
5558 unsigned char* padded = (unsigned char*)lodepng_malloc(h * ((w * bpp + 7) / 8)); in preProcessScanlines()
5583 *out = (unsigned char*)lodepng_malloc(*outsize); in preProcessScanlines()
5586 adam7 = (unsigned char*)lodepng_malloc(passstart[7]); in preProcessScanlines()
5598 …unsigned char* padded = (unsigned char*)lodepng_malloc(padded_passstart[i + 1] - padded_passstart[… in preProcessScanlines()
5711 converted = (unsigned char*)lodepng_malloc(size); in lodepng_encode()