Home
last modified time | relevance | path

Searched refs:good_for_rle (Results 1 – 5 of 5) sorted by relevance

/external/webp/src/utils/
Dhuffman_encode_utils.c31 static void OptimizeHuffmanForRle(int length, uint8_t* const good_for_rle, in OptimizeHuffmanForRle() argument
58 good_for_rle[i - k - 1] = 1; in OptimizeHuffmanForRle()
76 if (i == length || good_for_rle[i] || in OptimizeHuffmanForRle()
77 (i != 0 && good_for_rle[i - 1]) || in OptimizeHuffmanForRle()
/external/brotli/c/enc/
Dentropy_encode.c245 uint8_t* good_for_rle) { in BrotliOptimizeHuffmanCountsForRle() argument
299 memset(good_for_rle, 0, length); in BrotliOptimizeHuffmanCountsForRle()
312 good_for_rle[i - k - 1] = 1; in BrotliOptimizeHuffmanCountsForRle()
330 if (i == length || good_for_rle[i] || in BrotliOptimizeHuffmanCountsForRle()
331 (i != 0 && good_for_rle[i - 1]) || in BrotliOptimizeHuffmanCountsForRle()
Dentropy_encode.h63 size_t length, uint32_t* counts, uint8_t* good_for_rle);
Dmetablock.c643 uint8_t good_for_rle[BROTLI_NUM_COMMAND_SYMBOLS]; in BrotliOptimizeHistograms() local
647 good_for_rle); in BrotliOptimizeHistograms()
652 good_for_rle); in BrotliOptimizeHistograms()
657 good_for_rle); in BrotliOptimizeHistograms()
/external/zopfli/src/zopfli/
Ddeflate.c384 int* good_for_rle; in OptimizeHuffmanForRle() local
399 good_for_rle = (int*)malloc(length * sizeof(int)); in OptimizeHuffmanForRle()
400 for (i = 0; i < length; ++i) good_for_rle[i] = 0; in OptimizeHuffmanForRle()
411 good_for_rle[i - k - 1] = 1; in OptimizeHuffmanForRle()
428 if (i == length || good_for_rle[i] in OptimizeHuffmanForRle()
464 free(good_for_rle); in OptimizeHuffmanForRle()