/external/webp/src/enc/ |
D | picture.c | 79 memory = WebPSafeMalloc(argb_size, 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 | vp8l.c | 470 buf_rle = (uint8_t*)WebPSafeMalloc(1ULL, max_num_symbols); in GetHuffBitLengthsAndCodes() 471 huff_tree = (HuffmanTree*)WebPSafeMalloc(3ULL * max_num_symbols, in GetHuffBitLengthsAndCodes() 756 HuffmanTree* const huff_tree = (HuffmanTree*)WebPSafeMalloc( in EncodeImageNoHuffman() 797 tokens = (HuffmanTreeToken*)WebPSafeMalloc(max_tokens, sizeof(*tokens)); in EncodeImageNoHuffman() 846 (uint16_t*)WebPSafeMalloc(histogram_image_xysize, in EncodeImageInternal() 919 (uint32_t*)WebPSafeMalloc(histogram_image_xysize, in EncodeImageInternal() 950 huff_tree = (HuffmanTree*)WebPSafeMalloc(3ULL * CODE_LENGTH_CODES, in EncodeImageInternal() 963 tokens = (HuffmanTreeToken*)WebPSafeMalloc(max_tokens, in EncodeImageInternal() 1141 uint32_t* mem = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*mem)); in AllocateTransformBuffer() 1215 uint8_t* const tmp_row = (uint8_t*)WebPSafeMalloc(width, sizeof(*tmp_row)); in ApplyPalette() [all …]
|
D | picture_rescale.c | 213 work = (rescaler_t*)WebPSafeMalloc(2ULL * width, sizeof(*work)); in WebPPictureRescale() 241 work = (rescaler_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work)); in WebPPictureRescale()
|
D | backward_references.c | 152 b = (PixOrCopyBlock*)WebPSafeMalloc(1ULL, total_size); in BackwardRefsNewBlock() 210 p->chain_ = (int*)WebPSafeMalloc(size, sizeof(*p->chain_)); in VP8LHashChainInit() 596 (float*)WebPSafeMalloc(pix_count, sizeof(*cost)); in BackwardReferencesHashChainDistanceOnly() 602 (CostModel*)WebPSafeMalloc(1ULL, cost_model_size); in BackwardReferencesHashChainDistanceOnly() 800 (uint16_t*)WebPSafeMalloc(dist_array_size, sizeof(*dist_array)); in BackwardReferencesTraceBackwards()
|
D | histogram.c | 101 uint8_t* const memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory)); in VP8LAllocateHistogram() 117 uint8_t* memory = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*memory)); in VP8LAllocateHistogramSet() 600 histo_queue->queue = WebPSafeMalloc(histo_queue->max_size + 1, in HistoQueueInit() 662 int* const clusters = WebPSafeMalloc(image_histo_size, sizeof(*clusters)); in HistogramCombineGreedy()
|
D | delta_palettization.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 | alpha.c | 241 uint8_t* filtered_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in ApplyFiltersAndEncode() 317 quant_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in EncodeAlpha()
|
D | near_lossless.c | 141 (uint32_t*)WebPSafeMalloc(xsize * 3, sizeof(*copy_buffer)); in VP8ApplyNearLossless()
|
D | picture_psnr.c | 94 (uint8_t*)WebPSafeMalloc(2ULL * w * h, sizeof(*tmp_plane)); in WebPPictureDistortion()
|
D | token.c | 70 page = (VP8Tokens*)WebPSafeMalloc(1ULL, size); in TBufferNewPage()
|
/external/webp/src/utils/ |
D | huffman.c | 27 (HTreeGroup*)WebPSafeMalloc(num_htree_groups, sizeof(*htree_groups)); in VP8LHtreeGroupsNew() 117 sorted = (int*)WebPSafeMalloc(code_lengths_size, sizeof(*sorted)); in VP8LBuildHuffmanTable()
|
D | bit_writer.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 | 42 WEBP_EXTERN(void*) WebPSafeMalloc(uint64_t nmemb, size_t size);
|
D | utils.c | 185 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() function
|
D | quant_levels_dec.c | 219 uint8_t* mem = (uint8_t*)WebPSafeMalloc(1U, total_size); in InitParams()
|
/external/opencv3/3rdparty/libwebp/utils/ |
D | huffman.c | 55 tree->root_ = (HuffmanTreeNode*)WebPSafeMalloc((uint64_t)tree->max_nodes_, in TreeInit() 180 (int*)WebPSafeMalloc((uint64_t)code_lengths_size, sizeof(*codes)); in HuffmanTreeBuildImplicit()
|
D | utils.c | 33 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() function
|
D | utils.h | 38 void* WebPSafeMalloc(uint64_t nmemb, size_t size);
|
/external/opencv3/3rdparty/libwebp/enc/ |
D | backward_references.c | 100 refs->refs = (PixOrCopy*)WebPSafeMalloc((uint64_t)max_size, in VP8LBackwardRefsAlloc() 118 p->chain_ = (int*)WebPSafeMalloc((uint64_t)size, sizeof(*p->chain_)); in HashChainInit() 483 (float*)WebPSafeMalloc((uint64_t)pix_count, sizeof(*cost)); in BackwardReferencesHashChainDistanceOnly() 707 (uint32_t*)WebPSafeMalloc((uint64_t)dist_array_size, sizeof(*dist_array)); in BackwardReferencesTraceBackwards()
|
D | vp8l.c | 315 (HuffmanTreeToken*)WebPSafeMalloc((uint64_t)max_tokens, sizeof(*tokens)); in StoreFullHuffmanCode() 536 (uint16_t*)WebPSafeMalloc((uint64_t)histogram_image_xysize, in EncodeImageInternal() 584 (uint32_t*)WebPSafeMalloc((uint64_t)histogram_image_xysize, in EncodeImageInternal() 800 uint32_t* mem = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*mem)); in AllocateTransformBuffer() 898 row = WebPSafeMalloc((uint64_t)width, sizeof(*row)); in EncodePalette()
|
D | picture.c | 93 mem = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*mem)); in WebPPictureAlloc() 129 memory = WebPSafeMalloc(argb_size, sizeof(*picture->argb)); in WebPPictureAlloc() 423 work = (int32_t*)WebPSafeMalloc(2ULL * width, sizeof(*work)); in WebPPictureRescale() 456 work = (int32_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work)); in WebPPictureRescale() 496 new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1); in WebPMemoryWrite()
|
/external/webp/src/dec/ |
D | vp8l.c | 405 huffman_tables = (HuffmanCode*)WebPSafeMalloc(num_htree_groups * table_size, in ReadHuffmanCodes() 500 uint8_t* memory = (uint8_t*)WebPSafeMalloc(memory_size, sizeof(*memory)); in AllocateAndInitRescaler() 1173 (uint32_t*)WebPSafeMalloc((uint64_t)final_num_colors, in ExpandColorMap() 1372 data = (uint32_t*)WebPSafeMalloc(total_size, sizeof(*data)); in DecodeImageStream() 1417 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, sizeof(uint32_t)); in AllocateInternalBuffers32b() 1430 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, sizeof(uint8_t)); in AllocateInternalBuffers8b()
|
D | io.c | 305 p->memory = WebPSafeMalloc(1ULL, tmp_size); in InitYUVRescaler() 479 p->memory = WebPSafeMalloc(1ULL, total_size); in InitRGBRescaler() 544 p->memory = WebPSafeMalloc(1ULL, (size_t)(io->mb_w + 2 * uv_width)); in CustomSetup()
|
D | buffer.c | 115 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
|
/external/opencv3/3rdparty/libwebp/dec/ |
D | buffer.c | 106 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
|