Monday, February 8, 2016

Big Endian vs Little Endian

Today I decided to add support for explicit big endian images to cornerstone.  Sometimes I run into images that don't render properly and wonder if this is due to a byte swap issue.  To help me remember what a byte swapping issue looks like, I figured I would take screen captures with and without the bytes swapped.  Here is the image displayed properly:



And with the bytes not properly swapped: