Add a generic unorm_to_unorm() conversion utility
authorSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 15 Aug 2011 14:22:05 +0000 (10:22 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 20 Sep 2011 10:44:04 +0000 (06:44 -0400)
commit22f54dde6bbf87251a0b4ad93bacbdaa7cb508d8
tree764960c61b59e016a6279acab7a064be149aa6fd
parentd842669a467be490bb0a40000d0c0fccea0b1b85
Add a generic unorm_to_unorm() conversion utility

This function can convert between normalized numbers of different
depths. When converting to higher bit depths, it will replicate the
existing bits, when converting to lower bit depths, it will simply
truncate.

This function replaces the expand16() function in pixman-utils.c
pixman/pixman-private.h
pixman/pixman-utils.c