[babl] tests: adjust float to 8bit regression test for new sRGB precision



commit 2675787f341ce259f9abec3e326b5efece45ecbf
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Thu Aug 23 10:30:32 2012 +0200

    tests: adjust float to 8bit regression test for new sRGB precision

 tests/float-to-8bit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/float-to-8bit.c b/tests/float-to-8bit.c
index b273008..0cd2b2c 100644
--- a/tests/float-to-8bit.c
+++ b/tests/float-to-8bit.c
@@ -37,7 +37,7 @@ main (int    argc,
   {
   {
     float in[][4]   = {{ 0.21582, -0.55, -0.14, 1.0 }, {0.2, 0.3, 0.5, 0.6}, {0.0, 1.0, 2.0, 3.0}};
-    unsigned char out[][4]  = {{ 55, 0, 0, 255 }, {51,77,128,153}, {0,255,255,255}};
+    unsigned char out[][4]  = {{ 55, 0, 0, 255 }, {51,76,128,153}, {0,255,255,255}};
 
     CHECK_CONV("float -> u8 1", unsigned char,
         babl_format("R'G'B'A float"),
@@ -57,7 +57,7 @@ main (int    argc,
 
   {
     float in[][4]   = {{ 0.21582, -0.55, -0.14, 1.0 }, {0.2, 0.3, 0.5, 0.6}, {0.0, 1.0, 2.0, 3.0}};
-    unsigned char out[][4]  = {{ 55, 0, 0, 255 }, {51,77,128,153}, {0,255,255,255}};
+    unsigned char out[][4]  = {{ 55, 0, 0, 255 }, {51,76,128,153}, {0,255,255,255}};
 
     CHECK_CONV("float -> u8 3", unsigned char,
         babl_format("RGBA float"),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]