Searched refs:WebPSafeMalloc (Results 1 - 14 of 14) sorted by relevance

/external/webp/src/utils/
H A Dutils.h33 void* WebPSafeMalloc(uint64_t nmemb, size_t size);
H A Dutils.c30 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { function
H A Dhuffman.c53 tree->root_ = (HuffmanTreeNode*)WebPSafeMalloc((uint64_t)tree->max_nodes_,
178 (int*)WebPSafeMalloc((uint64_t)code_lengths_size, sizeof(*codes));
H A Dhuffman_encode.c200 tree = (HuffmanTree*)WebPSafeMalloc(3ULL * tree_size_orig, sizeof(*tree));
/external/webp/src/enc/
H A Dbackward_references.c98 refs->refs = (PixOrCopy*)WebPSafeMalloc((uint64_t)max_size,
116 p->chain_ = (int*)WebPSafeMalloc((uint64_t)size, sizeof(*p->chain_));
463 (double*)WebPSafeMalloc((uint64_t)pix_count, sizeof(*cost));
591 (uint32_t*)WebPSafeMalloc((uint64_t)count, sizeof(**chosen_path));
685 (uint32_t*)WebPSafeMalloc((uint64_t)dist_array_size, sizeof(*dist_array));
H A Dpicture.c91 mem = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*mem));
127 memory = WebPSafeMalloc(argb_size, sizeof(*picture->argb));
416 work = (int32_t*)WebPSafeMalloc(2ULL * width, sizeof(*work));
449 work = (int32_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work));
490 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1);
499 // down-cast is ok, thanks to WebPSafeMalloc
H A Dvp8l.c308 (HuffmanTreeToken*)WebPSafeMalloc((uint64_t)max_tokens, sizeof(*tokens));
528 (uint16_t*)WebPSafeMalloc((uint64_t)histogram_image_xysize,
568 (uint32_t*)WebPSafeMalloc((uint64_t)histogram_image_xysize,
794 uint32_t* mem = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*mem));
H A Dwebpenc.c203 mem = (uint8_t*)WebPSafeMalloc(size, sizeof(*mem));
H A Danalysis.c39 uint8_t* const tmp = (uint8_t*)WebPSafeMalloc((uint64_t)w * h, sizeof(*tmp));
H A Dhistogram.c61 uint8_t* memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory));
/external/webp/src/dec/
H A Dbuffer.c104 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output));
H A Dvp8l.c808 (uint32_t*)WebPSafeMalloc((uint64_t)final_num_colors,
1003 data = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*data));
1053 dec->argb_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, sizeof(*dec->argb_));
H A Dframe.c439 dec->mem_ = WebPSafeMalloc(needed, sizeof(uint8_t));
H A Didec.c150 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf));

Completed in 121 milliseconds