Searched refs:maxbits (Results 1 – 7 of 7) sorted by relevance
/external/zopfli/src/zopfli/ |
D | tree.c | 30 void ZopfliLengthsToSymbols(const unsigned* lengths, size_t n, unsigned maxbits, in ZopfliLengthsToSymbols() argument 32 size_t* bl_count = (size_t*)malloc(sizeof(size_t) * (maxbits + 1)); in ZopfliLengthsToSymbols() 33 size_t* next_code = (size_t*)malloc(sizeof(size_t) * (maxbits + 1)); in ZopfliLengthsToSymbols() 43 for (bits = 0; bits <= maxbits; bits++) { in ZopfliLengthsToSymbols() 47 assert(lengths[i] <= maxbits); in ZopfliLengthsToSymbols() 53 for (bits = 1; bits <= maxbits; bits++) { in ZopfliLengthsToSymbols() 96 void ZopfliCalculateBitLengths(const size_t* count, size_t n, int maxbits, in ZopfliCalculateBitLengths() argument 98 int error = ZopfliLengthLimitedCodeLengths(count, n, maxbits, bitlengths); in ZopfliCalculateBitLengths()
|
D | katajainen.c | 126 NodePool* pool, const Node* leaves, int maxbits, Node* (*lists)[2]) { in InitLists() argument 132 for (i = 0; i < maxbits; i++) { in InitLists() 173 const size_t* frequencies, int n, int maxbits, unsigned* bitlengths) { in ZopfliLengthLimitedCodeLengths() argument 202 if ((1 << maxbits) < numsymbols) { in ZopfliLengthLimitedCodeLengths() 237 if (numsymbols - 1 < maxbits) { in ZopfliLengthLimitedCodeLengths() 238 maxbits = numsymbols - 1; in ZopfliLengthLimitedCodeLengths() 242 nodes = (Node*)malloc(maxbits * 2 * numsymbols * sizeof(Node)); in ZopfliLengthLimitedCodeLengths() 245 lists = (Node* (*)[2])malloc(maxbits * sizeof(*lists)); in ZopfliLengthLimitedCodeLengths() 246 InitLists(&pool, leaves, maxbits, lists); in ZopfliLengthLimitedCodeLengths() 252 BoundaryPM(lists, leaves, numsymbols, &pool, maxbits - 1); in ZopfliLengthLimitedCodeLengths() [all …]
|
D | tree.h | 33 void ZopfliCalculateBitLengths(const size_t* count, size_t n, int maxbits, 39 void ZopfliLengthsToSymbols(const unsigned* lengths, size_t n, unsigned maxbits,
|
D | katajainen.h | 40 const size_t* frequencies, int n, int maxbits, unsigned* bitlengths);
|
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/ |
D | LZWEncoder.java | 48 int maxbits = BITS; // user settable max # bits/code field in LZWEncoder 182 fcode = (c << maxbits) + ent; in compress() 279 if (n_bits == maxbits) in output()
|
/external/libpng/ |
D | pngwutil.c | 1273 png_byte maxbits; in png_write_sBIT() local 1275 maxbits = (png_byte)(color_type==PNG_COLOR_TYPE_PALETTE ? 8 : in png_write_sBIT() 1278 if (sbit->red == 0 || sbit->red > maxbits || in png_write_sBIT() 1279 sbit->green == 0 || sbit->green > maxbits || in png_write_sBIT() 1280 sbit->blue == 0 || sbit->blue > maxbits) in png_write_sBIT()
|
D | CHANGES | 5200 Fix bug in calculation of maxbits, in png_write_sBIT, introduced
|