Bug 1494222: don't check bogosity of profiles with LUT-types mAB/mBA. r=nical
authorThomas P. <pdknsk+mozilla@gmail.com>
Wed, 26 Sep 2018 08:43:33 +0000
changeset 495642 4869ae749cedcfc99427b4cf58d8a3ab92769e99
parent 495641 fd12d054f76cfe041be35fb2f50322d5378edc8a
child 495643 c1354102f8a8677614fbe9db2f654130ffe67616
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1494222
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1494222: don't check bogosity of profiles with LUT-types mAB/mBA. r=nical
gfx/qcms/iccread.c
--- a/gfx/qcms/iccread.c
+++ b/gfx/qcms/iccread.c
@@ -275,17 +275,17 @@ qcms_bool qcms_profile_is_bogus(qcms_pro
        float rX, rY, rZ, gX, gY, gZ, bX, bY, bZ;
        bool negative;
        unsigned i;
 
        // We currently only check the bogosity of RGB profiles
        if (profile->color_space != RGB_SIGNATURE)
 	       return false;
 
-       if (profile->A2B0 || profile->B2A0)
+       if (profile->A2B0 || profile->B2A0 || profile->mAB || profile->mBA)
                return false;
 
        rX = s15Fixed16Number_to_float(profile->redColorant.X);
        rY = s15Fixed16Number_to_float(profile->redColorant.Y);
        rZ = s15Fixed16Number_to_float(profile->redColorant.Z);
 
        gX = s15Fixed16Number_to_float(profile->greenColorant.X);
        gY = s15Fixed16Number_to_float(profile->greenColorant.Y);