Factorize rgb/bgr15/16/32->Y by using the preprocessor.