Anyone know an efficient way to convert a block of BGRA bytes into RGBA? I could do it with a 'for' loop, take four bytes at a time, do some bit-shifts and & operators to get the color components and then reconstruct them with more bit-shifts and | operators, but I have a feeling that would be really slow.. Anyone have some experience with this before?
--EDIT--
.. or I could just read in four separate bytes and rearrange them, haha.. still I wonder if a for loop is the most efficient way to do this, but at least it doesn't have to be so complicated..