From: Steinar H. Gunderson Date: Fri, 12 Oct 2012 20:57:09 +0000 (+0200) Subject: Set RMS limit much tighter, now that we have floating-point textures. X-Git-Tag: 1.0~293 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=7e5058708668a431d1ca90d85271ec868ec94c32;hp=4b9b81cf1a7a4cd58de803c99f13e60ea0288969;ds=sidebyside Set RMS limit much tighter, now that we have floating-point textures. --- diff --git a/Makefile b/Makefile index 95661de..454dded 100644 --- 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) diff --git a/test_util.cpp b/test_util.cpp index 4e37cec..c8337d2 100644 --- a/test_util.cpp +++ b/test_util.cpp @@ -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);