diff options
author | Marti Maria <marti.maria@littlecms.com> | 2020-05-25 14:16:04 +0200 |
---|---|---|
committer | Marti Maria <marti.maria@littlecms.com> | 2020-05-25 14:16:04 +0200 |
commit | c60ea48180760c4c4b1631cb8a272b488b96e43e (patch) | |
tree | 5f35c42d420bc48df5436733e9697391236032c4 /plugins | |
parent | d702e32c9d6dc07302aea3be2c0ad3b47d519d5e (diff) | |
download | lcms2-c60ea48180760c4c4b1631cb8a272b488b96e43e.tar.gz |
Changes from Artifex
Many thanks for sharing!
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/fast_float/Projects/VC2019/lcms2_fast_float_plugin_testbed.vcxproj | 8 | ||||
-rw-r--r-- | plugins/fast_float/testbed/fast_float_testbed.c | 46 |
2 files changed, 47 insertions, 7 deletions
diff --git a/plugins/fast_float/Projects/VC2019/lcms2_fast_float_plugin_testbed.vcxproj b/plugins/fast_float/Projects/VC2019/lcms2_fast_float_plugin_testbed.vcxproj index b9f4b42..8244865 100644 --- a/plugins/fast_float/Projects/VC2019/lcms2_fast_float_plugin_testbed.vcxproj +++ b/plugins/fast_float/Projects/VC2019/lcms2_fast_float_plugin_testbed.vcxproj @@ -70,22 +70,22 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <LinkIncremental>true</LinkIncremental> <IntDir>$(Platform)\testbed_$(Configuration)\</IntDir> - <OutDir>$(ProjectDir)..\..\testbed</OutDir> + <OutDir>$(ProjectDir)..\..\testbed\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <LinkIncremental>true</LinkIncremental> <IntDir>$(Platform)\testbed_$(Configuration)\</IntDir> - <OutDir>$(ProjectDir)..\..\testbed</OutDir> + <OutDir>$(ProjectDir)..\..\testbed\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <LinkIncremental>false</LinkIncremental> <IntDir>$(Platform)\testbed_$(Configuration)\</IntDir> - <OutDir>$(ProjectDir)..\..\testbed</OutDir> + <OutDir>$(ProjectDir)..\..\testbed\</OutDir> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <LinkIncremental>false</LinkIncremental> <IntDir>$(Platform)\testbed_$(Configuration)\</IntDir> - <OutDir>$(ProjectDir)..\..\testbed</OutDir> + <OutDir>$(ProjectDir)..\..\testbed\</OutDir> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ClCompile> diff --git a/plugins/fast_float/testbed/fast_float_testbed.c b/plugins/fast_float/testbed/fast_float_testbed.c index 96e67b9..1852bf2 100644 --- a/plugins/fast_float/testbed/fast_float_testbed.c +++ b/plugins/fast_float/testbed/fast_float_testbed.c @@ -1297,6 +1297,42 @@ cmsFloat64Number SpeedTest16bitsRGB(cmsContext ct, cmsHPROFILE hlcmsProfileIn, c } + +static +void SpeedTest8(void) +{ + cmsContext noPlugin = cmsCreateContext(0, 0); + + cmsFloat64Number t[10]; + + printf("\n\n"); + printf("P E R F O R M A N C E T E S T S 8 B I T S (D E F A U L T)\n"); + printf("==============================================================\n\n"); + fflush(stdout); + + PerformanceHeader(); + t[0] = Performance("8 bits on CLUT profiles ", SpeedTest8bitsRGB, noPlugin, "test5.icc", "test3.icc", sizeof(Scanline_rgb8bits), 0); + t[1] = Performance("8 bits on Matrix-Shaper ", SpeedTest8bitsRGB, noPlugin, "test5.icc", "test0.icc", sizeof(Scanline_rgb8bits), 0); + t[2] = Performance("8 bits on same MatrixSh ", SpeedTest8bitsRGB, noPlugin, "test0.icc", "test0.icc", sizeof(Scanline_rgb8bits), 0); + t[3] = Performance("8 bits on curves ", SpeedTest8bitsRGB, noPlugin, NULL, NULL, sizeof(Scanline_rgb8bits), 0); + + // Note that context 0 has the plug-in installed + + printf("\n\n"); + printf("P E R F O R M A N C E T E S T S 8 B I T S (P L U G I N)\n"); + printf("===========================================================\n\n"); + fflush(stdout); + + PerformanceHeader(); + Performance("8 bits on CLUT profiles ", SpeedTest8bitsRGB, 0, "test5.icc", "test3.icc", sizeof(Scanline_rgb8bits), t[0]); + Performance("8 bits on Matrix-Shaper ", SpeedTest8bitsRGB, 0, "test5.icc", "test0.icc", sizeof(Scanline_rgb8bits), t[1]); + Performance("8 bits on same MatrixSh ", SpeedTest8bitsRGB, 0, "test0.icc", "test0.icc", sizeof(Scanline_rgb8bits), t[2]); + Performance("8 bits on curves ", SpeedTest8bitsRGB, 0, NULL, NULL, sizeof(Scanline_rgb8bits), t[3]); + + cmsDeleteContext(noPlugin); +} + +#if 0 static void SpeedTest8(void) { @@ -1308,8 +1344,9 @@ void SpeedTest8(void) Performance("8 bits on Matrix-Shaper profiles", SpeedTest8bitsRGB, 0, "test5.icc", "test0.icc", sizeof(Scanline_rgb8bits), 0); Performance("8 bits on same Matrix-Shaper ", SpeedTest8bitsRGB, 0, "test0.icc", "test0.icc", sizeof(Scanline_rgb8bits), 0); Performance("8 bits on curves ", SpeedTest8bitsRGB, 0, NULL, NULL, sizeof(Scanline_rgb8bits), 0); - // Performance("8 bits on CMYK CLUT profiles ", SpeedTest8bitsCMYK, 0, "test1.icc", "test2.icc", sizeof(Scanline_rgba15bits), 0); + } +#endif static @@ -1419,6 +1456,10 @@ void SpeedTestFloat(void) } + + + + static cmsFloat64Number SpeedTestFloatByUsing16BitsRGB(cmsContext ct, cmsHPROFILE hlcmsProfileIn, cmsHPROFILE hlcmsProfileOut) { @@ -1768,8 +1809,7 @@ int main() printf("Installing plug-in ... "); cmsPlugin(cmsFastFloatExtensions()); printf("done.\n\n"); - - CheckLab2Roundtrip(); + CheckComputeIncrements(); |