support endianess in AYUV conversion