"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libvips/foreign/radiance.c" between
vips-8.10.6.tar.gz and vips-8.11.0.tar.gz

About: VIPS is a free image processing system (see also the GUI nip2).

radiance.c  (vips-8.10.6):radiance.c  (vips-8.11.0)
skipping to change at line 860 skipping to change at line 860
if( strcmp( read->format, COLRFMT ) == 0 ) if( strcmp( read->format, COLRFMT ) == 0 )
interpretation = VIPS_INTERPRETATION_scRGB; interpretation = VIPS_INTERPRETATION_scRGB;
else if( strcmp( read->format, CIEFMT ) == 0 ) else if( strcmp( read->format, CIEFMT ) == 0 )
interpretation = VIPS_INTERPRETATION_XYZ; interpretation = VIPS_INTERPRETATION_XYZ;
else else
interpretation = VIPS_INTERPRETATION_MULTIBAND; interpretation = VIPS_INTERPRETATION_MULTIBAND;
width = scanlen( &read->rs ); width = scanlen( &read->rs );
height = numscans( &read->rs ); height = numscans( &read->rs );
if( width <= 0 || if( width <= 0 ||
width > VIPS_MAX_COORD || width >= VIPS_MAX_COORD ||
height <= 0 || height <= 0 ||
height > VIPS_MAX_COORD ) { height >= VIPS_MAX_COORD ) {
vips_error( "rad2vips", "%s", _( "image size out of bounds" ) ); vips_error( "rad2vips", "%s", _( "image size out of bounds" ) );
return( -1 ); return( -1 );
} }
vips_image_init_fields( out, width, height, 4, vips_image_init_fields( out, width, height, 4,
VIPS_FORMAT_UCHAR, VIPS_CODING_RAD, VIPS_FORMAT_UCHAR, VIPS_CODING_RAD,
interpretation, interpretation,
1, read->aspect ); 1, read->aspect );
VIPS_SETSTR( out->filename, VIPS_SETSTR( out->filename,
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)