Commit graph

375 commits

Author SHA1 Message Date
Ryan Oldenburg 1ed4077249 invert for mask, premul alpha image 2021-02-08 22:27:00 -06:00
Ryan Oldenburg 29f424fe4c applyOpacity simd for image too, 10x faster as well 2021-02-08 21:44:17 -06:00
Ryan Oldenburg 6c5fa78ed9 mask applyOpacity 10x faster 2021-02-08 21:12:28 -06:00
Ryan Oldenburg 33479e5612 draw image into mask 2021-02-08 19:59:46 -06:00
Ryan Oldenburg 33b032550c draw mask on mask 2021-02-08 19:52:54 -06:00
Ryan Oldenburg 5e536c5d67 starting transition of draw / images.nim to premul alpha 2021-02-08 17:26:48 -06:00
Ryan Oldenburg 662c79e0fb draw mask 2021-02-08 16:43:22 -06:00
Ryan Oldenburg 72a4c3efb3 test img, benchmark mask minifyby2 2021-02-08 16:34:05 -06:00
Ryan Oldenburg bbe207baa0 image masking 2021-02-08 14:31:26 -06:00
Ryan Oldenburg c5ce1a8029 bugfix for minifyBy2 power > 1 2021-02-08 12:47:01 -06:00
Ryan Oldenburg 86df7fe154 benchmark image minifyBy2 2021-02-07 20:41:12 -06:00
Ryan Oldenburg 9782855a8d image minifyBy2 test 2021-02-07 20:39:46 -06:00
Ryan Oldenburg 8a933e051e mask minifyBy2 2021-02-07 20:37:35 -06:00
Ryan Oldenburg 369066e04d masks + paths 2021-02-06 21:51:13 -06:00
Ryan Oldenburg 7c2014ee88 faster superImage + tests 2021-01-30 20:42:08 -06:00
Ryan Oldenburg 90a88e4393 Revert "unused"
This reverts commit 8aab927127.
2021-01-30 16:25:57 -06:00
Ryan Oldenburg 8aab927127 unused 2021-01-28 22:46:12 -06:00
Ryan Oldenburg 35ad210ec5 tiger 20% faster 2021-01-28 17:00:30 -06:00
Ryan Oldenburg 65afc67792 tests stuff 2021-01-25 11:49:29 -06:00
Ryan Oldenburg a63bc4d1be decodeSvg returns straight alpha 2021-01-25 11:17:34 -06:00
Ryan Oldenburg 2c7694896f paths.nim expects and returns premultiplied alpha 2021-01-25 11:08:32 -06:00
Ryan Oldenburg 09cd7f959d 0.0.19 new scanline+fill 2021-01-24 23:34:31 -06:00
Ryan Oldenburg 0cb7b5ea3d 0.0.18 more paths.nim stuff 2021-01-24 22:02:45 -06:00
Ryan Oldenburg f0f2e5b4c6 0.0.17 paths stuff 2021-01-24 20:49:57 -06:00
Ryan Oldenburg 9e834ce8e4 explicit names instead of alphy shorthand 2021-01-24 18:40:26 -06:00
Ryan Oldenburg 45fe8bd9ea integer lerp, integer premultiply and straighten alpha 2021-01-24 18:20:46 -06:00
Ryan Oldenburg f6864b109e 2x faster convert to straight alpha 2021-01-24 16:20:10 -06:00
Ryan Oldenburg 007b495538 faster subImage, a bit more 2021-01-23 14:17:34 -06:00
Ryan Oldenburg 11164fa236 small things 2021-01-22 23:33:05 -06:00
Ryan Oldenburg 1c8aa83c0a better blend benchmarking 2021-01-22 22:55:28 -06:00
Ryan Oldenburg b41965ce3c 0.0.13 revert quad, unaligned simd fill for now 2021-01-22 17:27:20 -06:00
Ryan Oldenburg 7271cdfe80 arc discretize 2021-01-22 08:47:54 -06:00
Ryan Oldenburg cb621c2532 arc stuff, quad discretize 2021-01-22 08:42:28 -06:00
Ryan Oldenburg ddabf803a3 pixieUseStb 2021-01-21 23:34:34 -06:00
Ryan Oldenburg 773036a3ba add -d:useStb 2021-01-21 19:09:27 -06:00
Ryan Oldenburg 3eef65374d bugfix + test 2021-01-19 18:51:12 -06:00
Ryan Oldenburg 882ae0127c fix tiger lip issue 2021-01-18 00:48:21 -06:00
Ryan Oldenburg 74169e4c15 bounds 2021-01-16 19:01:06 -06:00
Ryan Oldenburg 3908825db8
cubic curve compute (#50)
* cubic curve compute

* curve -> segments with error budget

* dynamic precision on curves
2021-01-15 18:22:51 -08:00
Ryan Oldenburg 444fb18355
use line intersection (#49) 2021-01-11 20:24:47 -08:00
Ryan Oldenburg ce7507cd6c fast fill, remove benchmark weirdness 2021-01-06 14:18:47 -06:00
Ryan Oldenburg 3555ac1552 fuzz better 2021-01-03 12:12:12 -06:00
Ryan Oldenburg e2b8b50b18 small stuff 2021-01-02 22:28:54 -06:00
treeform a5a133485a Image -d:debug vs -d:release image change. 2021-01-02 16:20:35 -08:00
treeform 5a33f0a3a2 Don't return a new image when filling paths. 2021-01-02 16:19:19 -08:00
Ryan Oldenburg 6f37f04ba4 support ellipse 2020-12-20 12:18:02 -06:00
Ryan Oldenburg da0527edcc organize tests/images a bit 2020-12-20 11:18:05 -06:00
Ryan Oldenburg 10a10d3f27 svg more basic shapes, more transforms 2020-12-19 22:01:34 -06:00
Ryan Oldenburg 7cf59c85fe svg circle 2020-12-19 20:50:40 -06:00
Ryan Oldenburg 79189a473e svg decode more support 2020-12-19 18:03:40 -06:00
Ryan Oldenburg 5508c3fccd new gold 2020-12-09 08:07:22 -06:00
Ryan Oldenburg b895030088 all int blends, simd alphafix + softlight, benchmarks 2020-12-09 07:50:30 -06:00
Ryan Oldenburg a449efc386 benchmarks, use floats until proven faster with ints 2020-12-09 02:59:01 -06:00
Ryan Oldenburg cdadfd1cdd drawCorrect knows smooth or not 2020-12-09 02:30:19 -06:00
Ryan Oldenburg c83b3215d0 Revert "call direct"
This reverts commit 669dc48be9.
2020-12-09 02:04:01 -06:00
Ryan Oldenburg 669dc48be9 call direct 2020-12-09 01:26:16 -06:00
Ryan Oldenburg bad415401a benchmarking blends 2020-12-09 01:19:05 -06:00
Ryan Oldenburg 9ad9817959 faster, less code 2020-12-08 21:34:05 -06:00
Ryan Oldenburg bb80426a4d f 2020-12-08 18:12:27 -06:00
Ryan Oldenburg ec5bc9ba1e simd helping 2020-12-08 18:10:20 -06:00
treeform ed5679787d Fix flip. 2020-12-05 00:28:42 -08:00
Ryan Oldenburg cddfe43315 scanLineHits a bunch faster 2020-12-04 14:15:14 -06:00
Ryan Oldenburg cb0abe6e76 keep 2020-12-04 12:28:14 -06:00
Ryan Oldenburg 4a67ac0625 fuzz svg + exceptions 2020-12-04 12:19:00 -06:00
treeform 7c4615282a Fix warning. 2020-12-04 09:25:46 -08:00
treeform 07886e9c44 Make svg faster, add tiger exmaple, add SomePath. 2020-12-04 09:25:00 -08:00
treeform 7067ad62ee Add svg file format. 2020-12-04 08:17:03 -08:00
treeform 66c2f08cdb More benchy! 2020-12-03 22:44:44 -08:00
treeform 4aa5f594b4 Benchy more things! 2020-12-03 22:29:31 -08:00
treeform ae0930ba8d Use benchy for benchmarks. 2020-12-03 22:11:54 -08:00
Ryan Oldenburg a69a4327a0 in place sharp and apply opacity 2020-12-03 14:36:54 -06:00
Ryan Oldenburg b3b844ea0e more benchmarks 2020-12-03 14:32:50 -06:00
Ryan Oldenburg e1a4d7edc4 more + benchmark 2020-12-03 14:24:49 -06:00
treeform 4ae59d51da Prints out all path commands it can parse. 2020-12-02 23:35:23 -08:00
treeform 3ae54dad41 More path tests. 2020-12-02 23:25:24 -08:00
treeform df424b7635 Move test files. 2020-12-02 23:21:13 -08:00
treeform fa6b8352e6 Add path tests. 2020-12-02 23:20:14 -08:00
Ryan Oldenburg c27616fc32 fuzz jpg 2020-11-29 15:52:53 -06:00
Ryan Oldenburg 63aba341ab jpgstb -> jpg 2020-11-29 15:46:56 -06:00
Ryan Oldenburg c5942a478f just use stb for jpg 2020-11-29 15:46:56 -06:00
Ryan Oldenburg 89fd898764 nim jpg stuff 2020-11-29 15:46:56 -06:00
treeform c07cf13ae4 Fix tests (by removing them). 2020-11-28 22:30:43 -08:00
treeform 84c6a1e2eb Merge branch 'master' of github.com:treeform/pixie 2020-11-28 22:28:55 -08:00
treeform 346cdca51c Made shadows over 50% faster. 2020-11-28 22:28:38 -08:00
Ryan Oldenburg 2bee400d47 path 2020-11-28 22:00:00 -06:00
Ryan Oldenburg a6b2f70249 add jpg benchmark 2020-11-28 17:59:55 -06:00
Ryan Oldenburg b047aad920 faster 2020-11-28 17:59:55 -06:00
Ryan Oldenburg f0bbf02bfd basic nim jpg works, png dir 2020-11-27 22:53:16 -06:00
treeform 6fd37e831a Fix tests by disabled them. 2020-11-27 16:54:10 -08:00
treeform 8282611af9 Remove the copy on draw functions. 2020-11-27 16:51:53 -08:00
Ryan Oldenburg b683c751b8 jpg + stb for now 2020-11-27 15:52:24 -06:00
Ryan Oldenburg a8d667f879 jpg checkpoint 2020-11-27 15:52:23 -06:00
treeform 41edec4711 Add toAlphy and fromAlphy. 2020-11-27 10:18:43 -08:00
treeform b86d914dd0 Add the uber draw. 2020-11-25 22:32:50 -08:00
treeform 57af191774 Both draw in place and not in place done. 2020-11-25 10:09:12 -08:00
treeform 58e6950b51 Add drawCorrect and drawStepper. And blends. 2020-11-24 17:49:43 -08:00
treeform 1c368f7118 Fix rotations. 2020-11-23 17:13:26 -08:00
Ryan Oldenburg 43ce46c7f6 tests pass 2020-11-23 14:09:11 -06:00
Ryan Oldenburg 1646ee6789 f 2020-11-22 22:09:08 -06:00
Ryan Oldenburg 689c8612c8 move to tests/images 2020-11-22 22:08:13 -06:00
Ryan Oldenburg ebd59d6989 encoding 2020-11-22 22:04:43 -06:00
Ryan Oldenburg d5e977b6b2 better png benchmark, use bestspeed 2020-11-22 22:01:56 -06:00
treeform c0bfed8446 Fix tests. 2020-11-22 19:29:29 -08:00
treeform e3d5c292c3 Rename draw functions. 2020-11-22 19:24:00 -08:00
treeform f5dbe4102d Add newImageNoInit and newSeqNoInit. 2020-11-22 18:47:23 -08:00
treeform 3a341dbe0b Fixed green. 2020-11-22 12:12:53 -08:00
Ryan Oldenburg b708e08ff1 for now 2020-11-21 20:04:24 -06:00
Ryan Oldenburg dbf6a481c4 jpg checkpoint 2020-11-21 20:01:34 -06:00
treeform cd612f9a6c Use matrix in all draw paths. 2020-11-21 16:58:53 -08:00
treeform acc6822d0e Add drawFast4 integer-matrix. 2020-11-21 16:51:38 -08:00
treeform 7eea5ff2d0 Move blends. Better Draw. 2020-11-21 16:51:38 -08:00
Ryan Oldenburg 5f7908f8a4 transparency chunk 2020-11-21 01:09:05 -06:00
Ryan Oldenburg c0803c3336 corrupted file tests 2020-11-21 01:09:05 -06:00
treeform 344063ddbc Simplify draw, bring in blends. 2020-11-20 21:50:13 -08:00
treeform c1cfbe0336 More work on inplace vs copy draw. 2020-11-20 21:16:54 -08:00
treeform 23f7134fd4 Bench: inplace draw vs copy draw. 2020-11-20 20:09:09 -08:00
Ryan Oldenburg 79e9ee7cd4 png 2020-11-20 20:21:27 -06:00
Ryan Oldenburg 42da6582cf bmp stuff 2020-11-20 13:18:37 -06:00
treeform 724b2f30da Fix tests. 2020-11-20 10:00:58 -08:00
treeform 305d65187c Add supprot for 24bit bitmaps. 2020-11-20 09:56:34 -08:00
treeform f8ea6c3717 Add bmp file format. 2020-11-20 09:14:33 -08:00
treeform cb50a1cb86 Do a little image work. 2020-11-20 09:13:53 -08:00
treeform d3e908ba2d Add a bunch methods to images. 2020-11-19 22:12:44 -08:00
treeform ced498821e First commit 2020-11-19 18:45:26 -08:00
treeform 238479e72e Initial commit 2020-11-19 18:41:32 -08:00