Lines Matching refs:window_half
62 size_t window_half = 495; in EstimateBitCostsForLiteralsUTF8() local
63 size_t in_window = BROTLI_MIN(size_t, window_half, len); in EstimateBitCostsForLiteralsUTF8()
81 if (i >= window_half) { in EstimateBitCostsForLiteralsUTF8()
84 i < window_half + 1 ? 0 : data[(pos + i - window_half - 1) & mask]; in EstimateBitCostsForLiteralsUTF8()
86 i < window_half + 2 ? 0 : data[(pos + i - window_half - 2) & mask]; in EstimateBitCostsForLiteralsUTF8()
88 --histogram[utf8_pos2][data[(pos + i - window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8()
91 if (i + window_half < len) { in EstimateBitCostsForLiteralsUTF8()
93 size_t c = data[(pos + i + window_half - 1) & mask]; in EstimateBitCostsForLiteralsUTF8()
94 size_t last_c = data[(pos + i + window_half - 2) & mask]; in EstimateBitCostsForLiteralsUTF8()
96 ++histogram[utf8_pos2][data[(pos + i + window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8()
134 size_t window_half = 2000; in BrotliEstimateBitCostsForLiterals() local
135 size_t in_window = BROTLI_MIN(size_t, window_half, len); in BrotliEstimateBitCostsForLiterals()
146 if (i >= window_half) { in BrotliEstimateBitCostsForLiterals()
148 --histogram[data[(pos + i - window_half) & mask]]; in BrotliEstimateBitCostsForLiterals()
151 if (i + window_half < len) { in BrotliEstimateBitCostsForLiterals()
153 ++histogram[data[(pos + i + window_half) & mask]]; in BrotliEstimateBitCostsForLiterals()