Merge branch '7.40'
Conflicts: ChangeLog configure.ac libvips/colour/Lab2LabQ.c libvips/colour/Lab2LabS.c libvips/colour/LabS2Lab.c libvips/colour/LabS2LabQ.c libvips/colour/float2rad.c libvips/colour/sRGB2scRGB.c libvips/colour/scRGB2sRGB.c
This commit is contained in:
commit
5225d70438
@ -12,10 +12,12 @@
|
|||||||
- python vips8 binding
|
- python vips8 binding
|
||||||
- python vips8 test suite: test_arithmetic.py, test_colour.py,
|
- python vips8 test suite: test_arithmetic.py, test_colour.py,
|
||||||
test_conversion.py
|
test_conversion.py
|
||||||
- better extra band handling by colour, again
|
|
||||||
- move zoomify ImageProperties file, now a better match to the offical tool
|
- move zoomify ImageProperties file, now a better match to the offical tool
|
||||||
- rename VIPS_ANGLE_180 as VIPS_ANGLE_D180 etc. to help python
|
- rename VIPS_ANGLE_180 as VIPS_ANGLE_D180 etc. to help python
|
||||||
|
|
||||||
|
8/10/14 started 7.40.11
|
||||||
|
- rework extra band handling for colour functions
|
||||||
|
|
||||||
8/9/14 started 7.40.10
|
8/9/14 started 7.40.10
|
||||||
- icc_import and icc_transform checks the input profile for compatibility
|
- icc_import and icc_transform checks the input profile for compatibility
|
||||||
with the image, thanks James
|
with the image, thanks James
|
||||||
|
@ -149,11 +149,11 @@ vips_Lab2LabQ_init( VipsLab2LabQ *Lab2LabQ )
|
|||||||
colour->coding = VIPS_CODING_LABQ;
|
colour->coding = VIPS_CODING_LABQ;
|
||||||
colour->interpretation = VIPS_INTERPRETATION_LABQ;
|
colour->interpretation = VIPS_INTERPRETATION_LABQ;
|
||||||
colour->format = VIPS_FORMAT_UCHAR;
|
colour->format = VIPS_FORMAT_UCHAR;
|
||||||
|
colour->input_bands = 3;
|
||||||
colour->bands = 4;
|
colour->bands = 4;
|
||||||
|
|
||||||
code->input_coding = VIPS_CODING_NONE;
|
code->input_coding = VIPS_CODING_NONE;
|
||||||
code->input_format = VIPS_FORMAT_FLOAT;
|
code->input_format = VIPS_FORMAT_FLOAT;
|
||||||
colour->input_bands = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -90,11 +90,11 @@ vips_Lab2LabS_init( VipsLab2LabS *Lab2LabS )
|
|||||||
|
|
||||||
colour->interpretation = VIPS_INTERPRETATION_LABS;
|
colour->interpretation = VIPS_INTERPRETATION_LABS;
|
||||||
colour->format = VIPS_FORMAT_SHORT;
|
colour->format = VIPS_FORMAT_SHORT;
|
||||||
|
colour->input_bands = 3;
|
||||||
colour->bands = 3;
|
colour->bands = 3;
|
||||||
|
|
||||||
code->input_coding = VIPS_CODING_NONE;
|
code->input_coding = VIPS_CODING_NONE;
|
||||||
code->input_format = VIPS_FORMAT_FLOAT;
|
code->input_format = VIPS_FORMAT_FLOAT;
|
||||||
colour->input_bands = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -88,11 +88,11 @@ vips_LabS2Lab_init( VipsLabS2Lab *LabS2Lab )
|
|||||||
|
|
||||||
colour->interpretation = VIPS_INTERPRETATION_LAB;
|
colour->interpretation = VIPS_INTERPRETATION_LAB;
|
||||||
colour->format = VIPS_FORMAT_FLOAT;
|
colour->format = VIPS_FORMAT_FLOAT;
|
||||||
|
colour->input_bands = 3;
|
||||||
colour->bands = 3;
|
colour->bands = 3;
|
||||||
|
|
||||||
code->input_coding = VIPS_CODING_NONE;
|
code->input_coding = VIPS_CODING_NONE;
|
||||||
code->input_format = VIPS_FORMAT_SHORT;
|
code->input_format = VIPS_FORMAT_SHORT;
|
||||||
colour->input_bands = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -137,11 +137,11 @@ vips_LabS2LabQ_init( VipsLabS2LabQ *LabS2LabQ )
|
|||||||
colour->coding = VIPS_CODING_LABQ;
|
colour->coding = VIPS_CODING_LABQ;
|
||||||
colour->interpretation = VIPS_INTERPRETATION_LABQ;
|
colour->interpretation = VIPS_INTERPRETATION_LABQ;
|
||||||
colour->format = VIPS_FORMAT_UCHAR;
|
colour->format = VIPS_FORMAT_UCHAR;
|
||||||
|
colour->input_bands = 3;
|
||||||
colour->bands = 4;
|
colour->bands = 4;
|
||||||
|
|
||||||
code->input_coding = VIPS_CODING_NONE;
|
code->input_coding = VIPS_CODING_NONE;
|
||||||
code->input_format = VIPS_FORMAT_SHORT;
|
code->input_format = VIPS_FORMAT_SHORT;
|
||||||
colour->input_bands = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -212,11 +212,11 @@ vips_float2rad_init( VipsFloat2rad *float2rad )
|
|||||||
colour->coding = VIPS_CODING_RAD;
|
colour->coding = VIPS_CODING_RAD;
|
||||||
colour->interpretation = VIPS_INTERPRETATION_scRGB;
|
colour->interpretation = VIPS_INTERPRETATION_scRGB;
|
||||||
colour->format = VIPS_FORMAT_UCHAR;
|
colour->format = VIPS_FORMAT_UCHAR;
|
||||||
|
colour->input_bands = 3;
|
||||||
colour->bands = 4;
|
colour->bands = 4;
|
||||||
|
|
||||||
code->input_coding = VIPS_CODING_NONE;
|
code->input_coding = VIPS_CODING_NONE;
|
||||||
code->input_format = VIPS_FORMAT_FLOAT;
|
code->input_format = VIPS_FORMAT_FLOAT;
|
||||||
colour->input_bands = 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -506,7 +506,9 @@ vips_icc_load_profile_image( const char *domain, VipsImage *image )
|
|||||||
return( NULL );
|
return( NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( image->Bands != vips_icc_profile_needs_bands( profile ) ) {
|
/* We allow extra bands for eg. alpha.
|
||||||
|
*/
|
||||||
|
if( image->Bands < vips_icc_profile_needs_bands( profile ) ) {
|
||||||
VIPS_FREEF( cmsCloseProfile, profile );
|
VIPS_FREEF( cmsCloseProfile, profile );
|
||||||
vips_warn( domain,
|
vips_warn( domain,
|
||||||
"%s", _( "embedded profile incompatible with image" ) );
|
"%s", _( "embedded profile incompatible with image" ) );
|
||||||
@ -528,7 +530,9 @@ vips_icc_load_profile_file( const char *domain,
|
|||||||
return( NULL );
|
return( NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( image->Bands != vips_icc_profile_needs_bands( profile ) ) {
|
/* We allow extra bands for eg. alpha.
|
||||||
|
*/
|
||||||
|
if( image->Bands < vips_icc_profile_needs_bands( profile ) ) {
|
||||||
VIPS_FREEF( cmsCloseProfile, profile );
|
VIPS_FREEF( cmsCloseProfile, profile );
|
||||||
vips_warn( domain,
|
vips_warn( domain,
|
||||||
_( "profile \"%s\" incompatible with image" ),
|
_( "profile \"%s\" incompatible with image" ),
|
||||||
|
@ -163,10 +163,10 @@ vips_sRGB2scRGB_init( VipssRGB2scRGB *sRGB2scRGB )
|
|||||||
colour->coding = VIPS_CODING_NONE;
|
colour->coding = VIPS_CODING_NONE;
|
||||||
colour->interpretation = VIPS_INTERPRETATION_scRGB;
|
colour->interpretation = VIPS_INTERPRETATION_scRGB;
|
||||||
colour->format = VIPS_FORMAT_FLOAT;
|
colour->format = VIPS_FORMAT_FLOAT;
|
||||||
|
colour->input_bands = 3;
|
||||||
colour->bands = 3;
|
colour->bands = 3;
|
||||||
|
|
||||||
code->input_coding = VIPS_CODING_NONE;
|
code->input_coding = VIPS_CODING_NONE;
|
||||||
colour->input_bands = 3;
|
|
||||||
|
|
||||||
/* The default. This can get changed above ^^ if we see a
|
/* The default. This can get changed above ^^ if we see a
|
||||||
* 16-bit input.
|
* 16-bit input.
|
||||||
|
@ -208,10 +208,10 @@ vips_scRGB2sRGB_init( VipsscRGB2sRGB *scRGB2sRGB )
|
|||||||
colour->coding = VIPS_CODING_NONE;
|
colour->coding = VIPS_CODING_NONE;
|
||||||
colour->interpretation = VIPS_INTERPRETATION_sRGB;
|
colour->interpretation = VIPS_INTERPRETATION_sRGB;
|
||||||
colour->format = VIPS_FORMAT_UCHAR;
|
colour->format = VIPS_FORMAT_UCHAR;
|
||||||
|
colour->input_bands = 3;
|
||||||
colour->bands = 3;
|
colour->bands = 3;
|
||||||
|
|
||||||
code->input_coding = VIPS_CODING_NONE;
|
code->input_coding = VIPS_CODING_NONE;
|
||||||
colour->input_bands = 3;
|
|
||||||
code->input_format = VIPS_FORMAT_FLOAT;
|
code->input_format = VIPS_FORMAT_FLOAT;
|
||||||
|
|
||||||
scRGB2sRGB->depth = 8;
|
scRGB2sRGB->depth = 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user