Searched refs:lit_cost (Results 1 – 1 of 1) sorted by relevance
105 double lit_cost; in EstimateBitCostsForLiteralsUTF8() local109 lit_cost = FastLog2(in_window_utf8[utf8_pos]) - FastLog2(histo); in EstimateBitCostsForLiteralsUTF8()110 lit_cost += 0.02905; in EstimateBitCostsForLiteralsUTF8()111 if (lit_cost < 1.0) { in EstimateBitCostsForLiteralsUTF8()112 lit_cost *= 0.5; in EstimateBitCostsForLiteralsUTF8()113 lit_cost += 0.5; in EstimateBitCostsForLiteralsUTF8()120 lit_cost += 0.7 - ((double)(2000 - i) / 2000.0 * 0.35); in EstimateBitCostsForLiteralsUTF8()122 cost[i] = (float)lit_cost; in EstimateBitCostsForLiteralsUTF8()161 double lit_cost = FastLog2(in_window) - FastLog2(histo); in BrotliEstimateBitCostsForLiterals() local162 lit_cost += 0.029; in BrotliEstimateBitCostsForLiterals()[all …]