[babl] also test >1.0 values when converting from float to u8



commit f4058b36784fc2f795995925ccf7040e98ca1c78
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Tue May 1 13:40:28 2012 +0200

    also test >1.0 values when converting from float to u8

 tests/floatclamp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/floatclamp.c b/tests/floatclamp.c
index 953b701..617b440 100644
--- a/tests/floatclamp.c
+++ b/tests/floatclamp.c
@@ -56,8 +56,8 @@ main (int    argc,
   int OK = 1;
   babl_init ();
   {
-    float in[][4]   = {{ 0.21582, -0.55, -0.14, 1.0 }};
-    unsigned char out[][4]  = {{ 55, 0, 0, 255 }};
+    float in[][4]   = {{ 0.21582, -0.55, -0.14, 1.0 }, {0.0, 1.0, 2.0, 3.0}};
+    unsigned char out[][4]  = {{ 55, 0, 0, 255 }, {0,255,255,255}};
 
     CHECK_CONV("float -> u8", unsigned char,
         babl_format("R'G'B'A float"),



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