more dbg code

This commit is contained in:
John Cupitt 2021-06-30 14:30:02 +01:00
parent 757d031005
commit 7e5312f626
1 changed files with 9 additions and 1 deletions

View File

@ -435,7 +435,15 @@ vips_icc_print_profile( const char *name, cmsHPROFILE profile )
}
printf( "profile class: %#x\n", cmsGetDeviceClass( profile ) );
printf( "PCS: %#x\n", cmsGetPCS( profile ) );
{
cmsColorSpaceSignature pcs = cmsGetPCS( profile );
guint pcs_as_be = GUINT_TO_BE( pcs );
char name[5];
vips_strncpy( name, (const char *) &pcs_as_be, 5 );
printf( "PCS: %#x (%s)\n", pcs, name );
}
printf( "matrix shaper: %d\n", cmsIsMatrixShaper( profile ) );
printf( "version: %g\n", cmsGetProfileVersion( profile ) );