sync
This commit is contained in:
parent
6167d4d97c
commit
e36d8a843b
@ -572,8 +572,8 @@ vips_maplut_build( VipsObject *object )
|
|||||||
histogram->in->Bands, VipsPel * )) )
|
histogram->in->Bands, VipsPel * )) )
|
||||||
return( NULL );
|
return( NULL );
|
||||||
for( i = 0; i < histogram->in->Bands; i++ )
|
for( i = 0; i < histogram->in->Bands; i++ )
|
||||||
if( !(maplut->table[i] =
|
if( !(maplut->table[i] = VIPS_ARRAY( maplut,
|
||||||
VIPS_ARRAY( maplut, maplut->sz * maplut->es, VipsPel )) )
|
maplut->sz * maplut->es, VipsPel )) )
|
||||||
return( NULL );
|
return( NULL );
|
||||||
|
|
||||||
/* Scan LUT and fill table.
|
/* Scan LUT and fill table.
|
||||||
@ -581,7 +581,8 @@ vips_maplut_build( VipsObject *object )
|
|||||||
q = (VipsPel *) histogram->in->data;
|
q = (VipsPel *) histogram->in->data;
|
||||||
for( x = 0; x < maplut->sz; x++ )
|
for( x = 0; x < maplut->sz; x++ )
|
||||||
for( i = 0; i < maplut->nb; i++ ) {
|
for( i = 0; i < maplut->nb; i++ ) {
|
||||||
memcpy( maplut->table[i] + x * maplut->es, q, maplut->es );
|
memcpy( maplut->table[i] + x * maplut->es, q,
|
||||||
|
maplut->es );
|
||||||
q += maplut->es;
|
q += maplut->es;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user