Methods, apparatuses, systems, and machine readable media for pixel
transformations. One exemplary method includes: determining a state of a
pixel format transformation, wherein a pixel format includes a
predetermined number of pixel data components and a predetermined number
of bits for each of the pixel data components and wherein the state
includes a source pixel format and a destination pixel format and at
least one intermediate pixel format; converting pixel data in the source
pixel format to pixel data in the intermediate pixel format; and
converting the pixel data in the intermediate pixel format to pixel data
in the destination pixel format. In certain embodiments, a method
includes building and compiling a function, at run-time, for the pixel
format transformation based upon the state.