fix labq sparc read
byteswap was swapping coded images, or trying to
This commit is contained in:
parent
add75f235f
commit
e4b31dde38
@ -1,3 +1,6 @@
|
||||
27/1/16 started 8.2.3
|
||||
- fix a crash with SPARC byte-order labq vips images
|
||||
|
||||
12/1/16 started 8.2.2
|
||||
- changes to ease compiling C++ binding with MSVC [Lovell Fuller]
|
||||
- reorder file tests to put slow loaders last
|
||||
|
@ -2,6 +2,8 @@
|
||||
*
|
||||
* 5/6/15
|
||||
* - from copy.c
|
||||
* 27/1/16
|
||||
* - don't swap coded images
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -137,6 +139,8 @@ vips_byteswap_gen( VipsRegion *or,
|
||||
|
||||
int y;
|
||||
|
||||
g_assert( swap );
|
||||
|
||||
if( vips_region_prepare( ir, r ) )
|
||||
return( -1 );
|
||||
|
||||
@ -159,6 +163,12 @@ vips_byteswap_build( VipsObject *object )
|
||||
if( VIPS_OBJECT_CLASS( vips_byteswap_parent_class )->build( object ) )
|
||||
return( -1 );
|
||||
|
||||
/* Lots of images don't need swapping.
|
||||
*/
|
||||
if( byteswap->in->Coding != VIPS_CODING_NONE ||
|
||||
!vips_byteswap_swap_fn[byteswap->in->BandFmt] )
|
||||
return( vips_image_write( byteswap->in, conversion->out ) );
|
||||
|
||||
if( vips_image_pio_input( byteswap->in ) )
|
||||
return( -1 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user