Home
last modified time | relevance | path

Searched refs:WebPSafeMalloc (Results 1 – 25 of 28) 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.c499 buf_rle = (uint8_t*)WebPSafeMalloc(1ULL, max_num_symbols); in GetHuffBitLengthsAndCodes()
500 huff_tree = (HuffmanTree*)WebPSafeMalloc(3ULL * max_num_symbols, in GetHuffBitLengthsAndCodes()
791 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageNoHuffman()
838 tokens = (HuffmanTreeToken*)WebPSafeMalloc(max_tokens, sizeof(*tokens)); in EncodeImageNoHuffman()
877 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageInternal()
884 (uint16_t*)WebPSafeMalloc(histogram_image_xysize, in EncodeImageInternal()
981 (uint32_t*)WebPSafeMalloc(histogram_image_xysize, in EncodeImageInternal()
1019 tokens = (HuffmanTreeToken*)WebPSafeMalloc(max_tokens, sizeof(*tokens)); in EncodeImageInternal()
1230 mem = (uint32_t*)WebPSafeMalloc(mem_size, sizeof(*mem)); in AllocateTransformBuffer()
1361 uint8_t* const tmp_row = (uint8_t*)WebPSafeMalloc(width, sizeof(*tmp_row)); in ApplyPalette()
[all …]
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()
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()
Ddelta_palettization_enc.c395 uint32_t* new_image = (uint32_t*)WebPSafeMalloc(width, sizeof(*new_image)); in ApplyDeltaPalette()
396 uint8_t* const tmp_row = (uint8_t*)WebPSafeMalloc(width, sizeof(*tmp_row)); in ApplyDeltaPalette()
Dhistogram_enc.c102 uint8_t* const memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory)); in VP8LAllocateHistogram()
118 uint8_t* memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory)); in VP8LAllocateHistogramSet()
644 histo_queue->queue = (HistogramPair*)WebPSafeMalloc( in HistoQueueInit()
730 (int*)WebPSafeMalloc(image_histo_size, sizeof(*clusters)); in HistogramCombineGreedy()
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.c151 (uint8_t*)WebPSafeMalloc(2ULL * width * height, sizeof(*allocated)); in WebPPlaneDistortion()
Dwebp_enc.c196 mem = (uint8_t*)WebPSafeMalloc(size, sizeof(*mem)); in InitVP8Encoder()
/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/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.c167 new_chunk = (WebPChunk*)WebPSafeMalloc(1ULL, sizeof(*new_chunk)); in ChunkSetNth()
313 new_wpi = (WebPMuxImage*)WebPSafeMalloc(1ULL, sizeof(*new_wpi)); in MuxImagePush()
Dmuxread.c221 wpi = (WebPMuxImage*)WebPSafeMalloc(1ULL, sizeof(*wpi)); in WebPMuxCreateInternal()
385 uint8_t* const data = (uint8_t*)WebPSafeMalloc(1ULL, size); in SynthesizeBitstream()
/external/webp/src/dec/
Dvp8l_dec.c406 huffman_tables = (HuffmanCode*)WebPSafeMalloc(num_htree_groups * table_size, in ReadHuffmanCodes()
502 uint8_t* memory = (uint8_t*)WebPSafeMalloc(memory_size, sizeof(*memory)); in AllocateAndInitRescaler()
1221 (uint32_t*)WebPSafeMalloc((uint64_t)final_num_colors, in ExpandColorMap()
1421 data = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*data)); in DecodeImageStream()
1466 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, sizeof(uint32_t)); in AllocateInternalBuffers32b()
1479 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.c120 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
Didec_dec.c186 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf)); in AppendToMemBuffer()
383 uint8_t* const part0_buf = (uint8_t*)WebPSafeMalloc(1ULL, part_size); in CopyParts0Data()

12