Home
last modified time | relevance | path

Searched refs:ndirect (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
133 if (max_distance <= ndirect) { in BrotliCalculateDistanceCodeLimit()
142 uint32_t offset = forbidden_distance - ndirect - 1; in BrotliCalculateDistanceCodeLimit()
166 result.max_alphabet_size = ndirect + BROTLI_NUM_DISTANCE_SHORT_CODES; in BrotliCalculateDistanceCodeLimit()
167 result.max_distance = ndirect; 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
36 dist_params->num_direct_distance_codes = ndirect; in BrotliInitDistanceParams()
39 npostfix, ndirect, BROTLI_MAX_DISTANCE_BITS); in BrotliInitDistanceParams()
41 max_distance = ndirect + (1U << (BROTLI_MAX_DISTANCE_BITS + npostfix + 2)) - in BrotliInitDistanceParams()
46 BROTLI_MAX_ALLOWED_DISTANCE, npostfix, ndirect); in BrotliInitDistanceParams()
48 npostfix, ndirect, BROTLI_LARGE_MAX_DISTANCE_BITS); in BrotliInitDistanceParams()
155 uint32_t ndirect = ndirect_msb << npostfix; in BrotliBuildMetaBlock() local
158 BrotliInitDistanceParams(&new_params, npostfix, ndirect); in BrotliBuildMetaBlock()
160 ndirect == orig_params.dist.num_direct_distance_codes) { in BrotliBuildMetaBlock()
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()
793 int ndirect = s.numDirectDistanceCodes; in calculateDistanceLut() local
802 for (int j = 0; j < ndirect; ++j) { 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;
771 var /** number */ ndirect = s.numDirectDistanceCodes;
776 for (var /** number */ j = 0; j < ndirect; ++j) {
782 var /** number */ base = ndirect + ((((2 + half) << bits) - 4) << npostfix) + 1;
/external/brotli/c/dec/
Ddecode.c1586 uint32_t ndirect = s->num_direct_distance_codes; in CalculateDistanceLut() local
1597 for (j = 0; j < ndirect; ++j) { in CalculateDistanceLut()
1605 uint32_t base = ndirect + ((((2 + half) << bits) - 4) << npostfix) + 1; in CalculateDistanceLut()
2389 uint32_t ndirect = s->num_direct_distance_codes; 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()