static inline void Aal_to_alpF(float *S, float F, float *row, int w, int bpp){
if(S){
- while(w--){
- float a = *S*F;
- row[3] = a;
- row+=bpp;
- }
+ while(w--){ row[3] = *S++ * F; row+=bpp; }
}else{
float a = F;
while(w--){ row[3] = a; row+=bpp; }
static inline void HSpV_correct_RGB(float H, float Sp, float &V, float &R, float &G, float &B){
float vp = Sp<0.f?0.f:(fabs(V)+HSpV_SATURATION_BIAS)*Sp*HSpV_SATURATION_ISCALE;
+#define R_TO_Y (Kr)
+#define G_TO_Y (Kg)
+#define B_TO_Y (Kb)
+
int i = (int)H;
switch(i){
default: