Home | History | Annotate | Download | only in libpng

Lines Matching defs:shift

2786           * be increased.  Note that the arithmetic shift
3234 * required shift is 31.
3560 * integer bits (the top 4) simply determine a shift.
3607 * is determined by the above table and the shift. Notice that the values
3744 * 'num' 256 entry subtables, where 'num' is determined by 'shift' - the amount
3745 * to shift the input values right (or 16-number_of_signifiant_bits).
3753 PNG_CONST unsigned int shift, PNG_CONST png_fixed_point gamma_val)
3755 /* Various values derived from 'shift': */
3756 PNG_CONST unsigned int num = 1U << (8U - shift);
3757 PNG_CONST unsigned int max = (1U << (16U - shift))-1U;
3758 PNG_CONST unsigned int max_by_2 = 1U << (15U-shift);
3785 png_uint_32 ig = (j << (8-shift)) + i;
3791 if (shift)
3805 png_uint_32 ig = (j << (8-shift)) + i;
3807 if (shift)
3821 PNG_CONST unsigned int shift, PNG_CONST png_fixed_point gamma_val)
3823 PNG_CONST unsigned int num = 1U << (8U - shift);
3824 PNG_CONST unsigned int max = (1U << (16U - shift))-1U;
3864 /* Adjust (round) to (16-shift) bits: */
3869 table[last & (0xffU >> shift)][last >> (8U - shift)] = out;
3877 table[last & (0xff >> shift)][last >> (8U - shift)] = 65535U;
4004 png_byte shift, sig_bit;
4038 shift = (png_byte)(16U - sig_bit); /* shift == insignificant bits */
4041 shift = 0; /* keep all 16 bits */
4049 if (shift < (16U - PNG_MAX_GAMMA_8))
4050 shift = (16U - PNG_MAX_GAMMA_8);
4053 if (shift > 8U)
4054 shift = 8U; /* Guarantees at least one table! */
4056 png_ptr->gamma_shift = shift;
4064 png_build_16to8_table(png_ptr, &png_ptr->gamma_16_table, shift,
4069 png_build_16bit_table(png_ptr, &png_ptr->gamma_16_table, shift,
4078 png_build_16bit_table(png_ptr, &png_ptr->gamma_16_to_1, shift,
4085 png_build_16bit_table(png_ptr, &png_ptr->gamma_16_from_1, shift,