Home
last modified time | relevance | path

Searched refs:WebPSafeMalloc (Results 1 – 20 of 20) sorted by relevance

/external/webp/src/enc/
Dpicture.c78 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()
Dvp8l.c232 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()
Dbackward_references.c135 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()
Dpicture_rescale.c234 work = (int32_t*)WebPSafeMalloc(2ULL * width, sizeof(*work)); in WebPPictureRescale()
262 work = (int32_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work)); in WebPPictureRescale()
Dalpha.c254 uint8_t* filtered_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in ApplyFiltersAndEncode()
321 quant_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in EncodeAlpha()
Dtoken.c70 page = (VP8Tokens*)WebPSafeMalloc(1ULL, size); in TBufferNewPage()
Dhistogram.c92 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()
Dwebpenc.c189 mem = (uint8_t*)WebPSafeMalloc(size, sizeof(*mem)); in InitVP8Encoder()
Danalysis.c33 uint8_t* const tmp = (uint8_t*)WebPSafeMalloc(w * h, sizeof(*tmp)); in SmoothSegmentMap()
Dpicture_csp.c454 #define SAFE_ALLOC(W, H, T) ((T*)WebPSafeMalloc((W) * (H), sizeof(T)))
/external/webp/src/utils/
Dutils.h38 WEBP_EXTERN(void*) WebPSafeMalloc(uint64_t nmemb, size_t size);
Dbit_writer.c40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize()
225 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
Dutils.c183 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() function
Dhuffman.c61 (HuffmanTreeNode*)WebPSafeMalloc(num_nodes, sizeof(*tree->root_)); in HuffmanTreeAllocate()
Dquant_levels_dec.c219 uint8_t* mem = (uint8_t*)WebPSafeMalloc(1U, total_size); in InitParams()
/external/webp/src/dec/
Dvp8l.c345 (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()
Dbuffer.c107 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
Didec.c181 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf)); in AppendToMemBuffer()
374 uint8_t* const part0_buf = (uint8_t*)WebPSafeMalloc(1ULL, part_size); in CopyParts0Data()
Dio.c576 p->memory = WebPSafeMalloc(1ULL, (size_t)(io->mb_w + 2 * uv_width)); in CustomSetup()
Dframe.c564 dec->mem_ = WebPSafeMalloc(needed, sizeof(uint8_t)); in AllocateMemory()