Home
last modified time | relevance | path

Searched refs:copycode (Results 1 – 3 of 3) sorted by relevance

/external/brotli/c/enc/
Dcommand.h62 uint16_t inscode, uint16_t copycode, BROTLI_BOOL use_last_distance) { in CombineLengthCodes() argument
64 (uint16_t)((copycode & 0x7u) | ((inscode & 0x7u) << 3)); in CombineLengthCodes()
65 if (use_last_distance && inscode < 8 && copycode < 16) { in CombineLengthCodes()
66 return (copycode < 8) ? bits64 : (bits64 | 64); in CombineLengthCodes()
70 int offset = 2 * ((copycode >> 3) + 3 * (inscode >> 3)); in CombineLengthCodes()
86 uint16_t copycode = GetCopyLengthCode(copylen); in GetLengthCode() local
87 *code = CombineLengthCodes(inscode, copycode, use_last_distance); in GetLengthCode()
98 static BROTLI_INLINE uint32_t GetCopyBase(uint16_t copycode) { in GetCopyBase() argument
99 return kCopyBase[copycode]; in GetCopyBase()
102 static BROTLI_INLINE uint32_t GetCopyExtra(uint16_t copycode) { in GetCopyExtra() argument
[all …]
Dbackward_references_hq.c449 const uint16_t copycode = GetCopyLengthCode(l); in UpdateNodes() local
451 CombineLengthCodes(inscode, copycode, j == 0); in UpdateNodes()
453 (float)GetCopyExtra(copycode) + in UpdateNodes()
501 const uint16_t copycode = GetCopyLengthCode(len_code); in UpdateNodes() local
502 const uint16_t cmdcode = CombineLengthCodes(inscode, copycode, 0); in UpdateNodes()
503 const float cost = dist_cost + (float)GetCopyExtra(copycode) + in UpdateNodes()
Dbrotli_bit_stream.c104 uint16_t copycode = GetCopyLengthCode(copylen_code); in StoreCommandExtra() local
107 uint64_t copyextraval = copylen_code - GetCopyBase(copycode); in StoreCommandExtra()
110 insnumextra + GetCopyExtra(copycode), bits, storage_ix, storage); in StoreCommandExtra()