Revert "improve labpack processing"

This reverts commit c4dd47aa99ea32acacc55fa793d7a5764b3a4aa8.
This commit is contained in:
Angel Sánchez 2019-07-22 09:57:06 +02:00 committed by John Cupitt
parent 4b7bd0810b
commit c7b286ff8e

View File

@ -754,15 +754,13 @@ rtiff_labpack_line( Rtiff *rtiff, VipsPel *q, VipsPel *p, int n, void *dummy )
{ {
int samples_per_pixel = rtiff->header.samples_per_pixel; int samples_per_pixel = rtiff->header.samples_per_pixel;
float pf[3];
int x; int x;
for( x = 0; x < n; x++ ) { for( x = 0; x < n; x++ ) {
pf[0] = p[0] * 100.0f / 255.0f; q[0] = p[0];
pf[1] = (signed char)p[1]; q[1] = p[1];
pf[2] = (signed char)p[2]; q[2] = p[2];
q[3] = 0;
vips__Lab2LabQ_vec(q, pf, 1);
q += 4; q += 4;
p += samples_per_pixel; p += samples_per_pixel;