Home | History | Annotate | Download | only in enc

Lines Matching refs:sr

40     HasherSearchResult sr;
41 sr.len = 0;
42 sr.len_code_delta = 0;
43 sr.distance = 0;
44 sr.score = kMinScore;
47 max_length, max_distance, gap, &sr);
48 if (sr.score > kMinScore) {
56 BROTLI_MIN(size_t, sr.len - 1, max_length) : 0;
64 if (sr2.score >= sr.score + cost_diff_lazy) {
69 sr = sr2;
78 position + 2 * sr.len + random_heuristics_window_size;
84 ComputeDistanceCode(sr.distance, max_distance + gap, dist_cache);
85 if ((sr.distance <= (max_distance + gap)) && distance_code > 0) {
89 dist_cache[0] = (int)sr.distance;
92 InitCommand(commands++, insert_length, sr.len, sr.len_code_delta,
103 size_t range_end = BROTLI_MIN(size_t, position + sr.len, store_end);
104 if (sr.distance < (sr.len >> 2)) {
106 range_start, position + sr.len - (sr.distance << 2)));
111 position += sr.len;