Commit Graph

268 Commits (revert-2214-feature-commandline-documentation)

Author SHA1 Message Date
Erik Charlebois 116c8850ac PPM image loading and saving 2010-04-01 00:44:32 -07:00
Slava Pestov 7826543d2e sequences: add cartesian-each, cartesian-map, cartesian-product words to eliminate some duplication throughout the codebase 2010-02-25 20:54:57 +13:00
Slava Pestov 220dd88a2c Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Slava Pestov bd0ca0e2aa Clean up some tags 2010-02-17 00:12:55 +13:00
erikc 6a18dec566 Had the color order for TGA backwards 2010-02-05 15:32:38 -08:00
erikc 0770b940b0 Merge up 2010-01-30 20:48:06 -08:00
Joe Groff 54e0221de5 images: extend pixel-at/set-pixel-at with versions that select/replace rows of pixels 2010-01-29 16:30:34 -08:00
Erik Charlebois 1c8b4f08a4 Merge branch 'master' of git://github.com/slavapestov/factor 2010-01-29 15:57:31 -08:00
Doug Coleman 9a8bd26786 Remove an iota from images.jpeg 2010-01-28 23:13:28 -06:00
erikc 66aaebe08d Targa image file loading and saving for RGB and ARGB uncompressed images 2010-01-25 16:38:04 -08:00
Doug Coleman 8c1d202b4c Rename accumulator to collector, pusher to selector 2010-01-22 15:00:53 -06:00
Slava Pestov ad6d8556e0 Change [0,b) usages to iota 2010-01-15 08:05:50 +13:00
Doug Coleman f7f67c57a3 use clamp 2010-01-14 11:18:10 -06:00
Doug Coleman 2ca0375dee fix png loading 2009-12-30 14:58:50 -06:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Slava Pestov ffd7de02d6 Update a few places that used string C type names to use words; fixes some deploy tests 2009-11-20 03:21:48 -06:00
Doug Coleman b71d86a1dc update more 8bit encoding usages 2009-11-12 18:36:47 -06:00
Doug Coleman 7e66f0beaf fix display issue with png files where height not a multiple of 4 2009-11-06 00:43:59 -06:00
Joe Groff 61d579360d remove non-primitive-related uses of tuck from basis 2009-11-05 17:03:24 -06:00
Joe Groff fa6d7b7069 eliminate spin from basis 2009-11-05 14:05:06 -06:00
Slava Pestov 8b8b9031fd Move a few libraries from extra to basis since basis stuff depends on them 2009-11-01 22:17:00 -06:00
Doug Coleman 7730272f2f fix using for normalize-path 2009-10-28 20:17:46 -05:00
Doug Coleman e376a0ece2 (normalize-path) -> absolute-path, canonicalize-path -> resolve-symlinks 2009-10-28 17:25:50 -05:00
Slava Pestov 08e7d25dc5 change-each -> map!, deep-change-each -> deep-map! 2009-10-27 22:32:56 -05:00
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
Joe Groff 9ddecb5e03 some misc categorizations and factorings for image component formats 2009-07-01 13:52:26 -05:00
Joe Groff ab8b99d4fd opengl 3.1 2009-06-24 17:28:37 -05:00
Joe Groff eaddd1fdd4 provide image component-orders and component-types for all GPU texture formats 2009-06-24 08:26:30 -05:00
Joe Groff c051665efb throw in image component-orders for some more opengl formats 2009-06-23 20:01:53 -05:00
Joe Groff ac3ec67c6a separate component format from component order in image objects 2009-06-22 11:20:54 -05:00
Slava Pestov b18c84454b Move constructors vocabulary to extra and refactor basis code not to use it 2009-06-13 18:47:19 -05:00
Doug Coleman 7134236e46 Merge branch 'master' of git://github.com/prunedtree/factor
Conflicts:
	basis/compression/inflate/inflate.factor
	basis/math/matrices/matrices.factor
2009-06-12 02:33:49 -05:00
Doug Coleman 8ea400ca47 fix using 2009-06-11 14:35:55 -05:00
Doug Coleman 41a2894083 move more bitmap code to bitmap.loading 2009-06-11 13:16:04 -05:00
Doug Coleman ae034f1f09 use concat-as 2009-06-10 16:01:46 -04:00
Doug Coleman 0fd46ac59d dont use boa constructor in tiff 2009-06-10 15:52:55 -04:00
Doug Coleman 38ac04d317 make png-loading not an image tuple 2009-06-10 15:50:16 -04:00
Doug Coleman 0262074b97 working on rle uncompresion for bitmaps 2009-06-10 15:16:17 -04:00
Doug Coleman 6e26ea1952 fix bitmap unit tests, tweaking bitmap loading 2009-06-09 11:50:21 -04:00
Doug Coleman 44850e6533 refactoring bitmap to bitmap.loading and bitmap.saving vocabs 2009-06-06 21:10:40 -04:00
prunedtree 011abaa079 images.jpeg: added support for yuv444 and black and white images 2009-06-05 05:28:18 -07:00
Doug Coleman 60a0170e38 renamd parsed-tiff to loading-tiff 2009-06-04 16:17:26 -05:00
Doug Coleman a3f0c6c057 use singletons instead of subclassing the image class 2009-06-04 16:09:38 -05:00
Doug Coleman 580ff7fd32 fix loading of bitmaps when computed size is 0 2009-06-04 15:06:33 -05:00
Doug Coleman 31595542d3 clean up bitmap code, support a lot more bitmaps like 1/4/16 bit 2009-06-03 21:36:03 -05:00
Doug Coleman 175b03c134 add a <limited-file-reader> word to open a limited stream from a file correctly 2009-06-03 21:21:21 -05:00
Doug Coleman f31c3f867a support run-length encoding in bitmaps 2009-06-02 23:29:04 -05:00
Doug Coleman 367623e375 report unhandled compression modes 2009-06-02 23:20:07 -05:00
Daniel Ehrenberg 8ec2e12b22 fixing images unit test 2009-06-02 21:17:45 -05:00
Daniel Ehrenberg ba5b582e01 Redoing images.loader to work with jpeg 2009-06-02 20:39:51 -05:00
Daniel Ehrenberg 29395bf900 Words in images to get and set pixels 2009-06-01 22:37:44 -05:00
Doug Coleman 8b37eced05 use literal-arrays 2009-05-17 13:36:53 -05:00
Doug Coleman 4deda17c30 Merge branch 'master' of git://factorcode.org/git/factor 2009-05-16 13:03:23 -05:00
Slava Pestov 7c705c4db4 Comment out JPEG code until we figure out if we want default bootstrap to depend on BLAS or not 2009-05-16 10:02:48 -05:00
Slava Pestov 132249660d Fix conflict 2009-05-16 09:48:42 -05:00
Doug Coleman 89ccc4b00a throw exceptions on png types we dont support 2009-05-16 08:46:41 -05:00
Doug Coleman 451a13c740 oops, i was using alt.bitstreams in some places 2009-05-15 01:27:00 -05:00
Doug Coleman af2f62ae62 remove all the compress code from lzw until it works, fix bitstreams 2009-05-14 23:33:00 -05:00
Slava Pestov fb6df472a2 Cleaning up USING: lists for new strict semantics 2009-05-14 16:54:16 -05:00
Doug Coleman c443d6d815 check in marc's jpeg loader, png decoder, huffman, inflate, and image-processing vocabularies 2009-05-14 15:46:10 -05:00
Doug Coleman 8e8623aef0 throw more errors on tiff if formats are unsupported 2009-05-05 22:58:38 -05:00
Slava Pestov 2b26da1ad2 Move images.normalization to extra since its not used for anything anymore 2009-04-10 04:03:06 -05:00
Doug Coleman 5279bb0efc change L to LA for grayscale tiffs 2009-04-09 10:46:43 -05:00
Doug Coleman 1551eacfa2 add support for tiff grayscale images 2009-04-09 10:44:50 -05:00
Doug Coleman 49852f5715 fix saving bitmaps 2009-04-08 18:42:01 -05:00
U-SLAVA-DFB8FF805\Slava 1731b57249 Add textures without alpha channels, cropping; update usages of <texture>; don't ignore trailing in x>offset 2009-04-03 07:01:22 -05:00
U-SLAVA-DFB8FF805\Slava 9c3054c84a More progress on Uniscribe 2009-04-02 13:05:26 -05:00
Slava Pestov 3bf5d2bfd4 Implement image tesselation in image.tesselation. This is used by opengl.textures to break up large bitmaps into multiple smaller textures. The gl-rect and gl-fill-rect words have different stack effects now, so usages were updated. 2009-03-27 18:31:25 -05:00
Slava Pestov 04c3443e95 Split off normalize-image into images.normalization 2009-03-26 21:28:57 -05:00
Doug Coleman 8eea41b537 normalizing alpha data for tiffs is done too often, check in test image for it 2009-03-16 07:11:56 -05:00
Doug Coleman bb33894d8a check in more test images 2009-03-16 07:11:46 -05:00
Doug Coleman baf2cc6c5a fix bitmap loading of odd-width files 2009-03-16 07:08:35 -05:00
Doug Coleman 3a0b0aff79 support loading bitmaps that have extra padding bytes on each line, like reference.bmp 2009-03-15 15:08:55 -05:00
Doug Coleman 2698c30a30 fix BGR>RGB 2009-03-15 13:59:06 -05:00
Slava Pestov 9eab2a7d71 loading an image doesnt hang now, not quite right yet.. 2009-03-14 23:23:49 -05:00
Doug Coleman 845158fffd fix using 2009-03-14 15:52:25 -05:00
Doug Coleman f8da7967fc remove unused slot 2009-03-14 15:52:04 -05:00
Doug Coleman 935849b418 fix bitmap rendering 2009-03-14 15:31:59 -05:00
Doug Coleman aa91df6b10 more bitmap cleanup 2009-03-14 15:17:51 -05:00
Doug Coleman 8ac5834861 cleaning up bitmaps 2009-03-14 15:08:50 -05:00
Doug Coleman cdec85dc8f write out bitmaps from arbitrary image tuples 2009-03-14 14:48:28 -05:00
Doug Coleman 4302e36424 Merge branch 'master' of git://factorcode.org/git/factor 2009-03-14 00:04:08 -05:00
Doug Coleman 4ed2d030c8 bitmap loading was broken 2009-03-14 00:03:44 -05:00
Slava Pestov 3c29c92f5b Better unit tests for images.bitmap 2009-03-14 00:01:01 -05:00
Doug Coleman b38348aae0 Merge branch 'master' of git://factorcode.org/git/factor 2009-03-11 15:06:31 -05:00
Slava Pestov ff3c5b28bd Move normalize-scanline-order implementation from images.bitmap to images
Add upside-down? slot to image tuple
Update cap for recent changes
2009-03-10 16:35:47 -05:00
Doug Coleman ea259f8690 Merge branch 'master' of git://factorcode.org/git/factor 2009-03-05 16:39:14 -06:00
Slava Pestov 7b9491066c Fix conflict in images vocab 2009-03-04 21:43:56 -06:00
Doug Coleman 992d1f4d13 crc32 the png chunks, helper word to concatenate deflated bytes 2009-03-04 13:34:28 -06:00
Doug Coleman 6ee3f802a4 initial support for parsing in png files and a test image 2009-03-03 16:24:41 -06:00
Doug Coleman 1a8b97e4d9 bitmap loading is cleaner 2009-03-02 19:38:28 -06:00
Slava Pestov 385c4661d6 First attempt at ui.text.pango 2009-02-28 01:31:51 -06:00
Slava Pestov 51fdd23248 Abstract out images.memory from core-graphics vocab 2009-02-26 23:29:39 -06:00
Slava Pestov 91d0c4ed1f Fix conflict 2009-02-22 20:02:13 -06:00
Doug Coleman 7a3c086178 remove ?at from db.types, images.tiff 2009-02-22 17:14:46 -06:00
Slava Pestov 89f1ac4afd Refactoring 2009-02-21 00:40:03 -06:00
Slava Pestov bdb790010a Add bytes-per-pixel word to images vocab 2009-02-19 04:08:32 -06:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
Slava Pestov 723dcd334f Merge branch 'master' of git://factorcode.org/git/factor 2009-02-15 20:06:23 -06:00
Slava Pestov 6b99b04531 Add vocab: for vocab-relative paths 2009-02-15 19:53:21 -06:00
Doug Coleman 5ef7afcbb3 refactor tiff loading a bit, identify lots of ifd header tags 2009-02-15 10:42:36 -06:00