/external/webp/src/enc/ |
D | picture_enc.c | 79 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()
|
D | backward_references_cost_enc.c | 280 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()
|
D | vp8l_enc.c | 497 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()
|
D | picture_rescale_enc.c | 217 work = (rescaler_t*)WebPSafeMalloc(2ULL * width, sizeof(*work)); in WebPPictureRescale() 245 work = (rescaler_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work)); in WebPPictureRescale()
|
D | backward_references_enc.c | 140 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()
|
D | histogram_enc.c | 114 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()
|
D | alpha_enc.c | 247 uint8_t* filtered_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in ApplyFiltersAndEncode() 327 quant_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in EncodeAlpha()
|
D | near_lossless_enc.c | 117 (uint32_t*)WebPSafeMalloc(xsize * 3, sizeof(*copy_buffer)); in VP8ApplyNearLossless()
|
D | token_enc.c | 70 page = (VP8Tokens*)WebPSafeMalloc(1ULL, size); in TBufferNewPage()
|
D | picture_psnr_enc.c | 152 (uint8_t*)WebPSafeMalloc(2ULL * width * height, sizeof(*allocated)); in WebPPlaneDistortion()
|
D | webp_enc.c | 201 mem = (uint8_t*)WebPSafeMalloc(size, sizeof(*mem)); in InitVP8Encoder()
|
D | picture_csp_enc.c | 439 #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/ |
D | huffman_utils.c | 27 (HTreeGroup*)WebPSafeMalloc(num_htree_groups, sizeof(*htree_groups)); in VP8LHtreeGroupsNew() 216 (uint16_t*)WebPSafeMalloc(code_lengths_size, sizeof(*sorted)); in VP8LBuildHuffmanTable()
|
D | bit_writer_utils.c | 40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize() 222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
|
D | utils.h | 51 WEBP_EXTERN void* WebPSafeMalloc(uint64_t nmemb, size_t size);
|
D | utils.c | 191 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() function
|
D | quant_levels_dec_utils.c | 224 uint8_t* mem = (uint8_t*)WebPSafeMalloc(1U, total_size); in InitParams()
|
/external/webp/src/dec/ |
D | vp8l_dec.c | 407 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()
|
D | io_dec.c | 319 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()
|
D | alpha_dec.c | 156 (uint8_t*)WebPSafeMalloc(alpha_size, sizeof(*dec->alpha_plane_)); in AllocateAlphaPlane()
|
D | buffer_dec.c | 121 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
|
D | idec_dec.c | 185 (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/ |
D | muxedit.c | 33 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()
|
D | muxinternal.c | 147 new_chunk = (WebPChunk*)WebPSafeMalloc(1ULL, sizeof(*new_chunk)); in ChunkSetHead() 310 new_wpi = (WebPMuxImage*)WebPSafeMalloc(1ULL, sizeof(*new_wpi)); in MuxImagePush()
|
D | muxread.c | 233 wpi = (WebPMuxImage*)WebPSafeMalloc(1ULL, sizeof(*wpi)); in WebPMuxCreateInternal() 400 uint8_t* const data = (uint8_t*)WebPSafeMalloc(1ULL, size); in SynthesizeBitstream()
|