aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms/skcms.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/skcms/skcms.h')
-rw-r--r--third_party/skcms/skcms.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/skcms/skcms.h b/third_party/skcms/skcms.h
index 39e3cbcdb7..08779a40e6 100644
--- a/third_party/skcms/skcms.h
+++ b/third_party/skcms/skcms.h
@@ -202,6 +202,11 @@ bool skcms_Transform(const void* src,
const skcms_ICCProfile* dstProfile,
size_t npixels);
+// If profile cannot be used as a destination profile in skcms_Transform(),
+// rewrite it with approximations where reasonable or by pulling from fallback
+// (e.g. skcms_sRGB_profile) where not.
+void skcms_EnsureUsableAsDestination(skcms_ICCProfile* profile, const skcms_ICCProfile* fallback);
+
#ifdef __cplusplus
}
#endif