use uint8_t* in swizzleRGBtoBGRpacked