This commit is contained in:
JonDeen 2015-06-09 18:07:14 +02:00
parent b69fc96ba9
commit 2d4c56607c
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ vips_sRGB2HSV_line( VipsColour *colour, VipsPel *out, VipsPel **in, int width )
c_max = p[0];
c_min = p[1];
secondary_diff = p[1] - p[2];
wrap_around_hue = 256.0f;
wrap_around_hue = 255.0f;
} else {
c_max = p[2];
c_min = VIPS_MIN(p[1], p[0]);
@ -102,7 +102,7 @@ vips_sRGB2HSV_line( VipsColour *colour, VipsPel *out, VipsPel **in, int width )
q[0] = (unsigned char) ((secondary_diff / (float) delta) + wrap_around_hue);
}
q[1] = (( delta*256.0f / (float) c_max));
q[1] = (( delta*255.0f / (float) c_max));
}
p += 3;