Commit graph

22 commits

Author SHA1 Message Date
Pavel Krajcevski f12ee09f7e Some formatting and rearrange the BPTC code to be more structured like the others 2014-01-21 14:46:25 -05:00
Pavel Krajcevski a80944901e Refactor CompressionJob struct.
In order to better facilitate the change from block stream order to non-block stream order,
a lot of changes were introduced to the way that we feed texture data to the compressors. This
data is embodied in the CompressionJob struct. We have made it so that the compression job
points to both the in and out pointers for our compressed and uncompressed data. Furthermore,
we have made sure that the struct also contains the format that its compressing for, so that if
any threading programs would like to chop up a compression job into smaller chunks based on the
format, it doesn't need to know the format explicitly, it just needs to know certain properties
about the format.

Moreover, the user can now define the start and end pixels from which we would like to compress
to. We can compress subsets of data by changing the in and out pointers and the width and height
values. The compressors will read data linearly until they reach the out pixels based on the width
of the given pixel.
2013-11-08 16:31:19 -05:00
Pavel Krajcevski 13af957ab9 Remove BlockStatManager in favor of ostreams 2013-09-28 21:42:24 -04:00
Pavel Krajcevski 28cf254fe5 Initial decoupling of base library from core library. Includes a few formatting changes as well. 2013-09-13 19:36:37 -04:00
Pavel Krajcevski 03a7934644 Get rid of evil tabs once and forever (from cpp/h files) 2013-08-26 16:54:08 -04:00
Pavel Krajcevski ae2324153d Repurpose the rest of our scaffolding to use Compression Jobs 2013-03-09 13:36:39 -05:00
Pavel Krajcevski cdbf72b6c0 Merge MSVC support into master. 2013-01-28 11:49:03 -05:00
Pavel Krajcevski 5eba3ba6f7 Add license 2012-11-15 11:51:55 -05:00
Pavel Krajcevski 53b8d4c9a9 Fix compiler errors with functions not returning values. 2012-11-07 15:21:55 -05:00
Pavel Krajcevski 790df0736f Make stats collection threadsafe. 2012-11-01 18:56:13 -04:00
Pavel Krajcevski d3f03a1fd3 Move ThreadGroup to new abstracted thread scheme. 2012-10-31 17:46:14 -04:00
Pavel Krajcevski c1222d75f9 Reorganize a lot of code. Should probably split image and image file classes to separate IO operations and whatnot. 2012-10-31 17:46:12 -04:00
Pavel Krajcevski 7116cc8b89 Redid thread synchonization in order to be able to signal threads to run without having to initialize them again. We can use this to average the running times. 2012-09-15 12:13:32 -04:00
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 ba8ac8e292 Fix memory leak 2012-08-31 23:22:05 -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 70674e5665 Merge branch 'CommandLineTool' of git.cs.unc.edu:pavel/TexComp into CommandLineTool 2012-08-30 16:58:06 -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 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