Re: [AD] Color convertors |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Robin Burrows wrote:
assuming c is right aligned unsigned 6bits to 8bit is: c = (c<<2) | (c>>4) 5bits to 8bit is: c = (c<<3) | (c>>2) these properly scale the value
And that tripples the work done. -- - Robert J Ohannessian "Microsoft code is probably O(n^20)" (my CS prof) http://pages.infinit.net/voidstar/
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |