Searched refs:num_htree_groups (Results 1 – 4 of 4) sorted by relevance
25 HTreeGroup* VP8LHtreeGroupsNew(int num_htree_groups) { in VP8LHtreeGroupsNew() argument27 (HTreeGroup*)WebPSafeMalloc(num_htree_groups, sizeof(*htree_groups)); in VP8LHtreeGroupsNew()31 assert(num_htree_groups <= MAX_HTREE_GROUPS); in VP8LHtreeGroupsNew()
71 HTreeGroup* VP8LHtreeGroupsNew(int num_htree_groups);
287 static void DeleteHtreeGroups(HTreeGroup* htree_groups, int num_htree_groups) { in DeleteHtreeGroups() argument290 for (i = 0; i < num_htree_groups; ++i) { in DeleteHtreeGroups()307 int num_htree_groups = 1; in ReadHuffmanCodes() local325 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()
366 int num_htree_groups = 1; in ReadHuffmanCodes() local386 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()