Set RMS limit much tighter, now that we have floating-point textures.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 Oct 2012 20:57:09 +0000 (22:57 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 Oct 2012 20:57:09 +0000 (22:57 +0200)
Makefile
test_util.cpp

index 95661de..454dded 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ LDFLAGS += -fprofile-arcs -ftest-coverage
 endif
 
 DEMO_OBJS=demo.o
-TESTS=effect_chain_test mix_effect_test gamma_expansion_effect_test
+TESTS=effect_chain_test mix_effect_test gamma_expansion_effect_test gamma_compression_effect_test
 
 # Core.
 LIB_OBJS=util.o widgets.o effect.o effect_chain.o
@@ -57,6 +57,8 @@ mix_effect_test: mix_effect_test.o $(TEST_OBJS) libmovit.a
        $(CXX) -o $@ $^ $(LDFLAGS)
 gamma_expansion_effect_test: gamma_expansion_effect_test.o $(TEST_OBJS) libmovit.a
        $(CXX) -o $@ $^ $(LDFLAGS)
+gamma_compression_effect_test: gamma_compression_effect_test.o $(TEST_OBJS) libmovit.a
+       $(CXX) -o $@ $^ $(LDFLAGS)
 
 OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(TEST_OBJS) $(TESTS:=.o)
 
index 4e37cec..c8337d2 100644 (file)
@@ -82,7 +82,7 @@ void expect_equal(const float *ref, const float *result, unsigned width, unsigne
        }
 
        const float largest_difference_limit = 1.5 / 255.0;
-       const float rms_limit = 0.5 / 255.0;
+       const float rms_limit = 0.2 / 255.0;
 
        EXPECT_LT(largest_difference, largest_difference_limit);