Home
last modified time | relevance | path

Searched refs:npostfix (Results 1 – 6 of 6) sorted by relevance

/external/brotli/c/common/
Dconstants.h128 uint32_t max_distance, uint32_t npostfix, uint32_t ndirect) { in BrotliCalculateDistanceCodeLimit() argument
148 uint32_t postfix = (1u << npostfix) - 1; in BrotliCalculateDistanceCodeLimit()
152 offset = (offset >> npostfix) + 4; in BrotliCalculateDistanceCodeLimit()
181 result.max_alphabet_size = ((group << npostfix) | postfix) + ndirect + in BrotliCalculateDistanceCodeLimit()
184 result.max_distance = ((start + extra) << npostfix) + postfix + ndirect + 1; in BrotliCalculateDistanceCodeLimit()
/external/brotli/c/enc/
Dmetablock.c29 uint32_t npostfix, uint32_t ndirect) { in BrotliInitDistanceParams() argument
35 dist_params->distance_postfix_bits = npostfix; in BrotliInitDistanceParams()
39 npostfix, ndirect, BROTLI_MAX_DISTANCE_BITS); in BrotliInitDistanceParams()
41 max_distance = ndirect + (1U << (BROTLI_MAX_DISTANCE_BITS + npostfix + 2)) - in BrotliInitDistanceParams()
42 (1U << (npostfix + 2)); in BrotliInitDistanceParams()
46 BROTLI_MAX_ALLOWED_DISTANCE, npostfix, ndirect); in BrotliInitDistanceParams()
48 npostfix, ndirect, BROTLI_LARGE_MAX_DISTANCE_BITS); in BrotliInitDistanceParams()
146 uint32_t npostfix; in BrotliBuildMetaBlock() local
153 for (npostfix = 0; npostfix <= BROTLI_MAX_NPOSTFIX; npostfix++) { in BrotliBuildMetaBlock()
155 uint32_t ndirect = ndirect_msb << npostfix; in BrotliBuildMetaBlock()
[all …]
Dmetablock.h99 uint32_t npostfix, uint32_t ndirect);
/external/brotli/java/org/brotli/dec/
DDecode.java151 private static int calculateDistanceAlphabetSize(int npostfix, int ndirect, int maxndistbits) { in calculateDistanceAlphabetSize() argument
152 return NUM_DISTANCE_SHORT_CODES + ndirect + 2 * (maxndistbits << npostfix); in calculateDistanceAlphabetSize()
157 private static int calculateDistanceAlphabetLimit(int maxDistance, int npostfix, int ndirect) { in calculateDistanceAlphabetLimit() argument
158 if (maxDistance < ndirect + (2 << npostfix)) { in calculateDistanceAlphabetLimit()
161 int offset = ((maxDistance - ndirect) >> npostfix) + 4; in calculateDistanceAlphabetLimit()
164 return ((group - 1) << npostfix) + (1 << npostfix) + ndirect + NUM_DISTANCE_SHORT_CODES; in calculateDistanceAlphabetLimit()
792 int npostfix = s.distancePostfixBits; in calculateDistanceLut() local
794 int postfix = 1 << npostfix; in calculateDistanceLut()
810 int base = ndirect + ((((2 + half) << bits) - 4) << npostfix) + 1; in calculateDistanceLut()
/external/brotli/js/
Ddecode.js62 function calculateDistanceAlphabetSize(npostfix, ndirect, maxndistbits) { argument
63 return 16 + ndirect + 2 * (maxndistbits << npostfix);
71 function calculateDistanceAlphabetLimit(maxDistance, npostfix, ndirect) { argument
72 if (maxDistance < ndirect + (2 << npostfix)) {
75 var /** number */ offset = ((maxDistance - ndirect) >> npostfix) + 4;
78 return ((group - 1) << npostfix) + (1 << npostfix) + ndirect + 16;
770 var /** number */ npostfix = s.distancePostfixBits;
772 var /** number */ postfix = 1 << npostfix;
782 var /** number */ base = ndirect + ((((2 + half) << bits) - 4) << npostfix) + 1;
/external/brotli/c/dec/
Ddecode.c1585 uint32_t npostfix = s->distance_postfix_bits; in CalculateDistanceLut() local
1588 uint32_t postfix = 1u << npostfix; in CalculateDistanceLut()
1605 uint32_t base = ndirect + ((((2 + half) << bits) - 4) << npostfix) + 1; in CalculateDistanceLut()
2388 uint32_t npostfix = s->distance_postfix_bits; in BrotliDecoderDecompressStream() local
2391 npostfix, ndirect, BROTLI_MAX_DISTANCE_BITS); in BrotliDecoderDecompressStream()
2396 BROTLI_MAX_ALLOWED_DISTANCE, npostfix, ndirect); in BrotliDecoderDecompressStream()
2398 npostfix, ndirect, BROTLI_LARGE_MAX_DISTANCE_BITS); in BrotliDecoderDecompressStream()