Blue color from RGBA Sergey Svistunov

Extract the Blue channel from a stream of RGBA pixels as fast as possible.

Input: 125 000 000 pixels in binary RGBA format on STDIN (4 bytes per pixel: R, G, B, A).

Output: Write only the Blue byte of each pixel to STDOUT (125 000 000 bytes total).

Discussion (0)
Log in to join the discussion.
No comments yet. Be the first to share your thoughts!