Home
last modified time | relevance | path

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

12

/external/webp/src/enc/
Dpicture.c79 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()
Dvp8l.c470 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 …]
Dpicture_rescale.c213 work = (rescaler_t*)WebPSafeMalloc(2ULL * width, sizeof(*work)); in WebPPictureRescale()
241 work = (rescaler_t*)WebPSafeMalloc(2ULL * width * 4, sizeof(*work)); in WebPPictureRescale()
Dbackward_references.c152 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()
Dhistogram.c101 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()
Ddelta_palettization.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()
Dalpha.c241 uint8_t* filtered_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in ApplyFiltersAndEncode()
317 quant_alpha = (uint8_t*)WebPSafeMalloc(1ULL, data_size); in EncodeAlpha()
Dnear_lossless.c141 (uint32_t*)WebPSafeMalloc(xsize * 3, sizeof(*copy_buffer)); in VP8ApplyNearLossless()
Dpicture_psnr.c94 (uint8_t*)WebPSafeMalloc(2ULL * w * h, sizeof(*tmp_plane)); in WebPPictureDistortion()
Dtoken.c70 page = (VP8Tokens*)WebPSafeMalloc(1ULL, size); in TBufferNewPage()
/external/webp/src/utils/
Dhuffman.c27 (HTreeGroup*)WebPSafeMalloc(num_htree_groups, sizeof(*htree_groups)); in VP8LHtreeGroupsNew()
117 sorted = (int*)WebPSafeMalloc(code_lengths_size, sizeof(*sorted)); in VP8LBuildHuffmanTable()
Dbit_writer.c40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize()
222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
Dutils.h42 WEBP_EXTERN(void*) WebPSafeMalloc(uint64_t nmemb, size_t size);
Dutils.c185 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() function
Dquant_levels_dec.c219 uint8_t* mem = (uint8_t*)WebPSafeMalloc(1U, total_size); in InitParams()
/external/opencv3/3rdparty/libwebp/utils/
Dhuffman.c55 tree->root_ = (HuffmanTreeNode*)WebPSafeMalloc((uint64_t)tree->max_nodes_, in TreeInit()
180 (int*)WebPSafeMalloc((uint64_t)code_lengths_size, sizeof(*codes)); in HuffmanTreeBuildImplicit()
Dutils.c33 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() function
Dutils.h38 void* WebPSafeMalloc(uint64_t nmemb, size_t size);
/external/opencv3/3rdparty/libwebp/enc/
Dbackward_references.c100 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()
Dvp8l.c315 (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()
Dpicture.c93 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/
Dvp8l.c405 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()
Dio.c305 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()
Dbuffer.c115 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()
/external/opencv3/3rdparty/libwebp/dec/
Dbuffer.c106 output = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*output)); in AllocateBuffer()

12