Lines Matching defs:offset

96     int32_t offset;
1472 * codebooks and a specified offset.
1475 unsigned int channel, int16_t offset,
1483 min -= offset;
1484 max -= offset;
1493 bo->offset = offset;
1496 bo->min = offset - unsign + 1;
1497 bo->max = offset + unsign;
1509 int16_t offset;
1514 /* Set offset inside huffoffset's boundaries by adjusting extremes
1515 * so that more bits are used, thus shifting the offset. */
1521 /* Determine offset and minimum number of bits. */
1529 /* If all samples are the same (lsb_bits == 0), offset must be
1531 offset = min + diff / 2 + !!lsb_bits;
1533 bo->offset = offset;
1541 * given codebook and a given offset.
1546 int16_t offset, BestOffset *bo)
1553 int32_t unsign_offset = offset;
1558 sample_min -= offset;
1559 sample_max -= offset;
1596 bo->offset = offset;
1599 bo->min = FFMAX(offset - offset_min, HUFF_OFFSET_MIN);
1600 bo->max = FFMIN(offset + offset_max, HUFF_OFFSET_MAX);
1604 * given codebook. Searches for the best offset to minimize the bits.
1608 int offset, int32_t min, int32_t max,
1618 while (offset <= offset_max && offset >= offset_min) {
1622 min, max, offset,
1636 offset = temp_bo.max + 1;
1638 offset = temp_bo.min - 1;
1657 int offset = 0;
1671 /* If filtering is used, we always set the offset to zero, otherwise
1672 * we search for the offset that minimizes the bitcount. */
1675 offset = av_clip(average, HUFF_OFFSET_MIN, HUFF_OFFSET_MAX);
1677 no_codebook_bits_offset(ctx, channel, offset, min, max, &ctx->cur_best_offset[channel][0]);
1685 min, max, offset,
1943 cp->huff_offset = cur_bo->offset;