diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /image/test/reftest/color-management | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'image/test/reftest/color-management')
-rw-r--r-- | image/test/reftest/color-management/color-curv.png | bin | 0 -> 1753 bytes | |||
-rw-r--r-- | image/test/reftest/color-management/color-lin.png | bin | 0 -> 1749 bytes | |||
-rw-r--r-- | image/test/reftest/color-management/color-table.png | bin | 0 -> 1754 bytes | |||
-rw-r--r-- | image/test/reftest/color-management/invalid-chrm-ref.png | bin | 0 -> 1460 bytes | |||
-rw-r--r-- | image/test/reftest/color-management/invalid-chrm.png | bin | 0 -> 1504 bytes | |||
-rw-r--r-- | image/test/reftest/color-management/invalid-whitepoint.png | bin | 0 -> 1504 bytes | |||
-rw-r--r-- | image/test/reftest/color-management/reftest-stylo.list | 8 | ||||
-rw-r--r-- | image/test/reftest/color-management/reftest.list | 7 | ||||
-rw-r--r-- | image/test/reftest/color-management/trc-type-ref.html | 8 | ||||
-rw-r--r-- | image/test/reftest/color-management/trc-type.html | 53 |
10 files changed, 76 insertions, 0 deletions
diff --git a/image/test/reftest/color-management/color-curv.png b/image/test/reftest/color-management/color-curv.png Binary files differnew file mode 100644 index 000000000..994e3a38a --- /dev/null +++ b/image/test/reftest/color-management/color-curv.png diff --git a/image/test/reftest/color-management/color-lin.png b/image/test/reftest/color-management/color-lin.png Binary files differnew file mode 100644 index 000000000..0ee276fca --- /dev/null +++ b/image/test/reftest/color-management/color-lin.png diff --git a/image/test/reftest/color-management/color-table.png b/image/test/reftest/color-management/color-table.png Binary files differnew file mode 100644 index 000000000..355b3a2ba --- /dev/null +++ b/image/test/reftest/color-management/color-table.png diff --git a/image/test/reftest/color-management/invalid-chrm-ref.png b/image/test/reftest/color-management/invalid-chrm-ref.png Binary files differnew file mode 100644 index 000000000..85f83f783 --- /dev/null +++ b/image/test/reftest/color-management/invalid-chrm-ref.png diff --git a/image/test/reftest/color-management/invalid-chrm.png b/image/test/reftest/color-management/invalid-chrm.png Binary files differnew file mode 100644 index 000000000..33dc9e9ce --- /dev/null +++ b/image/test/reftest/color-management/invalid-chrm.png diff --git a/image/test/reftest/color-management/invalid-whitepoint.png b/image/test/reftest/color-management/invalid-whitepoint.png Binary files differnew file mode 100644 index 000000000..383a0a035 --- /dev/null +++ b/image/test/reftest/color-management/invalid-whitepoint.png diff --git a/image/test/reftest/color-management/reftest-stylo.list b/image/test/reftest/color-management/reftest-stylo.list new file mode 100644 index 000000000..64f503fe6 --- /dev/null +++ b/image/test/reftest/color-management/reftest-stylo.list @@ -0,0 +1,8 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +# Colormangement + +# test for bug 489133, test for bug 460520 +fails == invalid-chrm.png invalid-chrm.png +fails == invalid-whitepoint.png invalid-whitepoint.png +# test for bug 488955 +== trc-type.html trc-type.html diff --git a/image/test/reftest/color-management/reftest.list b/image/test/reftest/color-management/reftest.list new file mode 100644 index 000000000..ee6e16adb --- /dev/null +++ b/image/test/reftest/color-management/reftest.list @@ -0,0 +1,7 @@ +# Colormangement + +# test for bug 489133, test for bug 460520 +== invalid-chrm.png invalid-chrm-ref.png +== invalid-whitepoint.png invalid-chrm-ref.png +# test for bug 488955 +== trc-type.html trc-type-ref.html diff --git a/image/test/reftest/color-management/trc-type-ref.html b/image/test/reftest/color-management/trc-type-ref.html new file mode 100644 index 000000000..5140e6e6a --- /dev/null +++ b/image/test/reftest/color-management/trc-type-ref.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<html> +<body> + <img src="color-lin.png"> + <img src="color-curv.png"> + <img src="color-table.png"> +</body> +</html> diff --git a/image/test/reftest/color-management/trc-type.html b/image/test/reftest/color-management/trc-type.html new file mode 100644 index 000000000..f13052bbf --- /dev/null +++ b/image/test/reftest/color-management/trc-type.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> +<body> + <!-- All of these images should render the same + they all have icc profiles with different + but equivalent tone reproduction curves. + + The profiles were generated with the following code and added to the images using pngcrush. + + cmsHPROFILE profile = cmsCreate_sRGBProfile(); + + cmsAddTag(profile, icSigDeviceMfgDescTag, (LPVOID) "(lcms moz internal)"); + cmsAddTag(profile, icSigDeviceModelDescTag, (LPVOID) "linear"); + cmsAddTag(profile, icSigProfileDescriptionTag, (LPVOID) "linear"); + + GAMMATABLE linear_trc; + linear_trc.nEntries = 0; + + cmsAddTag(profile, icSigRedTRCTag, &linear_trc); + cmsAddTag(profile, icSigGreenTRCTag, &linear_trc); + cmsAddTag(profile, icSigBlueTRCTag, &linear_trc); + + _cmsSaveProfile(profile, "linear_gen.icc"); + + GAMMATABLE linear_curve_trc; + linear_curve_trc.nEntries = 1; + linear_curve_trc.GammaTable[0] = 0x0100; + + cmsAddTag(profile, icSigRedTRCTag, &linear_curve_trc); + cmsAddTag(profile, icSigGreenTRCTag, &linear_curve_trc); + cmsAddTag(profile, icSigBlueTRCTag, &linear_curve_trc); + + _cmsSaveProfile(profile, "linear_curve_gen.icc"); + + GAMMATABLE *linear_table_trc = malloc(sizeof(GAMMATABLE) + sizeof(short)*2); + linear_table_trc->nEntries = 2; + linear_table_trc->GammaTable[0] = 0x0; + linear_table_trc->GammaTable[1] = 0xffff; + + cmsAddTag(profile, icSigRedTRCTag, linear_table_trc); + cmsAddTag(profile, icSigGreenTRCTag, linear_table_trc); + cmsAddTag(profile, icSigBlueTRCTag, linear_table_trc); + + _cmsSaveProfile(profile, "linear_table_gen.icc"); + + free(linear_table_trc); + + --> + <img src="color-curv.png"> + <img src="color-table.png"> + <img src="color-lin.png"> +</body> +</html> |