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.c35 dist_params->distance_postfix_bits = npostfix; in BrotliInitDistanceParams()
64 if (orig_params->distance_postfix_bits == new_params->distance_postfix_bits && in RecomputeDistancePrefixes()
75 new_params->distance_postfix_bits, in RecomputeDistancePrefixes()
95 if (orig_params->distance_postfix_bits == new_params->distance_postfix_bits && in ComputeDistanceCost()
113 new_params->distance_postfix_bits, in ComputeDistanceCost()
159 if (npostfix == orig_params.dist.distance_postfix_bits && in BrotliBuildMetaBlock()
Dparams.h24 uint32_t distance_postfix_bits; member
Dencode.c182 state->params.dist.distance_postfix_bits = value; in BrotliEncoderSetParameter()
663 uint32_t distance_postfix_bits = 0; in ChooseDistanceParams() local
669 distance_postfix_bits = 1; in ChooseDistanceParams()
672 distance_postfix_bits = params->dist.distance_postfix_bits; in ChooseDistanceParams()
675 ndirect_msb = (num_direct_distance_codes >> distance_postfix_bits) & 0x0F; in ChooseDistanceParams()
676 if (distance_postfix_bits > BROTLI_MAX_NPOSTFIX || in ChooseDistanceParams()
678 (ndirect_msb << distance_postfix_bits) != num_direct_distance_codes) { in ChooseDistanceParams()
679 distance_postfix_bits = 0; in ChooseDistanceParams()
685 params, distance_postfix_bits, num_direct_distance_codes); in ChooseDistanceParams()
749 params->dist.distance_postfix_bits = 0; in BrotliEncoderInitParams()
Dbrotli_bit_stream.c974 BrotliWriteBits(2, dist->distance_postfix_bits, storage_ix, storage); in BrotliStoreMetaBlock()
976 4, dist->num_direct_distance_codes >> dist->distance_postfix_bits, in BrotliStoreMetaBlock()
Dbackward_references_hq.c523 params->dist.distance_postfix_bits, &dist_symbol, &distextra); in UpdateNodes()
/external/brotli/c/dec/
Dstate.h289 uint32_t distance_postfix_bits; member
Ddecode.c1585 uint32_t npostfix = s->distance_postfix_bits; in CalculateDistanceLut()
1652 (int)(b->dist_offset[code] + (bits << s->distance_postfix_bits)); in ReadDistanceInternal()
2352 s->distance_postfix_bits = bits & BitMask(2); in BrotliDecoderDecompressStream()
2354 s->num_direct_distance_codes = bits << s->distance_postfix_bits; in BrotliDecoderDecompressStream()
2356 BROTLI_LOG_UINT(s->distance_postfix_bits); in BrotliDecoderDecompressStream()
2388 uint32_t npostfix = s->distance_postfix_bits; in BrotliDecoderDecompressStream()