quicker GA for gifload
This commit is contained in:
parent
71fb52afa0
commit
3d5f2e2b25
@ -605,13 +605,13 @@ vips_foreign_load_gif_load( VipsForeignLoad *load )
|
|||||||
im = t[1];
|
im = t[1];
|
||||||
}
|
}
|
||||||
else if( gif->has_transparency ) {
|
else if( gif->has_transparency ) {
|
||||||
/* GA.
|
/* GA. Take BA so we have neighboring channels.
|
||||||
*/
|
*/
|
||||||
if( vips_extract_band( im, &t[1], 0, NULL ) ||
|
if( vips_extract_band( im, &t[1], 2,
|
||||||
vips_extract_band( im, &t[2], 3, NULL ) ||
|
"n", 2,
|
||||||
vips_bandjoin2( t[1], t[2], &t[3], NULL ) )
|
NULL ) )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
im = t[3];
|
im = t[1];
|
||||||
im->Type = VIPS_INTERPRETATION_B_W;
|
im->Type = VIPS_INTERPRETATION_B_W;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user