BGR is a way of encoding a color, parallel to RGB. For reasons of endian-ness, converting between BGR and RGB may sometimes be necessary.