Lines Matching refs:shift1
6676 uint32 j, shift1, shift2, trailing_bits; in extractImageSection() local
6758 shift1 = spp * ((first_col * bps) % 8); in extractImageSection()
6782 row, offset1, shift1, offset2, shift2); in extractImageSection()
6786 if (shift1 == 0) /* the region is byte and sample alligned */ in extractImageSection()
6829 bytebuff1 = src_buff[offset1 + j] & ((unsigned char)255 >> shift1); in extractImageSection()
6830 bytebuff2 = src_buff[offset1 + j + 1] & ((unsigned char)255 << (7 - shift1)); in extractImageSection()
6831 sect_buff[dst_offset + j] = (bytebuff1 << shift1) | (bytebuff2 >> (8 - shift1)); in extractImageSection()
6851 if (shift2 > shift1) in extractImageSection()
6854 bytebuff2 = bytebuff1 & ((unsigned char)255 << shift1); in extractImageSection()
6862 if (shift2 < shift1) in extractImageSection()
6864 bytebuff2 = ((unsigned char)255 << (shift1 - shift2 - 1)); in extractImageSection()