support endianess in BGRA8888 conversion