Home
last modified time | relevance | path

Searched refs:num_htree_groups (Results 1 – 4 of 4) sorted by relevance

/external/webp/src/utils/
Dhuffman.c25 HTreeGroup* VP8LHtreeGroupsNew(int num_htree_groups) { in VP8LHtreeGroupsNew() argument
27 (HTreeGroup*)WebPSafeMalloc(num_htree_groups, sizeof(*htree_groups)); in VP8LHtreeGroupsNew()
31 assert(num_htree_groups <= MAX_HTREE_GROUPS); in VP8LHtreeGroupsNew()
Dhuffman.h71 HTreeGroup* VP8LHtreeGroupsNew(int num_htree_groups);
/external/opencv3/3rdparty/libwebp/dec/
Dvp8l.c287 static void DeleteHtreeGroups(HTreeGroup* htree_groups, int num_htree_groups) { in DeleteHtreeGroups() argument
290 for (i = 0; i < num_htree_groups; ++i) { in DeleteHtreeGroups()
307 int num_htree_groups = 1; in ReadHuffmanCodes() local
325 if (group >= num_htree_groups) { in ReadHuffmanCodes()
326 num_htree_groups = group + 1; in ReadHuffmanCodes()
333 assert(num_htree_groups <= 0x10000); in ReadHuffmanCodes()
335 (HTreeGroup*)WebPSafeCalloc((uint64_t)num_htree_groups, in ReadHuffmanCodes()
342 for (i = 0; i < num_htree_groups; ++i) { in ReadHuffmanCodes()
355 hdr->num_htree_groups_ = num_htree_groups; in ReadHuffmanCodes()
361 DeleteHtreeGroups(htree_groups, num_htree_groups); in ReadHuffmanCodes()
/external/webp/src/dec/
Dvp8l.c366 int num_htree_groups = 1; in ReadHuffmanCodes() local
386 if (group >= num_htree_groups) { in ReadHuffmanCodes()
387 num_htree_groups = group + 1; in ReadHuffmanCodes()
405 huffman_tables = (HuffmanCode*)WebPSafeMalloc(num_htree_groups * table_size, in ReadHuffmanCodes()
407 htree_groups = VP8LHtreeGroupsNew(num_htree_groups); in ReadHuffmanCodes()
417 for (i = 0; i < num_htree_groups; ++i) { in ReadHuffmanCodes()
471 hdr->num_htree_groups_ = num_htree_groups; in ReadHuffmanCodes()