Searched defs:RShift (Results 1 - 2 of 2) sorted by relevance

/external/libpng/contrib/gregbook/
H A Drpng-x.c144 static int RShift, GShift, BShift; variable
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)
[all...]
H A Drpng2-x.c279 static int RShift, GShift, BShift; variable
882 RShift = 15 - rpng2_x_msb(RMask); /* these are right-shifts */
886 RShift = rpng2_x_msb(RMask) - 7; /* these are left-shifts */
890 if (depth >= 15 && (RShift < 0 || GShift < 0 || BShift < 0)) {
1017 bg_pixel = (bg_red << RShift) |
1021 bg_pixel = (((bg_red << 8) >> RShift) & RMask) |
1285 pixel = (red << RShift) |
1299 pixel = (red << RShift) |
1304 /* (probably need to use RShift, RMask, etc.) */
1322 pixel = ((red >> RShift)
[all...]

Completed in 749 milliseconds