Home
last modified time | relevance | path

Searched refs:maxbits (Results 1 – 11 of 11) 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/skia/third_party/libpng/
Dpngwutil.c1268 png_byte maxbits; in png_write_sBIT() local
1270 maxbits = (png_byte)(color_type==PNG_COLOR_TYPE_PALETTE ? 8 : in png_write_sBIT()
1273 if (sbit->red == 0 || sbit->red > maxbits || in png_write_sBIT()
1274 sbit->green == 0 || sbit->green > maxbits || in png_write_sBIT()
1275 sbit->blue == 0 || sbit->blue > maxbits) in png_write_sBIT()
/external/libpng/
Dpngwutil.c1268 png_byte maxbits; in png_write_sBIT() local
1270 maxbits = (png_byte)(color_type==PNG_COLOR_TYPE_PALETTE ? 8 : in png_write_sBIT()
1273 if (sbit->red == 0 || sbit->red > maxbits || in png_write_sBIT()
1274 sbit->green == 0 || sbit->green > maxbits || in png_write_sBIT()
1275 sbit->blue == 0 || sbit->blue > maxbits) in png_write_sBIT()
DCHANGES5201 Fix bug in calculation of maxbits, in png_write_sBIT, introduced
/external/pdfium/third_party/libpng16/
Dpngwutil.c1268 png_byte maxbits; in png_write_sBIT() local
1270 maxbits = (png_byte)(color_type==PNG_COLOR_TYPE_PALETTE ? 8 : in png_write_sBIT()
1273 if (sbit->red == 0 || sbit->red > maxbits || in png_write_sBIT()
1274 sbit->green == 0 || sbit->green > maxbits || in png_write_sBIT()
1275 sbit->blue == 0 || sbit->blue > maxbits) in png_write_sBIT()
/external/syslinux/com32/lib/libpng/
Dpngwutil.c944 png_byte maxbits; in png_write_sBIT() local
946 maxbits = (png_byte)(color_type==PNG_COLOR_TYPE_PALETTE ? 8 : in png_write_sBIT()
948 if (sbit->red == 0 || sbit->red > maxbits || in png_write_sBIT()
949 sbit->green == 0 || sbit->green > maxbits || in png_write_sBIT()
950 sbit->blue == 0 || sbit->blue > maxbits) in png_write_sBIT()
/external/openssh/
Dssh-keygen.c196 u_int maxbits, nid; in type_bits_valid() local
216 maxbits = (type == KEY_DSA) ? in type_bits_valid()
218 if (*bitsp > maxbits) in type_bits_valid()
219 fatal("key bits exceeds maximum %d", maxbits); in type_bits_valid()