Home | History | Annotate | Download | only in gregbook

Lines Matching refs:RShift

144 static int RShift, GShift, BShift;
517 RShift = 15 - rpng_x_msb(RMask); /* these are right-shifts */
523 RShift = rpng_x_msb(RMask) - 7; /* these are left-shifts */
527 RShift = 7 - rpng_x_msb(RMask); /* these are right-shifts, too */
532 if (depth >= 15 && (RShift < 0 || GShift < 0 || BShift < 0)) {
614 bg_pixel = ((ulg)bg_red << RShift) |
618 bg_pixel = ((((ulg)bg_red << 8) >> RShift) & RMask) |
717 pixel = (red << RShift) |
727 red = (RShift < 0)? red << (-RShift) : red >> RShift;
760 pixel = (red << RShift) |
793 pixel = ((red >> RShift) & RMask) |
825 pixel = ((red >> RShift) & RMask) |