Home
last modified time | relevance | path

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

/external/brotli/c/enc/
Dcommand.h132 dist->distance_postfix_bits, &self->dist_prefix_, &self->dist_extra_); in InitCommand()
155 uint32_t postfix_mask = (1U << dist->distance_postfix_bits) - 1U; in CommandRestoreDistanceCode()
158 dist->distance_postfix_bits; in CommandRestoreDistanceCode()
162 return ((offset + extra) << dist->distance_postfix_bits) + lcode + in CommandRestoreDistanceCode()
Dmetablock.c33 dist_params->distance_postfix_bits = npostfix; in BrotliInitDistanceParams()
68 if (orig_params->distance_postfix_bits == new_params->distance_postfix_bits && in RecomputeDistancePrefixes()
79 new_params->distance_postfix_bits, in RecomputeDistancePrefixes()
99 if (orig_params->distance_postfix_bits == new_params->distance_postfix_bits && in ComputeDistanceCost()
117 new_params->distance_postfix_bits, in ComputeDistanceCost()
163 if (npostfix == orig_params.dist.distance_postfix_bits && in BrotliBuildMetaBlock()
Dparams.h24 uint32_t distance_postfix_bits; member
Dencode.c170 state->params.dist.distance_postfix_bits = value; in BrotliEncoderSetParameter()
650 uint32_t distance_postfix_bits = 0; in ChooseDistanceParams() local
656 distance_postfix_bits = 1; in ChooseDistanceParams()
659 distance_postfix_bits = params->dist.distance_postfix_bits; in ChooseDistanceParams()
662 ndirect_msb = (num_direct_distance_codes >> distance_postfix_bits) & 0x0F; in ChooseDistanceParams()
663 if (distance_postfix_bits > BROTLI_MAX_NPOSTFIX || in ChooseDistanceParams()
665 (ndirect_msb << distance_postfix_bits) != num_direct_distance_codes) { in ChooseDistanceParams()
666 distance_postfix_bits = 0; in ChooseDistanceParams()
672 params, distance_postfix_bits, num_direct_distance_codes); in ChooseDistanceParams()
718 params->dist.distance_postfix_bits = 0; in BrotliEncoderInitParams()
Dbrotli_bit_stream.c991 BrotliWriteBits(2, dist->distance_postfix_bits, storage_ix, storage); in BrotliStoreMetaBlock()
993 4, dist->num_direct_distance_codes >> dist->distance_postfix_bits, in BrotliStoreMetaBlock()
Dbackward_references_hq.c520 params->dist.distance_postfix_bits, &dist_symbol, &distextra); in UpdateNodes()
/external/brotli/c/dec/
Ddecode.c1529 if (!safe && (s->distance_postfix_bits == 0)) { in ReadDistanceInternal()
1538 distval >>= s->distance_postfix_bits; in ReadDistanceInternal()
1551 ((offset + (int)bits) << s->distance_postfix_bits) + postfix; in ReadDistanceInternal()
2256 s->distance_postfix_bits = bits & BitMask(2); in BrotliDecoderDecompressStream()
2259 (bits << s->distance_postfix_bits); in BrotliDecoderDecompressStream()
2261 BROTLI_LOG_UINT(s->distance_postfix_bits); in BrotliDecoderDecompressStream()
2262 s->distance_postfix_mask = (int)BitMask(s->distance_postfix_bits); in BrotliDecoderDecompressStream()
2297 s->distance_postfix_bits, num_direct_codes, in BrotliDecoderDecompressStream()
2302 num_direct_codes, s->distance_postfix_bits) : in BrotliDecoderDecompressStream()
Dstate.h154 uint32_t distance_postfix_bits; member