• Home
  • Raw
  • Download

Lines Matching refs:distance_code

1460   if (s->distance_code == 0) {  in TakeDistanceFromRingBuffer()
1462 s->distance_code = s->dist_rb[s->dist_rb_idx & 3]; in TakeDistanceFromRingBuffer()
1466 int distance_code = s->distance_code << 1; in TakeDistanceFromRingBuffer() local
1474 (int)(kDistanceShortCodeIndexOffset >> distance_code)) & 0x3; in TakeDistanceFromRingBuffer()
1475 s->distance_code = s->dist_rb[v]; in TakeDistanceFromRingBuffer()
1476 v = (int)(kDistanceShortCodeValueOffset >> distance_code) & 0x3; in TakeDistanceFromRingBuffer()
1477 if ((distance_code & 0x3) != 0) { in TakeDistanceFromRingBuffer()
1478 s->distance_code += v; in TakeDistanceFromRingBuffer()
1480 s->distance_code -= v; in TakeDistanceFromRingBuffer()
1481 if (s->distance_code <= 0) { in TakeDistanceFromRingBuffer()
1484 s->distance_code = 0x7FFFFFFF; in TakeDistanceFromRingBuffer()
1507 s->distance_code = (int)ReadSymbol(distance_tree, br); in ReadDistanceInternal()
1514 s->distance_code = (int)code; in ReadDistanceInternal()
1519 if ((s->distance_code & ~0xF) == 0) { in ReadDistanceInternal()
1524 distval = s->distance_code - (int)s->num_direct_distance_codes; in ReadDistanceInternal()
1532 s->distance_code = (int)s->num_direct_distance_codes + offset + in ReadDistanceInternal()
1542 s->distance_code = -1; /* Restore precondition. */ in ReadDistanceInternal()
1550 s->distance_code = (int)s->num_direct_distance_codes + in ReadDistanceInternal()
1554 s->distance_code = s->distance_code - BROTLI_NUM_DISTANCE_SHORT_CODES + 1; in ReadDistanceInternal()
1585 s->distance_code = v.distance_code; in ReadCommandInternal()
1778 if (s->distance_code >= 0) { in ProcessCommandsInternal()
1780 s->distance_context = s->distance_code ? 0 : 1; in ProcessCommandsInternal()
1782 s->distance_code = s->dist_rb[s->dist_rb_idx & 3]; in ProcessCommandsInternal()
1791 pos, s->distance_code)); in ProcessCommandsInternal()
1799 if (s->distance_code > s->max_distance) { in ProcessCommandsInternal()
1803 if (s->distance_code > BROTLI_MAX_ALLOWED_DISTANCE) { in ProcessCommandsInternal()
1806 pos, s->distance_code, i, s->meta_block_remaining_len)); in ProcessCommandsInternal()
1811 int address = s->distance_code - s->max_distance - 1; in ProcessCommandsInternal()
1849 pos, s->distance_code, i, s->meta_block_remaining_len)); in ProcessCommandsInternal()
1855 pos, s->distance_code, i, s->meta_block_remaining_len)); in ProcessCommandsInternal()
1859 int src_start = (pos - s->distance_code) & s->ringbuffer_mask; in ProcessCommandsInternal()
1865 s->dist_rb[s->dist_rb_idx & 3] = s->distance_code; in ProcessCommandsInternal()
1904 s->ringbuffer[(pos - s->distance_code) & s->ringbuffer_mask]; in ProcessCommandsInternal()