mirror of https://github.com/GNOME/gimp.git
libgimpcolor: add gimp_lcms_profile_close()
So code that only needs a profile's metadata doesn't need to depend on lcms2 any longer.
This commit is contained in:
parent
4d99321f7f
commit
dcf21efcc2
|
@ -38,6 +38,7 @@ EXPORTS
|
|||
gimp_hsva_set
|
||||
gimp_hwb_to_rgb
|
||||
gimp_lcms_create_srgb_profile
|
||||
gimp_lcms_profile_close
|
||||
gimp_lcms_profile_get_copyright
|
||||
gimp_lcms_profile_get_description
|
||||
gimp_lcms_profile_get_label
|
||||
|
|
|
@ -186,6 +186,14 @@ gimp_lcms_profile_save_to_data (GimpColorProfile profile,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_lcms_profile_close (GimpColorProfile profile)
|
||||
{
|
||||
g_return_if_fail (profile != NULL);
|
||||
|
||||
cmsCloseProfile (profile);
|
||||
}
|
||||
|
||||
static gchar *
|
||||
gimp_lcms_profile_get_info (GimpColorProfile profile,
|
||||
cmsInfoType info)
|
||||
|
@ -462,7 +470,7 @@ gimp_lcms_create_srgb_profile (void)
|
|||
profile_data = gimp_lcms_profile_save_to_data (profile, &profile_length,
|
||||
NULL);
|
||||
|
||||
cmsCloseProfile (profile);
|
||||
gimp_lcms_profile_close (profile);
|
||||
}
|
||||
|
||||
return gimp_lcms_profile_open_from_data (profile_data, profile_length, NULL);
|
||||
|
|
|
@ -40,6 +40,7 @@ GimpColorProfile gimp_lcms_profile_open_from_data (const guint8 *data,
|
|||
guint8 * gimp_lcms_profile_save_to_data (GimpColorProfile profile,
|
||||
gsize *length,
|
||||
GError **error);
|
||||
void gimp_lcms_profile_close (GimpColorProfile profile);
|
||||
|
||||
gchar * gimp_lcms_profile_get_description (GimpColorProfile profile);
|
||||
gchar * gimp_lcms_profile_get_manufacturer (GimpColorProfile profile);
|
||||
|
|
Loading…
Reference in New Issue