X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=lift_gamma_gain_effect_test.cpp;h=3e63679fa2f4ddc1aec719cc888ffca9290d3081;hp=00c96ca6b33efdcef06e8c000bfe0e422dda22db;hb=b10c546f579c7ccb5939161e61a71cd18a3f9bbd;hpb=caa05550e868db406e4b54e69d60b5573f59cb60 diff --git a/lift_gamma_gain_effect_test.cpp b/lift_gamma_gain_effect_test.cpp index 00c96ca..3e63679 100644 --- a/lift_gamma_gain_effect_test.cpp +++ b/lift_gamma_gain_effect_test.cpp @@ -14,7 +14,7 @@ TEST(LiftGammaGainEffectTest, DefaultIsNoop) { }; float out_data[5 * 4]; - EffectChainTester tester(data, 1, 5, FORMAT_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(data, 1, 5, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_LINEAR); tester.get_chain()->add_effect(new LiftGammaGainEffect()); tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR); @@ -39,7 +39,7 @@ TEST(LiftGammaGainEffectTest, Gain) { }; float out_data[5 * 4]; - EffectChainTester tester(data, 1, 5, FORMAT_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(data, 1, 5, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_LINEAR); Effect *lgg_effect = tester.get_chain()->add_effect(new LiftGammaGainEffect()); ASSERT_TRUE(lgg_effect->set_vec3("gain", gain)); tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR); @@ -65,7 +65,7 @@ TEST(LiftGammaGainEffectTest, LiftIsDoneInApproximatelysRGB) { }; float out_data[5 * 4]; - EffectChainTester tester(data, 1, 5, FORMAT_RGBA, COLORSPACE_sRGB, GAMMA_sRGB); + EffectChainTester tester(data, 1, 5, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_sRGB); Effect *lgg_effect = tester.get_chain()->add_effect(new LiftGammaGainEffect()); ASSERT_TRUE(lgg_effect->set_vec3("lift", lift)); tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_sRGB); @@ -85,7 +85,7 @@ TEST(LiftGammaGainEffectTest, Gamma22IsApproximatelysRGB) { float gamma[3] = { 2.2f, 2.2f, 2.2f }; float out_data[5 * 4]; - EffectChainTester tester(data, 1, 5, FORMAT_RGBA, COLORSPACE_sRGB, GAMMA_sRGB); + EffectChainTester tester(data, 1, 5, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_sRGB); Effect *lgg_effect = tester.get_chain()->add_effect(new LiftGammaGainEffect()); ASSERT_TRUE(lgg_effect->set_vec3("gamma", gamma)); tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR);