|
|
@ -149,13 +149,13 @@ static void performance(int argc, char **argv) |
|
|
|
int n, i; |
|
|
|
int n, i; |
|
|
|
int out_w, out_h, srgb=1; |
|
|
|
int out_w, out_h, srgb=1; |
|
|
|
input_pixels = stbi_load(argv[1], &w, &h, &n, 0); |
|
|
|
input_pixels = stbi_load(argv[1], &w, &h, &n, 0); |
|
|
|
#if 0 |
|
|
|
#if 1 |
|
|
|
out_w = w/4; out_h h/4; count=100; // 1
|
|
|
|
out_w = w/4; out_h h/4; count=100; // 1
|
|
|
|
#elif 0 |
|
|
|
#elif 0 |
|
|
|
out_w = w*2; out_h = h/4; count=20; // 2 // note this is structured pessimily, would be much faster to downsample vertically first
|
|
|
|
out_w = w*2; out_h = h/4; count=20; // 2 // note this is structured pessimily, would be much faster to downsample vertically first
|
|
|
|
#elif 0 |
|
|
|
#elif 0 |
|
|
|
out_w = w/4; out_h = h*2; count=50; // 3
|
|
|
|
out_w = w/4; out_h = h*2; count=50; // 3
|
|
|
|
#elif 1 |
|
|
|
#elif 0 |
|
|
|
out_w = w*3; out_h = h*3; count=5; srgb=0; // 4
|
|
|
|
out_w = w*3; out_h = h*3; count=5; srgb=0; // 4
|
|
|
|
#else |
|
|
|
#else |
|
|
|
out_w = w*3; out_h = h*3; count=3; // 5 // this is dominated by linear->sRGB conversion
|
|
|
|
out_w = w*3; out_h = h*3; count=3; // 5 // this is dominated by linear->sRGB conversion
|
|
|
@ -181,7 +181,7 @@ int main(int argc, char** argv) |
|
|
|
int out_w, out_h, out_stride; |
|
|
|
int out_w, out_h, out_stride; |
|
|
|
|
|
|
|
|
|
|
|
//resizer(argc, argv);
|
|
|
|
//resizer(argc, argv);
|
|
|
|
performance(argc, argv); |
|
|
|
//performance(argc, argv);
|
|
|
|
|
|
|
|
|
|
|
|
#if 1 |
|
|
|
#if 1 |
|
|
|
test_suite(argc, argv); |
|
|
|
test_suite(argc, argv); |
|
|
|