Factorize RGB/BGR15/16/32->UV by using the preprocessor.