Commit Graph

256 Commits (3e485652feb276a51667843f9a95173f9c862425)

Author SHA1 Message Date
Doug Coleman d97bf9f890 Move <rgb-image> to images.testing, add randomize-image word 2010-09-19 21:54:04 -05:00
Doug Coleman 84942b5409 Make a couple utility words in images vocabulary 2010-09-19 21:43:36 -05:00
Philipp Brüschweiler b58c93ddbd Merge remote branch 'origin/native-image-loader' into my-gtk 2010-08-01 11:09:39 +02:00
Philipp Brüschweiler 4c7a88c8a4 images: fix some tests that broke due to an additional slot in image 2010-07-31 20:37:45 +02:00
Philipp Brüschweiler 72f7bced2b images.gdiplus: add platform.txt 2010-07-31 20:37:45 +02:00
Philipp Brüschweiler 8c61b874b7 ui.backend.gtk: load icon data directly into factor.image when deploying, no io is needed 2010-07-26 21:11:53 +02:00
Philipp Brüschweiler 035ba3bc93 ui.backend.gtk, tools.deploy.unix: support for icons 2010-07-22 12:39:16 +02:00
Philipp Brüschweiler bb50d31b39 images.gtk: update to new with-out-parameters, small speedup when loading aligned images 2010-07-17 11:47:31 +02:00
Philipp Brüschweiler 9f7847d8ec images.gtk: use GdkPixbuf to load images 2010-07-17 11:28:24 +02:00
Joe Groff 74dc8db962 Revert "ui.images, images.loader: move platform-specific image loader setup into images.loader"
This reverts commit 2bbf752cbe.
2010-07-16 11:36:20 -07:00
Joe Groff 67a1a0bdea ui.images, images.loader: move platform-specific image loader setup into images.loader 2010-07-11 08:44:27 -07:00
Joe Groff abf0aed985 images.cocoa, images.gdiplus: remove hacks around old limited-stream throwing behavior 2010-07-11 08:41:55 -07:00
Joe Groff 3d9c1f9cd5 Merge branch 'master' into native-image-loader 2010-07-11 08:27:29 -07:00
Joe Groff b1c557a825 io.streams.throwing: rename throws-on-eof -> stream-throw-on-eof and input-throws-on-eof -> throw-on-eof and change stream-throw-on-eof to leave the rigged stream on the stack, to better follow convention of other io words 2010-07-09 18:10:51 -07:00
Joe Groff 7f0ba86421 images.jpeg: fix loading error 2010-07-09 14:30:26 -07:00
Joe Groff 8b7cb0bc21 images.p[bgp]m: use throws-on-eof 2010-07-09 14:26:17 -07:00
Joe Groff 9a2dd6a96c images.loader and friends: push throws-on-eof down to the loaders that want it 2010-07-09 14:20:32 -07:00
Joe Groff 0bdc1514fd io.streams.limited: remove unlimit* 2010-07-09 13:52:15 -07:00
Doug Coleman 2ca509a8fe Split off io.streams.throwing from io.streams.limited and update usages of limited streams 2010-07-09 13:32:09 -05:00
Joe Groff e228d8478f images.gdiplus: GDI+ "ARGB" is little-endian, so really maps to opengl BGRA 2010-07-07 14:51:16 -07:00
Joe Groff aa047a8c79 images.gdiplus: don't multiply stride by pixel size because that's part of the stride already, noob 2010-07-07 13:54:24 -07:00
Joe Groff 8816b1e215 ui.images: load images.gdiplus as default image handler on windows 2010-07-07 09:07:26 -07:00
Joe Groff 958e086903 new vocab images.gdiplus: image loading using standard windows gdi+ library 2010-07-06 22:37:14 -07:00
Joe Groff 0d35e277ea images, opengl.textures, images.cocoa: add support for premultiplied alpha so we can use data from cocoa images 2010-06-27 13:44:25 -07:00
Joe Groff 3029a94756 images.cocoa: work around broken limited-stream behavior 2010-06-27 13:31:07 -07:00
Joe Groff 05faf6919b new vocab images.cocoa: load image objects using native cocoa api 2010-06-27 12:29:21 -07:00
Philipp Brüschweiler 14f8742aae ui.render: set pack alignment to 1, so padding images isn't needed anymore 2010-06-01 13:52:00 +02:00
Slava Pestov a8098e3182 specialized-arrays: rename byte-array>T-array to T-array-cast, and make it work with anything that responds to >c-ptr / byte-length 2010-05-18 23:09:34 -04:00
Slava Pestov 627295f094 Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO) 2010-05-06 17:21:02 -04:00
Slava Pestov 74a4c33423 Remove 'prettyprint' from a few USING: forms 2010-05-04 02:34:37 -05:00
Doug Coleman 155ede5ad7 Fix normalization to take stride/padding bytes into account 2010-05-01 18:37:59 -05:00
Doug Coleman 64b248c5d5 move images.bitmap.loading to images.bitmap 2010-05-01 17:11:11 -05:00
Joe Groff 0ab9046300 rename half-floats vocab to math.floats.half 2010-04-28 15:48:47 -07:00
Erik Charlebois ef365bfa53 Remove unused locals. 2010-04-12 01:18:58 -07:00
Erik Charlebois 0448c867e2 Fix indentation in read-token 2010-04-12 01:15:49 -07:00
Erik Charlebois 3d4dadffe2 Image encoding/decoding of PBM format 2010-04-12 00:49:16 -07:00
Erik Charlebois f6d8c0ad22 Convert image to binary form and remove debug code. 2010-04-10 17:07:05 -07:00
Erik Charlebois 925d2c7e58 PGM image loading and saving 2010-04-04 03:23:04 -07:00
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