From eb0781fda0bc31c5397a8a4fff3ce45fa4a8aef2 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 18 Aug 2014 09:01:33 -0700 Subject: [PATCH] add comments describing the purpose of the s,t-rectangle tests --- tests/resample_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/resample_test.cpp b/tests/resample_test.cpp index ac9e200..2a87eca 100644 --- a/tests/resample_test.cpp +++ b/tests/resample_test.cpp @@ -350,6 +350,7 @@ void test_premul(const char* file) free(output_data); } +// test that splitting a pow-2 image into tiles produces identical results void test_subpixel_1() { unsigned char image[8 * 8]; @@ -379,6 +380,7 @@ void test_subpixel_1() } } +// test that replicating an image and using a subtile of it produces same results as wraparound void test_subpixel_2() { unsigned char image[8 * 8]; @@ -415,6 +417,7 @@ void test_subpixel_2() }} } +// test that 0,0,1,1 subpixel produces same result as no-rect void test_subpixel_3() { unsigned char image[8 * 8]; @@ -437,6 +440,7 @@ void test_subpixel_3() } } +// test that 1:1 resample using s,t=0,0,1,1 with bilinear produces original image void test_subpixel_4() { unsigned char image[8 * 8];