Commit graph

649 commits

Author SHA1 Message Date
Pavel Krajcevski 341842d725 Make sure to not even compile the definition for the SIMD function. 2012-09-13 17:43:58 -04:00
Pavel Krajcevski ef2a370fc6 Move error metric to regular BC7Compressor so that we can use it even if we can't use SIMD. 2012-09-13 16:57:36 -04:00
Pavel Krajcevski 47fbfa1615 Avoid SIMD functions if they're not defined. 2012-09-13 16:57:10 -04:00
Pavel Krajcevski a850cf0103 Make sure to not delete potentially empty pointers. 2012-09-13 16:56:44 -04:00
Pavel Krajcevski acd20ea8ac Add flag for when we don't have SSE 2012-09-13 16:56:18 -04:00
Pavel Krajcevski 71e04f56e4 Merge branch 'CommandLineTool' of git.cs.unc.edu:pavel/TexComp into CommandLineTool 2012-09-13 16:32:31 -04:00
Pavel Krajcevski 8799bf4ea8 Make sure to properly exit if there are no command line arguments. 2012-09-13 16:32:07 -04:00
Pavel Krajcevski 31f6233da2 Add minor performance enhancements 2012-09-13 16:31:48 -04:00
Pavel Krajcevski ba8ac8e292 Fix memory leak 2012-08-31 23:22:05 -04:00
Pavel Krajcevski 7b69c38da5 Switch OSX timer to real-time too. 2012-08-31 18:26:59 -04:00
Pavel Krajcevski f2b9c39801 Change unix clock to realtime 2012-08-31 18:05:29 -04:00
Pavel Krajcevski 278a59e24a Now that we fixed sync issues, we should have better timings... 2012-08-31 17:45:55 -04:00
Pavel Krajcevski 44884a18b3 Add join synchronization. 2012-08-31 17:33:54 -04:00
Pavel Krajcevski a6bbc3989f Implement threading capabilities. Still need better thread synchronization... 2012-08-31 14:58:51 -04:00
Pavel Krajcevski fc4cf7758b Add ability to change quality of BPTC encoder. 2012-08-30 17:46:34 -04:00
Pavel Krajcevski add2f6fd96 Add some more flag support to unix command line tool... 2012-08-30 17:37:23 -04:00
Pavel Krajcevski 588f58b237 Fix stop watch for unix. 2012-08-30 17:13:36 -04:00
Pavel Krajcevski 70674e5665 Merge branch 'CommandLineTool' of git.cs.unc.edu:pavel/TexComp into CommandLineTool 2012-08-30 16:58:06 -04:00
Pavel Krajcevski d8fc05a763 Fix timing functions for various platforms. 2012-08-30 16:56:42 -04:00
Pavel Krajcevski 720ad0ac6f Add stopwatch to both threaded and unthreaded paths. Still need to actually write unix stopwatch implementation. 2012-08-30 14:00:18 -04:00
Pavel Krajcevski 2ad2e94584 Move type defines into core library... all modules should have a standard set of types. 2012-08-30 13:28:28 -04:00
Pavel Krajcevski 1a0c3365da Remove old main.cpp and move stop watch to core library. 2012-08-30 11:59:08 -04:00
Pavel Krajcevski 11f3ec9c36 Add stdlib includes 2012-08-29 17:57:04 -04:00
Pavel Krajcevski d102cbcda7 Add threading support in core lib via boost libraries. 2012-08-29 14:43:37 -04:00
Pavel Krajcevski 8f748ce070 Fix uint to be uint8 since otherwise it's undefined on a lot of platforms. 2012-08-29 11:55:01 -04:00
Pavel Krajcevski 213d98f985 Finish the hooking up of the compression library to the core library 2012-08-28 19:42:28 -04:00
Pavel Krajcevski b9350e3876 Fix asm 2012-08-28 19:41:36 -04:00
Pavel Krajcevski 87375f4c14 Change signed to unsigned in order to match the function pointer typedef prototype.
Changed the function prototype to match that of the typedef in the rest of the library, and fixed a bug where we would iterate too far with the initial buffer.
2012-08-28 19:40:00 -04:00
Pavel Krajcevski 662e3c8f57 Make sure to also link against zlib. 2012-08-28 16:45:37 -04:00
Pavel Krajcevski 9e625a4065 Start working on command line tool -- Currently just making sure that everything builds and links. Also rearranged some function definitions to better accomodate this. 2012-08-28 15:47:19 -04:00
Pavel Krajcevski cff862344f Add compiler specific syntax for inline assembly. 2012-08-28 15:36:26 -04:00
Pavel Krajcevski 38e26850fe Make sure that cmake test properly checks return value of popcnt to test availability. 2012-08-28 11:43:15 -04:00
Pavel Krajcevski f2c2f7c9af Move file format to a separate header in order to better obfuscate the image loaders within the io library. 2012-08-27 22:47:20 -04:00
Pavel Krajcevski db6e76f1b3 Change the encoders to assume block stream order 2012-08-27 18:42:09 -04:00
Pavel Krajcevski a076d1efb8 Fleshed out some more of the library 2012-08-27 18:34:37 -04:00
Pavel Krajcevski 39d7f2c942 Added files for core library. 2012-08-27 13:36:59 -04:00
Pavel Krajcevski 5bebdc3b07 Remove warning from cmake process 2012-08-27 12:58:44 -04:00
Pavel Krajcevski 4e43207fd8 Restructure IO directory to better match convention set by BPTC Encoder 2012-08-27 12:19:27 -04:00
Pavel Krajcevski d13190990e Implement read callback for libpng 2012-08-27 11:50:19 -04:00
Pavel Krajcevski cc7e8c1b1f Add preliminary hooks for reading out png data... 2012-08-27 11:37:10 -04:00
Pavel Krajcevski 13519fa019 Added code to load the contents of a file to memory on not-windows. 2012-08-26 20:53:55 -04:00
Pavel Krajcevski afd1e274fd Add support for cmake to look for libpng and then add the proper files if available. 2012-08-26 20:31:41 -04:00
Pavel Krajcevski 6d39ab49c1 Generate the ImageLoader.h file from cmake after we figure out what image reading libraries are available to us. 2012-08-26 19:51:49 -04:00
Pavel Krajcevski abb5ca2a44 Add some more skeleton code to prepare for png image loading. 2012-08-26 19:05:18 -04:00
Pavel Krajcevski ff5cab75ee Added a few more structural preparations 2012-08-26 16:37:10 -04:00
Pavel Krajcevski 1bdc0dafb9 Add skeleton for image loading class 2012-08-26 14:46:47 -04:00
Pavel Krajcevski fd2ba216a3 Merge branches 'FixSSEDetection' and 'master' 2012-08-26 14:43:09 -04:00
Pavel Krajcevski d68a119bc9 Fix SIMD recognition at least with GCC targets. Still need to test with MSVC 2012-08-25 13:03:20 -04:00
Pavel Krajcevski efdca4b5bb Initial commit with a few modifications 2012-08-24 15:56:45 -04:00