Home
last modified time | relevance | path

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

12

/external/webp/src/enc/
Dpicture_enc.c79 memory = WebPSafeMalloc(argb_size + WEBP_ALIGN_CST, sizeof(*picture->argb)); in WebPPictureAllocARGB()
125 mem = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*mem)); in WebPPictureAllocYUVA()
199 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1); in WebPMemoryWrite()
Dbackward_references_cost_enc.c280 manager->cache_intervals_ = (CostCacheInterval*)WebPSafeMalloc( in CostManagerInit()
308 manager->costs_ = (float*)WebPSafeMalloc(pix_count, sizeof(*manager->costs_)); in CostManagerInit()
438 interval_new = (CostInterval*)WebPSafeMalloc(1, sizeof(*interval_new)); in InsertInterval()
580 (CostManager*)WebPSafeMalloc(1ULL, sizeof(*cost_manager)); in BackwardReferencesHashChainDistanceOnly()
772 (uint16_t*)WebPSafeMalloc(dist_array_size, sizeof(*dist_array)); in VP8LBackwardReferencesTraceBackwards()
Dvp8l_enc.c497 buf_rle = (uint8_t*)WebPSafeMalloc(1ULL, max_num_symbols); in GetHuffBitLengthsAndCodes()
498 huff_tree = (HuffmanTree*)WebPSafeMalloc(3ULL * max_num_symbols, in GetHuffBitLengthsAndCodes()
788 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageNoHuffman()
836 tokens = (HuffmanTreeToken*)WebPSafeMalloc(max_tokens, sizeof(*tokens)); in EncodeImageNoHuffman()
875 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageInternal()
882 (uint16_t*)WebPSafeMalloc(histogram_image_xysize, in EncodeImageInternal()
979 (uint32_t*)WebPSafeMalloc(histogram_image_xysize, in EncodeImageInternal()
1017 tokens = (HuffmanTreeToken*)WebPSafeMalloc(max_tokens, sizeof(*tokens)); in EncodeImageInternal()
1228 mem = (uint32_t*)WebPSafeMalloc(mem_size, sizeof(*mem)); in AllocateTransformBuffer()
1365 uint8_t* const tmp_row = (uint8_t*)WebPSafeMalloc(width, sizeof(*tmp_row)); in ApplyPalette()
Dpicture_rescale_enc.c217 work = (rescaler_t*)WebPSafeMalloc(2ULL * width, sizeof(*work)); in WebPPictureRescale()
245 work = (rescaler_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work)); in WebPPictureRescale()
Dbackward_references_enc.c140 b = (PixOrCopyBlock*)WebPSafeMalloc(1ULL, total_size); in BackwardRefsNewBlock()
177 (uint32_t*)WebPSafeMalloc(size, sizeof(*p->offset_length_)); in VP8LHashChainInit()
246 (int32_t*)WebPSafeMalloc(HASH_SIZE, sizeof(*hash_to_first_index)); in VP8LHashChainFill()
538 (uint16_t*)WebPSafeMalloc(xsize * ysize, sizeof(*counts_ini)); in BackwardReferencesLz77Box()
Dhistogram_enc.c114 uint8_t* const memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory)); in VP8LAllocateHistogram()
150 uint8_t* memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory)); in VP8LAllocateHistogramSet()
748 histo_queue->queue = (HistogramPair*)WebPSafeMalloc( in HistoQueueInit()
931 mappings = (int*) WebPSafeMalloc(*num_used, sizeof(*mappings)); in HistogramCombineStochastic()
1189 WebPSafeMalloc(2 * image_histo_raw_size, sizeof(map_tmp)); in VP8LGetHistoImageSymbols()
Dalpha_enc.c247 uint8_t* filtered_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in ApplyFiltersAndEncode()
327 quant_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in EncodeAlpha()
Dnear_lossless_enc.c117 (uint32_t*)WebPSafeMalloc(xsize * 3, sizeof(*copy_buffer)); in VP8ApplyNearLossless()
Dtoken_enc.c70 page = (VP8Tokens*)WebPSafeMalloc(1ULL, size); in TBufferNewPage()
Dpicture_psnr_enc.c152 (uint8_t*)WebPSafeMalloc(2ULL * width * height, sizeof(*allocated)); in WebPPlaneDistortion()
Dwebp_enc.c201 mem = (uint8_t*)WebPSafeMalloc(size, sizeof(*mem)); in InitVP8Encoder()
Dpicture_csp_enc.c439 #define SAFE_ALLOC(W, H, T) ((T*)WebPSafeMalloc((W) * (H), sizeof(T)))
886 (uint16_t*)WebPSafeMalloc(4 * uv_width, sizeof(*tmp_rgb)); in ImportYUVAFromRGBA()
/external/webp/src/utils/
Dhuffman_utils.c27 (HTreeGroup*)WebPSafeMalloc(num_htree_groups, sizeof(*htree_groups)); in VP8LHtreeGroupsNew()
216 (uint16_t*)WebPSafeMalloc(code_lengths_size, sizeof(*sorted)); in VP8LBuildHuffmanTable()
Dbit_writer_utils.c40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize()
222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
Dutils.h51 WEBP_EXTERN void* WebPSafeMalloc(uint64_t nmemb, size_t size);
Dutils.c191 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() function
Dquant_levels_dec_utils.c224 uint8_t* mem = (uint8_t*)WebPSafeMalloc(1U, total_size); in InitParams()
/external/webp/src/dec/
Dvp8l_dec.c407 mapping = (int*)WebPSafeMalloc(num_htree_groups_max, sizeof(*mapping)); in ReadHuffmanCodes()
421 huffman_tables_bogus = (HuffmanCode*)WebPSafeMalloc( in ReadHuffmanCodes()
447 huffman_tables = (HuffmanCode*)WebPSafeMalloc(num_htree_groups * table_size, in ReadHuffmanCodes()
551 uint8_t* memory = (uint8_t*)WebPSafeMalloc(memory_size, sizeof(*memory)); in AllocateAndInitRescaler()
1274 (uint32_t*)WebPSafeMalloc((uint64_t)final_num_colors, in ExpandColorMap()
1474 data = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*data)); in DecodeImageStream()
1519 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, sizeof(uint32_t)); in AllocateInternalBuffers32b()
1532 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, sizeof(uint8_t)); in AllocateInternalBuffers8b()
Dio_dec.c319 p->memory = WebPSafeMalloc(1ULL, tmp_size + rescaler_size); in InitYUVRescaler()
504 p->memory = WebPSafeMalloc(1ULL, total_size + rescaler_size); in InitRGBRescaler()
582 p->memory = WebPSafeMalloc(1ULL, (size_t)(io->mb_w + 2 * uv_width)); in CustomSetup()
Dalpha_dec.c156 (uint8_t*)WebPSafeMalloc(alpha_size, sizeof(*dec->alpha_plane_)); in AllocateAlphaPlane()
Dbuffer_dec.c121 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
Didec_dec.c185 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf)); in AppendToMemBuffer()
380 uint8_t* const part0_buf = (uint8_t*)WebPSafeMalloc(1ULL, part_size); in CopyParts0Data()
/external/webp/src/mux/
Dmuxedit.c33 WebPMux* const mux = (WebPMux*)WebPSafeMalloc(1ULL, sizeof(WebPMux)); in WebPNewInternal()
107 frame_bytes = (uint8_t*)WebPSafeMalloc(1ULL, frame_size); in CreateFrameData()
628 data = (uint8_t*)WebPSafeMalloc(1ULL, size); in WebPMuxAssemble()
Dmuxinternal.c147 new_chunk = (WebPChunk*)WebPSafeMalloc(1ULL, sizeof(*new_chunk)); in ChunkSetHead()
310 new_wpi = (WebPMuxImage*)WebPSafeMalloc(1ULL, sizeof(*new_wpi)); in MuxImagePush()
Dmuxread.c233 wpi = (WebPMuxImage*)WebPSafeMalloc(1ULL, sizeof(*wpi)); in WebPMuxCreateInternal()
400 uint8_t* const data = (uint8_t*)WebPSafeMalloc(1ULL, size); in SynthesizeBitstream()

12