/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 | 499 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 …]
|
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 | 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 | delta_palettization_enc.c | 395 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()
|
D | histogram_enc.c | 102 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()
|
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 | 151 (uint8_t*)WebPSafeMalloc(2ULL * width * height, sizeof(*allocated)); in WebPPlaneDistortion()
|
D | webp_enc.c | 196 mem = (uint8_t*)WebPSafeMalloc(size, sizeof(*mem)); in InitVP8Encoder()
|
/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/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 | 167 new_chunk = (WebPChunk*)WebPSafeMalloc(1ULL, sizeof(*new_chunk)); in ChunkSetNth() 313 new_wpi = (WebPMuxImage*)WebPSafeMalloc(1ULL, sizeof(*new_wpi)); in MuxImagePush()
|
D | muxread.c | 221 wpi = (WebPMuxImage*)WebPSafeMalloc(1ULL, sizeof(*wpi)); in WebPMuxCreateInternal() 385 uint8_t* const data = (uint8_t*)WebPSafeMalloc(1ULL, size); in SynthesizeBitstream()
|
/external/webp/src/dec/ |
D | vp8l_dec.c | 406 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()
|
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 | 120 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
|
D | idec_dec.c | 186 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf)); in AppendToMemBuffer() 383 uint8_t* const part0_buf = (uint8_t*)WebPSafeMalloc(1ULL, part_size); in CopyParts0Data()
|