Home
last modified time | relevance | path

Searched refs:maxbits (Results 1 – 8 of 8) sorted by relevance

/external/zopfli/src/zopfli/
Dkatajainen.c67 static Node* GetFreeNode(Node* (*lists)[2], int maxbits, NodePool* pool) { in GetFreeNode() argument
76 for (i = 0; i < maxbits * 2; i++) { in GetFreeNode()
105 static void BoundaryPM(Node* (*lists)[2], int maxbits, in BoundaryPM() argument
113 newchain = GetFreeNode(lists, maxbits, pool); in BoundaryPM()
134 BoundaryPM(lists, maxbits, leaves, numsymbols, pool, index - 1, 0); in BoundaryPM()
135 BoundaryPM(lists, maxbits, leaves, numsymbols, pool, index - 1, 0); in BoundaryPM()
146 NodePool* pool, const Node* leaves, int maxbits, Node* (*lists)[2]) { in InitLists() argument
148 Node* node0 = GetFreeNode(0, maxbits, pool); in InitLists()
149 Node* node1 = GetFreeNode(0, maxbits, pool); in InitLists()
152 for (i = 0; i < maxbits; i++) { in InitLists()
[all …]
Dtree.c30 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()
Dtree.h33 void ZopfliCalculateBitLengths(const size_t* count, size_t n, int maxbits,
39 void ZopfliLengthsToSymbols(const unsigned* lengths, size_t n, unsigned maxbits,
Dkatajainen.h40 const size_t* frequencies, int n, int maxbits, unsigned* bitlengths);
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
DLZWEncoder.java48 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/
Dpngwutil.c1273 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()
DCHANGES5200 Fix bug in calculation of maxbits, in png_write_sBIT, introduced
/external/pdfium/third_party/libpng16/
Dpngwutil.c1273 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()