Pavel Krajcevski
b7b9357964
Add help command line option
2015-04-11 13:21:11 -07:00
Pavel Krajcevski
e7b3a1d390
Fix line endings
2015-04-11 13:20:52 -07:00
Pavel Krajcevski
9129e16908
Remove unused header
2015-04-11 13:20:33 -07:00
Pavel Krajcevski
df00a8d0c7
Fix compiler warning
2015-03-06 02:22:56 -05:00
Pavel Krajcevski
b31711afe5
Grab newer cmake so that we have the right modules
2015-02-19 23:18:49 -08:00
Pavel Krajcevski
ade1f77fe4
Fix bugs and get tests passing
2015-02-19 23:17:07 -08:00
Pavel Krajcevski
84f25a353b
Merge branch 'master' into DiscreteCosine
2015-02-19 00:54:12 -08:00
Pavel Krajcevski
f6b2293f76
Fix some compiler warnings
2015-02-19 00:53:34 -08:00
Pavel Krajcevski
1f2358be79
Add tests and IDCT... now we need to fix the tests so they pass
2015-02-19 00:53:20 -08:00
Pavel Krajcevski
4afacf384d
Add preliminary forward DCT
2015-02-11 23:39:32 -08:00
Pavel Krajcevski
a263907e0f
Fix some small bugs and compiler warnings
2015-02-11 21:26:31 -08:00
Pavel Krajcevski
325a2ac96d
Add utility function for splitting images into images of pixel channels.
2015-01-26 17:27:35 -05:00
Pavel Krajcevski
34f90c07a2
Qualify namespace
2015-01-26 15:11:35 -05:00
Pavel Krajcevski
43aa8266b6
Fix license in file
2015-01-26 15:10:56 -05:00
Pavel Krajcevski
8142047b55
Add missing files
2014-12-01 11:24:27 -05:00
Pavel Krajcevski
ae878d4aed
Split BPTC decompression into two stages.
...
In one stage, decompose the block into logical bit values. Then,
if we want to decomrpss into an output image, do the proper interpolation.
Otherwise, return the logical block as-is to do things like figure out proper
mode crap and other stats.
2014-11-19 19:09:53 -05:00
Pavel Krajcevski
a717edd12e
Fix bug?
2014-11-19 15:24:08 -05:00
Pavel Krajcevski
b67fb73fb4
If we're in the build tree, we know where the source is
2014-11-18 17:17:16 -05:00
Pavel Krajcevski
fb7805d875
Bring CMake integration up to date.
...
- Add a way to generate a FasTCConfig.cmake file so that you can
use cmake without having to install it.
- Add install paths for users that want to install it.
- Hide all public headers in FasTC/ qualified include path, this way we
know what files are public directly from the source. Also, it lets us
define build-tree and install-tree include directories a lot easier.
2014-11-18 17:07:26 -05:00
Pavel Krajcevski
5dc66f7469
Use std::string to increase portability
2014-11-06 16:21:12 -05:00
Pavel Krajcevski
c83e00db1c
Add unit tests to test ASTC decompression
2014-11-06 16:07:45 -05:00
Pavel Krajcevski
c8d0799e16
Update README.md
...
Fix partial word bold formatting.
2014-11-06 15:25:40 -05:00
Pavel Krajcevski
4cacc3c5be
Take some breaks
2014-11-05 18:04:57 -05:00
Pavel Krajcevski
072b74f7b3
Flatten indices properly
2014-11-05 18:04:40 -05:00
Pavel Krajcevski
a303bd4844
Some small aesthetic fixes
2014-11-05 17:24:28 -05:00
Pavel Krajcevski
dbde06edf1
Fix bug caused by typo.
2014-11-05 12:17:34 -05:00
Pavel Krajcevski
19b5d478a0
Fix small bug:
...
Set the bits that aren't being used in the texel data to zero so that
the integer decoding sequence recreates the proper texel values for
trits and quints that don't have as many bits as there are expected
values.
2014-11-04 18:22:05 -05:00
Pavel Krajcevski
168c6a0071
Merge branch 'master' into DecompressASTC
2014-11-03 18:28:44 -05:00
Pavel Krajcevski
ff1181e12a
Lots of QOL fixes:
...
1. Avoid the need for multiple-of-four input textures. If you don't pass
a multiple of four then we'll do our best to pad the image.
2. Fix a bunch of bugs where we didn't accurately report why we couldn't
compress a texture and just crashed instead.
3. Some code refactoring to make certain if statements more readable.
2014-11-03 18:24:19 -05:00
Pavel Krajcevski
facdbe9d1c
Fix another small bug
2014-11-03 17:14:29 -05:00
Pavel Krajcevski
610d2d611d
Silence some warnings
2014-11-03 17:14:23 -05:00
Pavel Krajcevski
da6d6e5106
Merge branch 'master' into DecompressASTC
2014-11-03 15:57:50 -05:00
Pavel Krajcevski
6f82ab8941
Don't crash when you can't open a file that doesn't exist
2014-11-03 15:57:34 -05:00
Pavel Krajcevski
4c03336a43
Fix how we compute compressed size
2014-11-03 15:07:56 -05:00
Pavel Krajcevski
0c25135555
Merge branch 'master' of git://ahi.cs.unc.edu/pavel/FasTC
2014-10-31 17:39:07 -04:00
Pavel Krajcevski
e4919e75e6
Add bracket guards around ifs
2014-10-31 17:38:22 -04:00
Pavel Krajcevski
fd2699302d
Update to support VS2013
2014-10-24 10:27:01 -04:00
Pavel Krajcevski
a74b4e6862
Add proper include to support min and max
2014-10-24 09:10:29 -04:00
Pavel Krajcevski
1f45a49102
Caught small bug
2014-09-25 19:10:30 -04:00
Pavel Krajcevski
c0d7607998
Merge branch 'master' into DecompressASTC
2014-09-25 16:50:43 -04:00
Pavel Krajcevski
502c15ee29
Respect the new flag in tests. Fixes #12
2014-09-02 16:52:31 -04:00
Pavel Krajcevski
e59541e30a
Add #define guard to including IO with PVRTC
2014-09-02 16:39:11 -04:00
Pavel Krajcevski
995eacd5b6
Fix small crash bug
2014-08-26 13:44:09 -04:00
Pavel Krajcevski
edfc6bde78
Be a little more defensive about calculating SSIM
2014-08-26 13:34:35 -04:00
Pavel Krajcevski
13df3c72c6
Apparently the block layout is different for ASTC...
2014-05-15 22:02:16 -04:00
Pavel Krajcevski
374f5375d5
Fix the way we quantize 16-bit pixel channels
2014-05-15 22:02:03 -04:00
Pavel Krajcevski
2d52f1eabb
Actually advance the color values ptr
2014-05-15 22:01:21 -04:00
Pavel Krajcevski
31e01b7b10
Partition index does not include the number of partitons.
2014-05-14 13:29:12 +02:00
Pavel Krajcevski
a8514ba9b3
Reverse the bits of the ASTC block in order to read the texel weight data...
2014-05-08 00:45:23 +02:00
Pavel Krajcevski
1269ab1314
Fix a few bugs dealing with color blending
2014-05-07 23:00:42 +02:00