voidstar69
39684e9fa0
Updated every filter and sampler to call ParallelImageProcessor.OnRowProcessed to enabled progress notifications for client code
Former-commit-id: 3669c36371f1e113f64c927c352cffd8d083b2b9
Former-commit-id: 3a338140eca0b31f75389c82b6a87c6b74a98db8
Former-commit-id: b2e9b8dcc8bd8706056c8a23302b940de21bf1f6
10 years ago
James Jackson-South
6aaca12252
Resizer is now a 2-Pass 1D process.
Former-commit-id: dfeacbdc5bcbcbfa58e4f7b0b731552017ccf562
Former-commit-id: b6d6133d665001a134b387c332ce83f423e53ada
Former-commit-id: 1ad3ae7a746f4e4036fcd09b723a763a19bfb4b6
10 years ago
James Jackson-South
6233f57d60
Revert "Color is now linear by default."
This reverts commit c4114b2ef1 [formerly 144be0509d7ce2e2702b13b1ea60f708083e4912] [formerly 549f0ac778eb8b1a12d7b7e38280f360aa71ad59] [formerly 3869ebe4d426df2fba1e2996c2fed464a0a55357].
Former-commit-id: 553ca901ac3a2f4ba2c285a8e5c74083aac77587
Former-commit-id: 5f9463a2211e2a95e1efcd74855a327d360bf84e
Former-commit-id: 1391abd216c1b82010d41d729f480dc603731af1
10 years ago
James Jackson-South
3f648cdfb6
Color is now linear by default.
Former-commit-id: b0fd6546f0419bf458402dfb8f7d4769320b0793
Former-commit-id: c19266c3e808fe90eb3523c51b0f9dcfb06a7baa
Former-commit-id: e24b61b5c05f5647c4ae5dd0a664665e4d0e479c
10 years ago
James Jackson-South
a15aa3bbce
Clean up and refactor transforms
Former-commit-id: df1b7725ae6c1a34fa27f800dc920f47c43f4c7b
Former-commit-id: 4355ac5c25c7ece5743f3f27b1eeed69f1f58fb2
Former-commit-id: 9af3c6b11ebd6e22750676e82bd2041b6665db2e
10 years ago
James Jackson-South
965c27a2dd
Slight optimisations to resampler.
Former-commit-id: b3130ed0f4ba51d538e36ee6cab79e9258d3edc6
Former-commit-id: 1c6c4fdc66ce7aca48330b2649933ff111243322
Former-commit-id: d74265804147e84e4646388b4a16038085c80a29
10 years ago
James Jackson-South
dc0f75e03e
Tweak resampler, allow unsafe
Former-commit-id: e77ade827376c5b8391c43f4279e1f49c75d93d1
Former-commit-id: b72fe8bb4e2d417ff6b3a3301a8b7804e6897e8d
Former-commit-id: a79d8c18a2584944f2ee68faf629e9f06d3dba7a
10 years ago
James Jackson-South
5fd8f011bb
Fix poor quality resampling.
Former-commit-id: 7c2cc88d5c9d1aa4743d2e722221b1f1918a003d
Former-commit-id: ca98fb8d2188645f32cb858487da272927bac425
Former-commit-id: 6d015b5e054a3b2065c3b998e63a5f7c1603217a
10 years ago
James Jackson-South
d26210912a
SIMD optimisations
Former-commit-id: 30dca08470d0e771bbc18bb717d05443fcf404b5
Former-commit-id: 75095f939b10143f2bef62096f9ab40e4aeeec9b
Former-commit-id: 9b8f804b79ec99a32915123a41553009d1bd1af8
11 years ago
James Jackson-South
2ea3c2bc3f
Fix weight count
Helps mitigate halo bug with gifs.
Former-commit-id: 9307909acd7eb38e5a6c722c2f1ce2c949ca4a9c
Former-commit-id: 7e53310efb4390de53880066e1798c5e77cdd649
Former-commit-id: 4bd4a70b5a3c64f39dd95203d8ad8bf31a394b11
11 years ago
James Jackson-South
fb8b0f8575
Inline methods for perf
Former-commit-id: 74f419b4df37488676902624f09ba160c1974f7f
Former-commit-id: bdf812eb8dd5746ba204ba70ba938cce33dcae7f
Former-commit-id: ccd1ba3f85cf3b4fb101e1ea78f61b836fda3fe1
11 years ago
James Jackson-South
78d3abe208
Minor optimisations
Former-commit-id: 29042a39cda4cf3e8b50d66292c877db2fda8c2d
Former-commit-id: b133abc88402677d2b65df54be481f9d8197c32c
Former-commit-id: 7edec27867e0850ccd5bd8d3537c6479b694ada4
11 years ago
James Jackson-South
dc8135bd14
Optimise resampler
Former-commit-id: a8ff4bd48c3dd227beeebda998ca455c93cca173
Former-commit-id: c54775fc21c5f076cc644a991f6f7f70a903f819
Former-commit-id: dc8aabfcd64975ff08526c6c08c766614c1fa87b
11 years ago
James Jackson-South
34298d4bd5
Better transparency handling
Former-commit-id: ac22e88250f0f22a76df995e48aaa1b57b4eaf32
Former-commit-id: e50bfc7cfdfab49c7b1214d82608571f05ee725d
Former-commit-id: 37bc9f8b39875633915092c6e1351450b3d93fbe
11 years ago
James Jackson-South
a567287df5
Clean up primitives
Former-commit-id: 48d938725895d56593d7adb1b0b9874c3453de1a
Former-commit-id: c35e8557e3c481befce4d4b2c2dbd6bf5afe9c24
Former-commit-id: 0dffd360cd78c7570182448ddb60f872d27284fe
11 years ago
James Jackson-South
77d07694e6
A few Color tweaks
Perf improvements + API clarity improvements.
Former-commit-id: 219c3e9ea9c2b53b77a4d4ee3455a20bccc07e56
Former-commit-id: 43460627a23abbaccb4d094de9d87a87b83d5752
Former-commit-id: cfcae0b8648bf971cd3ffc93c9cf7e56f8f520b8
11 years ago
Rubens Fernandes
8e28fac19e
Simple change to emulate the V2 resize behaviour - if either width or height is zero, then the image is scaled keeping its aspect ratio.
Former-commit-id: 624a5693a4bbc9181a113f64e126e70233cacdd9
Former-commit-id: 9741756887b97eb777904afb0782a1a0d481f7c1
Former-commit-id: 43d8122ac4ed7e214f704812f5614b701ed4a81b
11 years ago
James Jackson-South
147323b957
Add RotateFlip Fix #261
Also add ClonePixel method to ImageBase
Former-commit-id: 02d6a5907cab2d7b6676d1adb1a08f008019ba6c
Former-commit-id: d08034c48be2dd64b949fdcdd76192c6b9558f5e
Former-commit-id: 92f3d2bafb4cf97d360aa99183a177d52cbe4cca
11 years ago
James Jackson-South
bab6350aaa
Add nearest neighbour resampler #257
Former-commit-id: 8e6ac4bf4ee07615c7bb707aedc12afccd1647af
Former-commit-id: 40db8d0882d4974b675fd0cd7531eabb7c701210
Former-commit-id: 99fdd9fb8851e2e23510f3682f671acf06620a31
11 years ago
James Jackson-South
8a79e364cf
Fix broken tests and cleanup.
Former-commit-id: 8ffd61fd16ba32d300ae6cb0bd4a1f4d40915097
Former-commit-id: 2d3f52bf43aaaf8dec769b5f8d537523ad27769f
Former-commit-id: 91c3011b36fc412d8a17ec6102357e7108160813
11 years ago
James Jackson-South
1594d1a9bb
Moar updates
- EntopyCrop
- Color definitions
- Pixelate
Former-commit-id: ab6fb2aee9f035186c0bdbf547bed966c30f9b43
Former-commit-id: 538eed7fb5f4e4cd6e1841cfe3ca1ea3720c8733
Former-commit-id: c1f8a66e00f1c4d77d77befa3b3ac3b66b8fffb8
11 years ago
James Jackson-South
fc4f12d652
A few updates
- Some predefined colors
- Source image should not get overwritten
- Begin EntropyCrop - unfinished.
Former-commit-id: b850425cf724060eaebcd6cb26322e5c66b9cc31
Former-commit-id: bf58b1a1716bae742273be8976b5e500294246c5
Former-commit-id: c76bf52819d11562b005453042dab203c58b6d6b
11 years ago
James Jackson-South
95afc5b52d
A slightly better fix for rotation alpha bleeding.
Former-commit-id: 646bf9a47dd4ed4f9654584920323014128d9460
Former-commit-id: ec7c1edbcda7d5029dae26a5dd7ae629302bf633
Former-commit-id: db9785704051ea50c3ed9ea9f03f23c7289e1a6d
11 years ago
James Jackson-South
e498efe12d
More rotation improvements/tweaks.
Former-commit-id: e52c082647f8b243036e6f15e77bfe072dadd386
Former-commit-id: a0250cc078824f9463a474a5002418888e11798e
Former-commit-id: 68ad7c778dfc94f46300a0ef99e3fc19d4059a9b
11 years ago
James Jackson-South
375a21e954
Better transparency handling in encoders
Former-commit-id: f270c42392da5923b647c9a020b2cab5f0d8246a
Former-commit-id: c4aff598526059b09d4c1e4ee7a782e317c686b6
Former-commit-id: 7e6cb00b0ece0f5968d6f69262f3c0c576b6d750
11 years ago
James Jackson-South
f342cd5bcb
Slight resampler improvements.
Former-commit-id: de4bf89d2a8844507e7c9c60f1621633d139c196
Former-commit-id: 918a88897c6982ff4bec7f360fbc9324c8bffd5e
Former-commit-id: e8516b18aa2743002c5eba48e5e5972f643e318a
11 years ago
James Jackson-South
db6b27790e
Make rotation nearly work.
Former-commit-id: 82b3c2d28c50b3d04c72d39167c063e3dcc4aba4
Former-commit-id: 4f42a0a278c5eaa2061c9cd8b8c64f8d2e1201bd
Former-commit-id: 90e0c27f9639952a46856afbb56ea0ad1c5f5f2a
11 years ago
James Jackson-South
53a7d2768d
Add rotation to resampler
- TODO: Better edge handling.
Former-commit-id: c4c65b5dd47357ff419119ddf1f3d4f0e3a5c5e4
Former-commit-id: 22ecdf450bc106f6b1c3e0f3c4cb2cd5a2a010ab
Former-commit-id: 95089f4cd166de28c8133aa873ae4195b1b8ffbf
11 years ago
James Jackson-South
8a9210f579
Various fixes
- Fix alpha clamping on Resize to prevent bleed.
- Finish Color premultiplication updates
Former-commit-id: 52998716848b710dad059ce767ac5c14e6f3cac7
Former-commit-id: b63167e01bb7ab827438cf3cdd4e39bbff9c5249
Former-commit-id: a3dfdeaae32f9fd0463cd9da76cf0b7ef1c93571
11 years ago
James Jackson-South
e42ae5e67d
Switch out List for ImmutableArray
Use my full name.
Former-commit-id: 68931f6382eb2988fb29b31ea82ea03c48f967a3
Former-commit-id: 07b72753f259aae27c2eeea8d8ade919ab11fd98
Former-commit-id: c564a2e6328096acf051af9def4656e75ad2547c
11 years ago
James Jackson-South
c95840a29c
Use compand and inverse.
Former-commit-id: 6613974e95dea97465c0252e785cd80b6f1f33bc
Former-commit-id: 17648f2923890ff36fe4fd2f3bc0223835fd4db7
Former-commit-id: 63c6fa184d0e73dade3f06952b84ef33dd86393f
11 years ago
James Jackson-South
63466da190
Stylecop fixes
Former-commit-id: 4ce25cbac837525bb98af107d3126f4cad6ed5e7
Former-commit-id: 5f18082024474a701dc45c921aae1878dab85a37
Former-commit-id: 1bd9cb859cc44a2bdc09a0ed66c1e389ed93ac80
11 years ago
James Jackson-South
d9b3976f03
Refactor edge detection to streamline API
Former-commit-id: 9e5b8edfb049780f3f8a553f02b2fee20b29f91d
Former-commit-id: 66241f9dd5f8be909f03d8b6435e86f69b3f95d4
Former-commit-id: b34b5df5f557b528d9dcea49e92d93532b984cb6
11 years ago
James Jackson-South
f694929e71
Fix method overloads.
Former-commit-id: fbfb52d5297d300da706b5db93e795ef2322b3e0
Former-commit-id: 133d57f85a2b58458f49bb27c0366289d86d9b9b
Former-commit-id: b00aa38bd47cbf8563a77f981bb9d9f5a7c8a4a3
11 years ago
James Jackson-South
0c9788ffd3
Add rectangular crop.
Also add overloads to Gaussian blur and sharpen.
Former-commit-id: 22acbbb813129bc07f7c433baaeee4f677eca785
Former-commit-id: a7c535f850892fb3c473180b088010d0a49c289f
Former-commit-id: 253f560eb43283d9794c4fab342eb09f664375b8
11 years ago
James Jackson-South
c07c01a29e
Add more filter methods to API
Former-commit-id: d4780ca73ce16b8c9274d881ae7798f6e4988e59
Former-commit-id: 8bd63c9e392fead7e065614385bd73551f2cfdde
Former-commit-id: 04b6f741e5ce9928a6d3406ec65e31fb7f9bbcd3
11 years ago
James Jackson-South
4806485884
Fix Color component order
Former-commit-id: 598bd56e7d1a761d597e18801693abf9225c6f4a
Former-commit-id: 6d3d12d925b47cac694bc95756b497a0bfbe9788
Former-commit-id: 2c78f8823a7bd28288ea1a69021383997ff036b1
11 years ago
James Jackson-South
53675ef9a6
Remove multiplication
Former-commit-id: 144ecfc26979bbd2bc589ce36ba7188339f1f746
Former-commit-id: 6829fb5a79b7f46df17bacbbc4df662a4012c634
Former-commit-id: 96dc08f0b0b8a16cf9e55eb3c3f1e274479e36a8
11 years ago
James Jackson-South
094e7b081f
Fix stylecop issues
Former-commit-id: d901cd8d2492eff7048d62296f4f3e53e7083dd1
Former-commit-id: 224e01f61e0dcd4fecaf49112562f974b00989a0
Former-commit-id: 671034a706cdfb6d188f90d3b03018b2849a303e
11 years ago
James Jackson-South
8055100687
Reshuffle colors, improve accuracy of cspace conversion
Former-commit-id: 21db4ab00e856eae2f405ef0fba5637db1a309ac
Former-commit-id: 6e9b3dd6524e5d7c811547f2808a95c720fe02b6
Former-commit-id: 291d39f6d5dcfed05b49bbfda0f78e4f48112d7f
11 years ago
James Jackson-South
eabdd9074b
Attempt to speed up operations using vectors.
Former-commit-id: a28745bb3a7a48769718459f660aee59dc6727fd
Former-commit-id: 3cea324866d570efa674f7ea8cfcf964a3283f58
Former-commit-id: 8eb414b88e6c70055d2653818694c0fc8c95ba83
11 years ago
James Jackson-South
9de975f6aa
Cleanup plus perf
Former-commit-id: eee5a95a9773ca04ae1ac4fc3621a3cede95d72b
Former-commit-id: 1c6d20e0334e12c809773a43ff81326f4a4823aa
Former-commit-id: bdfcd5892564543a1f65b45d57777404cdd930df
11 years ago
James Jackson-South
e7003539b4
Update to NET 4.6 etc
Former-commit-id: 507fcf53a7df87e203954e187fbb61bec515ddbb
Former-commit-id: ce1d96184a059188a0f1040350c7da84764c294a
Former-commit-id: 7cd451ad1df8bcf080bfb01d3b6c4a89f10c8d78
11 years ago
James Jackson-South
eb1c68ec7d
Remove old resizer
Former-commit-id: 46af7747e3c139d822a72eed28f9bbab0577faa1
Former-commit-id: 3eda11a7d18ccf73c2da72c500ea43ab1ef1fcfc
Former-commit-id: a31aed5e31ae969755fa7439088c34d188a41c27
11 years ago
James Jackson-South
04cfafac8b
Add Lanczos5
Former-commit-id: 6055bc865b95eeb9d89c3d6d5e7859ba7707f2e5
Former-commit-id: 552ea8768e0b173fd5fe103645da6c8f16cf143e
Former-commit-id: 5594f396a9ffbb48272a27d1cd7d49e40021c399
11 years ago
James Jackson-South
8b96f77e7e
Fixed resize. 😄
Former-commit-id: b52d0b39a7a48ca3c8e42ea9bec8d7bf6a8b7097
Former-commit-id: 3f7f8f2bc002838aee0133b92010625cbf69f121
Former-commit-id: 3a530d30f8e2574cb9bc2648c53e1866aae0793b
11 years ago
James Jackson-South
3aea13209e
Resizer updates
Getting closer but still not quite right.
Former-commit-id: a4a9888db607a76e6173b49ce6f063754eccf117
Former-commit-id: 6e2e78e949c7d2a9f66572ca55c57a8cb5e85691
Former-commit-id: 63567e454b970474ae443266d065fc251f2f65e7
11 years ago
James Jackson-South
b2d36c0ced
Add error description
Former-commit-id: e015519c677560b93ac0d13470949cda12d090b6
Former-commit-id: 8699ed2d8a7eb733e7a38c04b56cc745aa355e9c
Former-commit-id: 4d4ab5bae1a6bba7d61502e0a019d50a834f285c
11 years ago
James Jackson-South
933f6d8f55
Cleanup for debugging.
If Parallelism > 1 then something goes wrong with the pixel sampling. It
could be as simple as a rounding error but I'm struggling to see what
the bug cause is.
Former-commit-id: 222bb4f5982a37ad03dc1ddd47a7d437699ba6b6
Former-commit-id: 1e85ef9bfa7f17bb703c84dee5b6b18734ca7401
Former-commit-id: f6bbb2fbae3df6e9753e16dbcf80c75c7d7f93a3
11 years ago
James Jackson-South
889071abeb
Experimental resampler. Need y-axis fix
Former-commit-id: 9c4e407244d5f3c4dca2acfdae80d4a1b09e91e2
Former-commit-id: df3578fe9a9da69ec0306cddc3427dd706dec866
Former-commit-id: 2142bb6dd2a6a2b959093598792335443f853651
11 years ago