Searched refs:WebPSafeMalloc (Results 1 – 20 of 20) sorted by relevance
/external/webp/src/enc/ |
D | picture.c | 78 memory = WebPSafeMalloc(argb_size, sizeof(*picture->argb)); in WebPPictureAllocARGB() 124 mem = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*mem)); in WebPPictureAllocYUVA() 198 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1); in WebPMemoryWrite()
|
D | vp8l.c | 232 buf_rle = (uint8_t*)WebPSafeMalloc(1ULL, max_num_symbols); in GetHuffBitLengthsAndCodes() 233 huff_tree = (HuffmanTree*)WebPSafeMalloc(3ULL * max_num_symbols, in GetHuffBitLengthsAndCodes() 495 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageNoHuffman() 530 tokens = (HuffmanTreeToken*)WebPSafeMalloc(max_tokens, sizeof(*tokens)); in EncodeImageNoHuffman() 578 (uint16_t*)WebPSafeMalloc(histogram_image_xysize, in EncodeImageInternal() 631 (uint32_t*)WebPSafeMalloc(histogram_image_xysize, in EncodeImageInternal() 659 huff_tree = (HuffmanTree*)WebPSafeMalloc(3ULL * CODE_LENGTH_CODES, in EncodeImageInternal() 669 tokens = (HuffmanTreeToken*)WebPSafeMalloc(max_tokens, in EncodeImageInternal() 860 uint32_t* mem = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*mem)); in AllocateTransformBuffer() 958 row = (uint8_t*)WebPSafeMalloc(width, sizeof(*row)); in EncodePalette()
|
D | backward_references.c | 135 b = (PixOrCopyBlock*)WebPSafeMalloc(1ULL, total_size); in BackwardRefsNewBlock() 196 p->chain_ = (int*)WebPSafeMalloc(size, sizeof(*p->chain_)); in VP8LHashChainInit() 570 (float*)WebPSafeMalloc(pix_count, sizeof(*cost)); in BackwardReferencesHashChainDistanceOnly() 571 CostModel* cost_model = (CostModel*)WebPSafeMalloc(1ULL, sizeof(*cost_model)); in BackwardReferencesHashChainDistanceOnly() 786 (uint32_t*)WebPSafeMalloc(dist_array_size, sizeof(*dist_array)); in BackwardReferencesTraceBackwards()
|
D | picture_rescale.c | 234 work = (int32_t*)WebPSafeMalloc(2ULL * width, sizeof(*work)); in WebPPictureRescale() 262 work = (int32_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work)); in WebPPictureRescale()
|
D | alpha.c | 254 uint8_t* filtered_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in ApplyFiltersAndEncode() 321 quant_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in EncodeAlpha()
|
D | token.c | 70 page = (VP8Tokens*)WebPSafeMalloc(1ULL, size); in TBufferNewPage()
|
D | histogram.c | 92 uint8_t* const memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory)); in VP8LAllocateHistogram() 107 uint8_t* memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory)); in VP8LAllocateHistogramSet()
|
D | webpenc.c | 189 mem = (uint8_t*)WebPSafeMalloc(size, sizeof(*mem)); in InitVP8Encoder()
|
D | analysis.c | 33 uint8_t* const tmp = (uint8_t*)WebPSafeMalloc(w * h, sizeof(*tmp)); in SmoothSegmentMap()
|
D | picture_csp.c | 454 #define SAFE_ALLOC(W, H, T) ((T*)WebPSafeMalloc((W) * (H), sizeof(T)))
|
/external/webp/src/utils/ |
D | utils.h | 38 WEBP_EXTERN(void*) WebPSafeMalloc(uint64_t nmemb, size_t size);
|
D | bit_writer.c | 40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize() 225 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
|
D | utils.c | 183 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() function
|
D | huffman.c | 61 (HuffmanTreeNode*)WebPSafeMalloc(num_nodes, sizeof(*tree->root_)); in HuffmanTreeAllocate()
|
D | quant_levels_dec.c | 219 uint8_t* mem = (uint8_t*)WebPSafeMalloc(1U, total_size); in InitParams()
|
/external/webp/src/dec/ |
D | vp8l.c | 345 (int*)WebPSafeMalloc((uint64_t)max_alphabet_size, sizeof(*huff_codes)); in ReadHuffmanCodes() 956 (uint32_t*)WebPSafeMalloc((uint64_t)final_num_colors, in ExpandColorMap() 1154 data = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*data)); in DecodeImageStream() 1205 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, sizeof(uint32_t)); in AllocateInternalBuffers32b() 1218 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, sizeof(uint8_t)); in AllocateInternalBuffers8b()
|
D | buffer.c | 107 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
|
D | idec.c | 181 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf)); in AppendToMemBuffer() 374 uint8_t* const part0_buf = (uint8_t*)WebPSafeMalloc(1ULL, part_size); in CopyParts0Data()
|
D | io.c | 576 p->memory = WebPSafeMalloc(1ULL, (size_t)(io->mb_w + 2 * uv_width)); in CustomSetup()
|
D | frame.c | 564 dec->mem_ = WebPSafeMalloc(needed, sizeof(uint8_t)); in AllocateMemory()
|