Commit Graph

144 Commits (85dc9fda2622d2cd87bbfd9a2663e79ebda36bbe)

Author SHA1 Message Date
Slava Pestov 102af9badb specialized-arrays, specialized-vectors: fix potential problem if two vocabularies define different C types with the same name 2009-10-19 04:41:53 -05:00
Keith Lazuka 5429b2132a images.normalization: reorder-components should fail if component-order is not a representation of its layout 2009-10-09 15:58:36 -04:00
Keith Lazuka bbb742509a images.bitmap: fixed unit-test dependency 2009-10-09 15:58:36 -04:00
Keith Lazuka 17c1713ebb images.testing: added documentation 2009-10-09 15:58:36 -04:00
Keith Lazuka dc8fe077c1 images.png: added PngSuite test image files 2009-10-09 15:58:35 -04:00
Keith Lazuka f56320b142 images.testing: switched from PAM reference image to Factor serialized image (.fig) 2009-10-09 15:58:35 -04:00
Keith Lazuka 3a13c59da2 images.bitmap: respect upside-down? flag when encoding 2009-10-09 15:58:35 -04:00
Keith Lazuka 6ce12ed342 images.bitmap: now conforms to image encode protocol. images.normalization: added several component-order shuffle words 2009-10-09 15:58:34 -04:00
Doug Coleman 5ee547e227 refactor images.png logic for adam7. implement adam7 2009-10-09 11:22:54 -05:00
Doug Coleman 4a8be006f0 extra error checking in images.png 2009-10-09 01:25:20 -05:00
Doug Coleman 8556476b76 handle indexed color pngs 2009-10-08 20:55:53 -05:00
Doug Coleman 796b1c8977 fix byte swapping on greyscale-alpha 2009-10-08 20:37:00 -05:00
Doug Coleman fd4c6b73bb ushort pngs are byte-reversed from how i'm reading them -- fixed. 2009-10-08 20:33:15 -05:00
Doug Coleman 2945393965 dont scale 8,16 bit greyscale pngs. greyscale-alpha pngs are 8,16 bit already, so don't scale them either. 2009-10-08 19:37:14 -05:00
Doug Coleman 77f968fad6 load greyscale png images, refactor some code 2009-10-08 18:18:33 -05:00
Doug Coleman 7403bcef0c make pngs read scanlines in terms of bits instead of bytes 2009-10-08 16:58:24 -05:00
Doug Coleman 8dff4776c6 handle ushort-component pngs, throw errors on adam7 interlaced pngs for now 2009-10-06 00:33:29 -05:00
Doug Coleman cfdaaec068 move verbose-tests? out of private, change decode-test word to set the verbose mode itself, use images.pam in images test vocabs 2009-10-02 16:20:33 -05:00
Doug Coleman 1310aff3d8 fix bitmap tests path 2009-10-02 15:54:39 -05:00
Keith Lazuka 31e34acc01 images: consolidated test suite for image decoders 2009-09-30 17:01:09 -04:00
Keith Lazuka 7484bb73ae images.gif: unit tests now use a PAM reference image to verify decoding 2009-09-30 16:35:51 -04:00
Keith Lazuka 19107de7d8 images.testing: consolidated TIFF/GIF/PNG/PAM test images and wrote PAM unit tests 2009-09-30 13:33:10 -04:00
Keith Lazuka f297e88987 images.loader: added image encode protocol 2009-09-30 10:00:18 -04:00
Slava Pestov 17b52314dc Merge branch 'gif' of git://github.com/klazuka/factor 2009-09-30 05:15:21 -05:00
Doug Coleman be8033a39f limit the byte-reader streams when loading images 2009-09-28 16:29:56 -05:00
Doug Coleman 5b924ff910 move images.http to extra so it can use images.viewer, fix load-http-image 2009-09-28 16:12:12 -05:00
Doug Coleman 4fbdcc72aa fix jpeg loading 2009-09-28 15:59:32 -05:00
Doug Coleman d7626b177a fix png loading 2009-09-28 15:59:20 -05:00
Doug Coleman 8755f0bba0 fix a stack effect 2009-09-28 15:59:02 -05:00
Doug Coleman 1fb7cf37c4 make a png-image type instead of having a singleton class 2009-09-28 14:50:36 -05:00
Doug Coleman bf2cfd0aa6 Merge branch 'png' of git://github.com/klazuka/factor 2009-09-28 14:29:00 -05:00
Doug Coleman 438e848356 fix reverse png filtering with klazuka's idea 2009-09-28 14:20:44 -05:00
Keith Lazuka f45a6df8e5 images.png: teased apart PNG parse and decode phases to match images.tiff and images.gif 2009-09-28 11:21:35 -04:00
Joe Groff 630e5ecc3b update vocabs so a load-all on macosx works without parsing c-type strings 2009-09-27 15:11:21 -05:00
Joe Groff 8965d04c0d Merge branch 'master' of http://factorcode.org/git/factor 2009-09-27 11:07:08 -05:00
Joe Groff 5054c954be add USING:s and rearrange definitions so macosx can compile without parsing c-type strings 2009-09-26 23:14:57 -05:00
Doug Coleman 033892dc10 minor refactoring 2009-09-26 22:24:14 -05:00
Doug Coleman 4bc6b302cf remove some misguided code,oops 2009-09-26 20:34:10 -05:00
Doug Coleman 030351ef87 move the png filtering code to images.png 2009-09-26 20:09:16 -05:00
Doug Coleman 71952f702a trying to make sense of png filter modes 2009-09-26 18:46:27 -05:00
Doug Coleman 55dd1a7401 compute the correct width for png rows, use all the data when decompressing a png, check for impossible png color modes/bit-depths 2009-09-26 15:24:09 -05:00
Keith Lazuka 8dec2070e5 compression.lzw: supports both TIFF and GIF 2009-09-25 16:51:47 -04:00
Keith Lazuka 64c93d873f lzw: integrating with gif and tiff 2009-09-25 15:12:44 -04:00
Joe Groff 076ab42dc3 move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
Slava Pestov 7f2e2b1777 Specialized array overhaul
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Marc Fauconneau 5a20dee2aa Better error images for non-baseline JPEGs.
bugfix: Handles more than one table per DHT chunk.
2009-08-30 17:29:40 +09:00
Doug Coleman bdb95d7fc3 remove debug, fix bootstrap 2009-08-26 14:45:02 -05:00
Doug Coleman 974266c9d5 support loading images from streams, add load-http-image 2009-08-26 14:27:01 -05:00
Joe Groff 556adeb9b4 handle RGBA pngs (when inflate finally works) 2009-08-23 09:51:12 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00