X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=slice_effect_test.cpp;h=163561e7a769b47c1e10342fc1eb973f2e988d4e;hp=477c7a72543c378071c13b77233f64b26b8f0f8b;hb=376535a970b25a268bef44cd3c32a3630e605734;hpb=9e219b96e914b2e5709ba3c3345afdc3cf13a78d diff --git a/slice_effect_test.cpp b/slice_effect_test.cpp index 477c7a7..163561e 100644 --- a/slice_effect_test.cpp +++ b/slice_effect_test.cpp @@ -26,7 +26,7 @@ TEST(SliceEffectTest, Identity) { }; float out_data[output_size * size]; - EffectChainTester tester(NULL, output_size, size, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(nullptr, output_size, size, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.add_input(data, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, size, size); Effect *slice_effect = tester.get_chain()->add_effect(new SliceEffect()); @@ -49,7 +49,7 @@ TEST(SliceEffectTest, HorizontalOverlap) { }; float out_data[9 * 2]; - EffectChainTester tester(NULL, 9, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(nullptr, 9, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.add_input(data, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, 5, 2); Effect *slice_effect = tester.get_chain()->add_effect(new SliceEffect()); @@ -72,7 +72,7 @@ TEST(SliceEffectTest, HorizontalDiscard) { }; float out_data[4 * 2]; - EffectChainTester tester(NULL, 4, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(nullptr, 4, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.add_input(data, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, 6, 2); Effect *slice_effect = tester.get_chain()->add_effect(new SliceEffect()); @@ -95,7 +95,7 @@ TEST(SliceEffectTest, HorizontalOverlapWithOffset) { }; float out_data[9 * 2]; - EffectChainTester tester(NULL, 9, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(nullptr, 9, 2, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.add_input(data, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, 5, 2); Effect *slice_effect = tester.get_chain()->add_effect(new SliceEffect()); @@ -126,7 +126,7 @@ TEST(SliceEffectTest, VerticalOverlapSlicesFromTop) { }; float out_data[2 * 6]; - EffectChainTester tester(NULL, 2, 6, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(nullptr, 2, 6, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.add_input(data, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, 2, 3); Effect *slice_effect = tester.get_chain()->add_effect(new SliceEffect()); @@ -156,7 +156,7 @@ TEST(SliceEffectTest, VerticalOverlapOffsetsFromTop) { }; float out_data[2 * 6]; - EffectChainTester tester(NULL, 2, 6, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); + EffectChainTester tester(nullptr, 2, 6, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR); tester.add_input(data, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, 2, 3); Effect *slice_effect = tester.get_chain()->add_effect(new SliceEffect());