Support multiple pixel formats in scaler