Lines Matching refs:distance
99 static WEBP_INLINE void VP8LPrefixEncodeBitsNoLUT(int distance, int* const code, in VP8LPrefixEncodeBitsNoLUT() argument
101 const int highest_bit = BitsLog2Floor(--distance); in VP8LPrefixEncodeBitsNoLUT()
102 const int second_highest_bit = (distance >> (highest_bit - 1)) & 1; in VP8LPrefixEncodeBitsNoLUT()
107 static WEBP_INLINE void VP8LPrefixEncodeNoLUT(int distance, int* const code, in VP8LPrefixEncodeNoLUT() argument
110 const int highest_bit = BitsLog2Floor(--distance); in VP8LPrefixEncodeNoLUT()
111 const int second_highest_bit = (distance >> (highest_bit - 1)) & 1; in VP8LPrefixEncodeNoLUT()
113 *extra_bits_value = distance & ((1 << *extra_bits) - 1); in VP8LPrefixEncodeNoLUT()
126 static WEBP_INLINE void VP8LPrefixEncodeBits(int distance, int* const code, in VP8LPrefixEncodeBits() argument
128 if (distance < PREFIX_LOOKUP_IDX_MAX) { in VP8LPrefixEncodeBits()
129 const VP8LPrefixCode prefix_code = kPrefixEncodeCode[distance]; in VP8LPrefixEncodeBits()
133 VP8LPrefixEncodeBitsNoLUT(distance, code, extra_bits); in VP8LPrefixEncodeBits()
137 static WEBP_INLINE void VP8LPrefixEncode(int distance, int* const code, in VP8LPrefixEncode() argument
140 if (distance < PREFIX_LOOKUP_IDX_MAX) { in VP8LPrefixEncode()
141 const VP8LPrefixCode prefix_code = kPrefixEncodeCode[distance]; in VP8LPrefixEncode()
144 *extra_bits_value = kPrefixEncodeExtraBitsValue[distance]; in VP8LPrefixEncode()
146 VP8LPrefixEncodeNoLUT(distance, code, extra_bits, extra_bits_value); in VP8LPrefixEncode()