From: Alexander Larsson Date: Fri, 12 Mar 2010 15:23:42 +0000 (+0100) Subject: Add CONVERT_0565_TO_8888 macro X-Git-Tag: 1.0_branch~611 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c903d03052e1c34478556964338959b34928a388;p=profile%2Fivi%2Fpixman.git Add CONVERT_0565_TO_8888 macro This lets us simplify some fast paths since we get a consistent naming that always has 8888 and gets some value for alpha. --- diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index 9dcdca7..d0bec39 100644 --- a/pixman/pixman-private.h +++ b/pixman/pixman-private.h @@ -704,6 +704,8 @@ pixman_region16_copy_from_region32 (pixman_region16_t *dst, ((((s) << 5) & 0xfc00) | (((s) >> 1) & 0x300)) | \ ((((s) << 8) & 0xf80000) | (((s) << 3) & 0x70000))) +#define CONVERT_0565_TO_8888(s) (CONVERT_0565_TO_0888(s) | 0xff000000) + #define PIXMAN_FORMAT_IS_WIDE(f) \ (PIXMAN_FORMAT_A (f) > 8 || \ PIXMAN_FORMAT_R (f) > 8 || \