Commit graph

  • e0ec005ac8 Fix link problems Pavel Krajcevski 2013-09-18 14:00:53 -0400
  • 1a70ddf57a Remove spurious comment Pavel Krajcevski 2013-09-17 18:52:02 -0400
  • d4ca50f8ed Fix the directories in the PVRTC compressor Pavel Krajcevski 2013-09-17 18:35:56 -0400
  • 29bd1368e6 Fix a few compiler warnings and add the BPTCEncoder license. Pavel Krajcevski 2013-09-15 14:56:09 -0400
  • 28cf254fe5 Initial decoupling of base library from core library. Includes a few formatting changes as well. Pavel Krajcevski 2013-09-13 19:36:37 -0400
  • 2540032acc Some small formatting changes Pavel Krajcevski 2013-09-13 16:25:00 -0400
  • 093576c9e7 Add initial code for our compressor. Pavel Krajcevski 2013-09-13 13:10:22 -0400
  • 0afa1281a8 Change default wrap mode to wrap Pavel Krajcevski 2013-09-13 13:10:07 -0400
  • 571bf1ebd0 Remove dead code Pavel Krajcevski 2013-09-12 15:01:30 -0400
  • f7404c44b9 Refactor debug output for modulation info. Pavel Krajcevski 2013-09-12 15:01:19 -0400
  • 1b073eb4b7 Add 2BPP decompression Pavel Krajcevski 2013-09-12 14:45:56 -0400
  • b3de3f2c01 If our compile flag is set to output debug images with tests, then actually do it. Pavel Krajcevski 2013-09-12 14:45:42 -0400
  • b3f8fcd454 Decouple upscale directions so that we can non-uniformly scale images. Pavel Krajcevski 2013-09-12 14:44:54 -0400
  • 7184d49ccd Add unpack RGBA for our pixels Pavel Krajcevski 2013-09-12 14:41:00 -0400
  • 9f6e6e7233 Fix bug with debug images Pavel Krajcevski 2013-09-12 14:32:33 -0400
  • 1115c2f9e4 Add 2BPP helper functions for our blocks. Pavel Krajcevski 2013-09-12 14:30:08 -0400
  • 08cad3ba86 Add 2BPP tests Pavel Krajcevski 2013-09-12 14:04:20 -0400
  • 0172df4e60 Add final opaque to transparent gradient test. Pavel Krajcevski 2013-09-10 13:34:13 -0400
  • dd625fca71 When going from 344(3/4) pixels to 4555, the alpha channel only has a zero appended to it. Hence we must clear that bit for each pixel that was transparent during decoding. Pavel Krajcevski 2013-09-10 13:22:53 -0400
  • f5e0aa4f9f Make sure to clear the MSBs of channels that have zero depth that get converted to higher depth values Pavel Krajcevski 2013-09-10 13:21:48 -0400
  • 77bb7488cc Fix typo Pavel Krajcevski 2013-09-10 11:58:53 -0400
  • eb312ccb0a Small refactor Pavel Krajcevski 2013-09-09 14:16:45 -0400
  • 5020f81f00 Add a transparent pvr image test Pavel Krajcevski 2013-09-09 10:33:04 -0500
  • 6c8eea5520 Add superfluous code from when I was trying to match the decoder to PVR library. Pavel Krajcevski 2013-09-09 10:31:53 -0500
  • 09b5680245 Some small code style fixes Pavel Krajcevski 2013-09-06 13:37:50 -0400
  • 5ac6872dc7 Add a test to make sure that after a bilerp the pixels that should remain unaffected do in fact remain unaffected. Pavel Krajcevski 2013-09-06 02:02:34 -0400
  • 3806efe6fc Add some more hacky includes to be able to output debug images from our tests. Pavel Krajcevski 2013-09-06 02:02:02 -0400
  • 91c79cd717 Fix Bilinear upscale Pavel Krajcevski 2013-09-06 01:58:53 -0400
  • 92827c23fc Add a debug function to our intermediate PVRTC images Pavel Krajcevski 2013-09-06 01:57:06 -0400
  • 0d0c65f536 Actually index into our pixels properly... Pavel Krajcevski 2013-09-06 01:55:25 -0400
  • 2263080faa Fix the interleaving by doing it when we're actually reading in the blocks Pavel Krajcevski 2013-09-06 01:55:06 -0400
  • db914018f1 Two enhancements: Pavel Krajcevski 2013-09-06 01:53:10 -0400
  • 7403e77d4d Add some hacky includes and libraries to support writing out debug images Pavel Krajcevski 2013-09-06 01:50:46 -0400
  • 0f659269e7 Add error message when we can't load a file. Pavel Krajcevski 2013-09-06 01:39:23 -0400
  • c367d11e9d Formatting Pavel Krajcevski 2013-09-06 01:39:11 -0400
  • 9b7bb2cbc7 Add hooks to support outputing images whose pixels are not in block-stream order Pavel Krajcevski 2013-09-06 01:38:52 -0400
  • a6e6138084 Change the lerp function to be more explicit. Pavel Krajcevski 2013-09-05 14:49:56 -0400
  • b8e155e11c Switch red and blue channels in our decompressor test. Pavel Krajcevski 2013-09-05 14:49:08 -0400
  • 7b72a84d87 Add a working directory for PVR lib tests Pavel Krajcevski 2013-09-04 20:43:49 -0400
  • 6149c0af3a Add PVR tests Pavel Krajcevski 2013-09-04 20:21:56 -0400
  • 052157ea49 Rename our tests to start with the prefix 'Test' Pavel Krajcevski 2013-09-04 20:21:28 -0400
  • abd4ba8b54 Abstract away some utilities that we can use across all of our tests, and add a test for a gray image. The test currently seems to be failing, which is likely due to a bug in our bit depth manipulation code. Pavel Krajcevski 2013-09-04 20:20:37 -0400
  • 669b2c0934 Reverse the order for modulating our bits... I'm not convinced that this is right Pavel Krajcevski 2013-09-04 20:18:43 -0400
  • 34ab853a62 Make sure to take into account the interleaved nature of the blocks when decompressing Pavel Krajcevski 2013-09-04 20:18:03 -0400
  • bb525ae9dc If all of the PVR blocks are the same then we don't need so much code. Pavel Krajcevski 2013-09-04 15:28:51 -0400
  • 9273625eeb Add initial decompressor test Pavel Krajcevski 2013-09-02 19:14:50 -0400
  • 4bbd80aab2 Make sure to preserve bit depth when bilinearly upscaling Pavel Krajcevski 2013-09-02 19:14:31 -0400
  • 3f4ffa61b5 Reverse byte order (and interpret the data as a 64 bit word) for PVRTC blocks Pavel Krajcevski 2013-09-02 19:13:53 -0400
  • df81c73456 Default wrap mode to clamp Pavel Krajcevski 2013-09-02 19:12:43 -0400
  • 4913435119 Add paths to look for PVR library in cmake Pavel Krajcevski 2013-09-02 16:04:47 -0400
  • 6642b64c78 Make sure that on MSVC platforms we force shared CRT to be consistent with other CMake defaults. Pavel Krajcevski 2013-09-01 10:19:03 -0400
  • 5cde88d3b7 Add Image tests Pavel Krajcevski 2013-08-31 18:31:38 -0400
  • 1d25e31d2a Bilinear upscale bug fixes. Pavel Krajcevski 2013-08-31 18:30:47 -0400
  • 40b479487c Add accessors for image dimensions Pavel Krajcevski 2013-08-31 17:05:26 -0400
  • 36641c2268 Don't set all of the memory to zero when we specify an image without any pixels Pavel Krajcevski 2013-08-31 16:43:32 -0400
  • 992c72e4b5 Fix asserts Pavel Krajcevski 2013-08-31 16:40:49 -0400
  • fa37aba768 Add comparison operator for pixels Pavel Krajcevski 2013-08-31 16:37:58 -0400
  • 8bf682f04e Add comment for RGBA packing Pavel Krajcevski 2013-08-31 16:37:40 -0400
  • b3a07e21f7 Add assignment operator Pavel Krajcevski 2013-08-31 16:37:07 -0400
  • 26005bfd27 Disambiguate the Image.h from PVRTCEncoder and Core Pavel Krajcevski 2013-08-31 16:36:02 -0400
  • 21199bc264 Add Pixel tests Pavel Krajcevski 2013-08-31 16:06:00 -0400
  • 8c2127c08a When packing ARGB pixels make sure to convert them to 8-bit depth first Pavel Krajcevski 2013-08-31 16:05:50 -0400
  • 1ffbdea2b8 Make sure to handle 0 bit depth a bit more gracefully Pavel Krajcevski 2013-08-31 16:05:28 -0400
  • 9a0fbebac3 Fix bug when going from smaller to higher bit depth Pavel Krajcevski 2013-08-31 16:04:58 -0400
  • ad17404bf7 Begin counting the bits from the beginning of the byte stream. The way I was doing it before was silly... Pavel Krajcevski 2013-08-31 14:33:44 -0400
  • f280c2bb33 Fix some compiler warnings. Pavel Krajcevski 2013-08-31 13:30:12 -0400
  • 53a8c8e3cd Fix bug where the defaulted value caused a crash (wtf?) Pavel Krajcevski 2013-08-30 19:08:53 -0400
  • 012d9e3ce0 Add preliminary tests for PVRTC pixels Pavel Krajcevski 2013-08-30 19:08:20 -0400
  • ab0dbbfa6e Bugfix Pavel Krajcevski 2013-08-30 18:45:14 -0400
  • 1cc8f57538 Add block tests Pavel Krajcevski 2013-08-30 18:44:50 -0400
  • 87d82ea443 Merge branch 'master' into PVRTCDecoder to use GTest Pavel Krajcevski 2013-08-30 16:18:56 -0400
  • bdbed413b5 Tell CMake to look in individual test directories for tests if they exist Pavel Krajcevski 2013-08-30 12:54:07 -0400
  • 2d470a387a Add GTest framework Pavel Krajcevski 2013-08-30 12:53:44 -0400
  • 90662a56cd First pass at PVRTC Decompressor Pavel Krajcevski 2013-08-29 18:35:15 -0400
  • c59deae728 Add accessors for the color channels and a method for packing the information into a 32 bit RGBA int Pavel Krajcevski 2013-08-29 18:34:53 -0400
  • f822c15868 Pixel depth defaults to 8 Pavel Krajcevski 2013-08-29 18:34:25 -0400
  • 73f4992081 If we want a color channel with zero depth then it should default to full intensity, but we will remember that there is zero depth there. Pavel Krajcevski 2013-08-29 18:33:56 -0400
  • b3d7cd7877 Constify a few things Pavel Krajcevski 2013-08-29 18:32:48 -0400
  • 40743d612b Add a logical definition of an image for PVRTC Pavel Krajcevski 2013-08-29 18:31:42 -0400
  • d3daed8969 Add block definitions for PVRTC Pavel Krajcevski 2013-08-29 12:06:05 -0400
  • 55a61b5d8d constify some method declarations Pavel Krajcevski 2013-08-29 11:57:46 -0400
  • c5fb5ba0b1 Reorder color channels to match PVRTC spec Pavel Krajcevski 2013-08-29 11:57:18 -0400
  • 53e7879742 Add PVRTC Pixel class Pavel Krajcevski 2013-08-28 17:49:53 -0400
  • 5c80b4f373 Initial files for PVRTC encoder. Starting with a decompressor. Pavel Krajcevski 2013-08-27 18:25:15 -0400
  • 0db3f830a6 Fix error from merge where we renamed the project to FasTC Pavel Krajcevski 2013-08-27 14:43:55 -0400
  • 9fe7a08422 Fix a bunch of errors incurred from refactoring. Pavel Krajcevski 2013-08-27 14:39:31 -0400
  • 03a7934644 Get rid of evil tabs once and forever (from cpp/h files) Pavel Krajcevski 2013-08-26 16:54:08 -0400
  • af2318027b More refactoring Pavel Krajcevski 2013-08-26 16:11:53 -0400
  • 0304bd4187 Refactor a bunch of things to renforce a bunch of style rules. Pavel Krajcevski 2013-08-26 16:11:39 -0400
  • 9282541160 Comments and bug fixes. Pavel Krajcevski 2013-03-21 00:15:38 -0400
  • 25eba39870 Change the name of everything to FasTC Pavel Krajcevski 2013-03-21 00:15:23 -0400
  • fc1baea05f Add a lot of comments and code cleanup Pavel Krajcevski 2013-03-20 23:40:35 -0400
  • f1f1294b2e Add tab formatting. Pavel Krajcevski 2013-03-20 23:30:23 -0400
  • 921c3e9f16 Add comments to BC7CompressionMode.h Pavel Krajcevski 2013-03-20 23:27:17 -0400
  • a19f83d123 Switch the PVR loader to use the library provided with the imagination SDK Pavel Krajcevski 2013-08-22 18:08:52 -0400
  • e6bd4b5317 Only use the PVR loader if the library for loading has been found. Pavel Krajcevski 2013-08-22 18:08:29 -0400
  • 07e9c2c531 Add CMake modules folder and file to look for PVRTexLib Pavel Krajcevski 2013-08-22 15:28:19 -0400
  • edf7a948c4 Recognize pvr images when loading data. Pavel Krajcevski 2013-08-20 15:28:02 -0400
  • 081866907f More formatting fixes. Pavel Krajcevski 2013-08-20 15:27:36 -0400
  • 9d4f412f65 Skeleton for reading .pvr files Pavel Krajcevski 2013-08-20 15:12:57 -0400