summaryrefslogtreecommitdiffstats
path: root/debian/lcms/lcms-1.19.dfsg2/python/testbed/createmsh.py
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-09-11 14:38:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-09-11 14:38:47 +0900
commit884c8093d63402a1ad0b502244b791e3c6782be3 (patch)
treea600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/lcms/lcms-1.19.dfsg2/python/testbed/createmsh.py
parent14e1aa2006796f147f3f4811fb908a6b01e79253 (diff)
downloadextra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz
extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/lcms/lcms-1.19.dfsg2/python/testbed/createmsh.py')
-rwxr-xr-xdebian/lcms/lcms-1.19.dfsg2/python/testbed/createmsh.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/lcms/lcms-1.19.dfsg2/python/testbed/createmsh.py b/debian/lcms/lcms-1.19.dfsg2/python/testbed/createmsh.py
new file mode 100755
index 00000000..b4e15cb8
--- /dev/null
+++ b/debian/lcms/lcms-1.19.dfsg2/python/testbed/createmsh.py
@@ -0,0 +1,37 @@
+#
+# Sample: Creates and saves a matrix-shaper profile
+#
+
+from lcms import *
+
+Rec709Primaries = cmsCIExyYTRIPLE(cmsCIExyY(0.6400, 0.3300, 1.0),
+ cmsCIExyY(0.3000, 0.6000, 1.0),
+ cmsCIExyY(0.1500, 0.0600, 1.0))
+
+
+Gamma22 = GAMMATABLE(2.2, 4096)
+D65 = cmsCIExyY()
+cmsWhitePointFromTemp(6504, D65)
+
+hVirtual_sRGB = cmsCreateRGBProfile(D65,
+ Rec709Primaries,
+ (Gamma22, Gamma22, Gamma22));
+
+
+
+#
+# This should probably be bettered somehow...
+#
+
+icSigProfileDescriptionTag = icTagSignature(0x64657363)
+text = StrPointer("Sample sRGB profile")
+
+
+cmsAddTag(hVirtual_sRGB, icSigProfileDescriptionTag, text)
+
+
+cmsSaveProfile(hVirtual_sRGB, "Virtual_sRGB.icm")
+
+cmsCloseProfile(hVirtual_sRGB)
+
+