James Jackson-South
5d6546e0a4
Tweak resampler, allow unsafe
Former-commit-id: 1fb5ea424210b30b00733a7a3a241b5655e6d830
Former-commit-id: dcbef8a1b6b01d4b142b75f3c1738173e8436856
Former-commit-id: 0747fa709231401ea60953d8f7a4243a1961dafe
10 years ago
James Jackson-South
7d6e996fa9
Fix poor quality resampling.
Former-commit-id: 573f5458ecbc40e33daa2175417aa512b0d7dba7
Former-commit-id: def82e693cdce3e3dbda59533175ef921bb14ff2
Former-commit-id: ed217a700941f13d7757419d48ac6a1e53cb768c
10 years ago
James Jackson-South
7266b7a3cb
SIMD optimisations
Former-commit-id: 84d7baf1143adab15d23d4bbc5011ac2e70364c1
Former-commit-id: 8510f8d406386e97d26b5e4a28044cfb61e9ff88
Former-commit-id: a2ae716d4495a9c2a1d6334838c5103ec4f0190e
10 years ago
James Jackson-South
4250fe94ea
Fix weight count
Helps mitigate halo bug with gifs.
Former-commit-id: 3a23d972fbb8fa09977e2303065ca61d96f6f1d6
Former-commit-id: 4ec8909f0aef656426ef5d0a3d88f41a51b5a308
Former-commit-id: fe652e796cb6d052deb7c682cde01522c43c0631
10 years ago
James Jackson-South
40a9b3c365
Inline methods for perf
Former-commit-id: e899dbeb1b67c44cb17cc1e73aca7241a19f1555
Former-commit-id: b0a8ab76cc5caa54b8c9646ac6999b3d1b26dd82
Former-commit-id: eb027298759c1c3be00ce2820ccbf5191a393883
10 years ago
James Jackson-South
fd4cd4145b
Minor optimisations
Former-commit-id: 732ec6eb4f12e9d029f60e7a8149ae353828e3c7
Former-commit-id: e5c071029115af00af8b7f61932de5acbb860bdc
Former-commit-id: c298b38efe3ddcfb3038c1177affa2e139a47149
10 years ago
James Jackson-South
e4dc013374
Optimise resampler
Former-commit-id: ad35dab25a0bbab6a1a409426ca4de7e547d9a62
Former-commit-id: cdd9a974507a9daa37ff378d99bf59023ded0f40
Former-commit-id: ba7c2080d55a9064f2c146c0affa73863245c8ef
10 years ago
James Jackson-South
09176be63f
Better transparency handling
Former-commit-id: a1d0f5d52b21aa76531f86ee63f75973311e1837
Former-commit-id: b3f3963a089a4c99ae8ceda8b4ad019b19e32ec2
Former-commit-id: eb5b4e013f56035cd961b03e213cea128ee5e88b
10 years ago
James Jackson-South
a7d6c055fb
Clean up primitives
Former-commit-id: 5cf1ec2ba4cf646e94524fb425951760724b3eae
Former-commit-id: cc0f2177a28de32d6df34b0d23bfcba3ec898c0c
Former-commit-id: 8f2227320a0891bc824fb7256b97d536f381a76a
10 years ago
James Jackson-South
8a100352ed
A few Color tweaks
Perf improvements + API clarity improvements.
Former-commit-id: 23e6a036da892f79806c032023c5ebf38a5f868b
Former-commit-id: 36fbc42b2acee9cc1480dcade6d250161f41ea1a
Former-commit-id: 6a108bdb9c56a07967c7089f2b0adfcc45bf05c9
10 years ago
Rubens Fernandes
c94547caac
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: 68b9296ec70653abc61a7b7914079cd7fbabfe93
Former-commit-id: 73884c27747ebffa01cc729d09d43cf13a67eaa9
Former-commit-id: 1920f76c843de69d2b21fda9676607088a47ac78
10 years ago
James Jackson-South
285019cb2b
Add RotateFlip Fix #261
Also add ClonePixel method to ImageBase
Former-commit-id: e25004eacf2aec54273a98f02a208c0fb60e12ae
Former-commit-id: 6bacacf8cb0bd8315961485b640809e1931e7388
Former-commit-id: f91314805b2aac54b3bab50a9bce782d15d854b1
10 years ago
James Jackson-South
c65f9da778
Add nearest neighbour resampler #257
Former-commit-id: 00082be425529e9216e445e9da255dfad11894c0
Former-commit-id: 9c3b0b3308eb443edf3365f62ba8f4c5c51305fb
Former-commit-id: b42ef3cfe4ff9cdc94aeb465f456adf46b0451d0
10 years ago
James Jackson-South
e1a1059358
Fix broken tests and cleanup.
Former-commit-id: 0a49ce0850cd56b7709f0dab8e401c0eef370e9f
Former-commit-id: 283107cc1988b9405da88fd40e39f3390f3a111d
Former-commit-id: f13026b7d2237fe624432fa9f8b2b4fdc147a89b
10 years ago
James Jackson-South
d9c5e808cf
Moar updates
- EntopyCrop
- Color definitions
- Pixelate
Former-commit-id: 5605d078e59f63faf9354f1d80093e6c26096bff
Former-commit-id: c0ca96e94e189a760fe3d77f69d3470efc8d385f
Former-commit-id: ae7c743d17bde56511d6b312b9fbf9163f99da9c
10 years ago
James Jackson-South
6bc831957d
A few updates
- Some predefined colors
- Source image should not get overwritten
- Begin EntropyCrop - unfinished.
Former-commit-id: 15096078a8c4c81e5c38b07111496b9382e98583
Former-commit-id: 1525d80b8094e74ee0b1a64a291e9fdc606b0438
Former-commit-id: 7ca269955bd18bb8c1793b3038c95f8f976694a1
10 years ago
James Jackson-South
d7994a6d0b
A slightly better fix for rotation alpha bleeding.
Former-commit-id: 56cc6017a17d2fcbad04e88e36f53e5d5f8d25b9
Former-commit-id: dbd6bbb1ac33eadae1b2a5d520e73dd9251fd856
Former-commit-id: 07b68d5a3f85b4220ad49b96c3caed440f0de285
10 years ago
James Jackson-South
bee627f004
More rotation improvements/tweaks.
Former-commit-id: f70a282d078d1fee3858ab7cd10952d5613cfe6c
Former-commit-id: 07e613cc7879308b9475ee3a8582a9b5db3ff121
Former-commit-id: 73fdea9a14385d10b74a0abea0ece717170ec960
10 years ago
James Jackson-South
3df30431dd
Better transparency handling in encoders
Former-commit-id: 4ac66346af234c105628b588a84a4cb746c3e6ad
Former-commit-id: 3c249d1fb3e2860e3df77b1cb8e30bd60fda1db4
Former-commit-id: fb192a7e2fdaedf1b75173c8283b44642614d81d
10 years ago
James Jackson-South
958a5933bf
Slight resampler improvements.
Former-commit-id: 09a687a857ede5d383c0ea75355f14ef7b3af3ad
Former-commit-id: ed7170e5e7240e94ab430bf08dc0af8c43ad30c0
Former-commit-id: d5ef91507e6a9503d4ec469282e6f1d0799f7224
10 years ago
James Jackson-South
d0421f9cb5
Make rotation nearly work.
Former-commit-id: 43d3750d95462d1d81378b30aba36f17722f0be3
Former-commit-id: 3cafad31a2ed4936a79fef9304bcde1178624c20
Former-commit-id: bc27be7dce944472e548d0de50b23fd0bb04aae5
10 years ago
James Jackson-South
75ac278221
Add rotation to resampler
- TODO: Better edge handling.
Former-commit-id: 074f57e3bf0136519ffceccbe360ae94445a7893
Former-commit-id: 3165e549493652f7557c0e23f84dd03d89b06320
Former-commit-id: 8046adb8f1013885223deca6283cb1cde0a58f18
10 years ago
James Jackson-South
56584d9656
Various fixes
- Fix alpha clamping on Resize to prevent bleed.
- Finish Color premultiplication updates
Former-commit-id: e0cc8e3c08b0626fe1a1a7ce4c2f1246c1b912ca
Former-commit-id: 503f9fa8137a2ff561d697bb2a4cdd2071f1728d
Former-commit-id: 51ee649dbfec8fc8cc4db412ac6b743ba2ce991c
10 years ago
James Jackson-South
54860af472
Switch out List for ImmutableArray
Use my full name.
Former-commit-id: 329d5d6ae345d28b6c120966b77641cec4dce101
Former-commit-id: 121cd1a695ad5d3da170725385a3e555b5536798
Former-commit-id: c34c57087a21e44a404066329e2512d678eef567
10 years ago
James Jackson-South
3608509fdd
Use compand and inverse.
Former-commit-id: d767103ac110d527e2d62c4582f25d5fbc382795
Former-commit-id: d6c8f8645138596b21a29206bb94426ca2913392
Former-commit-id: b78498a1668f0f302ce829365675ba9cac8b81c2
10 years ago
James Jackson-South
b3e7e35799
Stylecop fixes
Former-commit-id: fc76d9c8cba162b8df67dc1f5f3d74747d72d099
Former-commit-id: 2ff5a55b83f7470e51273ddd6bb2dca7f33e01b6
Former-commit-id: 606d237e0b442997f0da2f2064882753c497daa3
10 years ago
James Jackson-South
cdc539b13e
Refactor edge detection to streamline API
Former-commit-id: 7c34c72499a47b2d9e11f86d4b995bacfc02a585
Former-commit-id: 2d1151dc50f27a25c41b88f2882330602ebbf6d8
Former-commit-id: 25600ca90a236389fb2b1418465f01945755df17
10 years ago
James Jackson-South
2a49aadbce
Fix method overloads.
Former-commit-id: 90e4c4eaa2f81993d07def639b343c8cc664451a
Former-commit-id: 6038e00d8249dea8648385af59a1d3656b269300
Former-commit-id: 02e5a346ce23367c58c9b34f707a418246b9d1e7
10 years ago
James Jackson-South
1fc25ae5dd
Add rectangular crop.
Also add overloads to Gaussian blur and sharpen.
Former-commit-id: ff18410aefbdb605d7177dfcc0e98dadf9d85e47
Former-commit-id: 71993046259e4fbc6734345cab961c2741ccb9d6
Former-commit-id: 5a3f8b071b8e4948544db58aa1280c0df451efe2
10 years ago
James Jackson-South
4e38b7c359
Add more filter methods to API
Former-commit-id: d6ae1aee8613ad004d76fba528cd1bc7a2ca3054
Former-commit-id: 77bb86b4723c5074860e3fd8574115dc21380c04
Former-commit-id: dca053caa530602fd33a3805192e7060df900515
10 years ago
James Jackson-South
a05818c9da
Fix Color component order
Former-commit-id: 851778bc5ece309963a04164270dd93c24ee914c
Former-commit-id: 22497c332d115463ca5a008cd1ec35c31dcc32fa
Former-commit-id: 8e841b0f35ca1d340151ecb2fda8f04483eaafe1
10 years ago
James Jackson-South
4caf79aa72
Remove multiplication
Former-commit-id: 7b7f17333d4c1ac4c7efa21ba2f71316586afc9c
Former-commit-id: af588192816b5c06b1c636167268d679c57c36ac
Former-commit-id: 22430e8d68049503c81d8e0ad84e41ce12ec2bff
10 years ago
James Jackson-South
8eed86a484
Fix stylecop issues
Former-commit-id: 32fab43d5caf3080106d0abdcd6e629370af58ac
Former-commit-id: 9aeaff7b7a973554d98e7b2932e1e4d5ca489176
Former-commit-id: 52800893572012a00a3331cc6cab3f8f449fd26d
10 years ago
James Jackson-South
8a3155d086
Reshuffle colors, improve accuracy of cspace conversion
Former-commit-id: 3c378bc93b0edd73d1c8f07fab33b1943b9d4411
Former-commit-id: 2fa968ca7c3535ab92251d55afba20e64c574089
Former-commit-id: 12065bfba7ce14e175d99d15d2f0a937665fa395
10 years ago
James Jackson-South
988f2eeb7c
Attempt to speed up operations using vectors.
Former-commit-id: f3cf2caa49c0fd2075cb9663c999ceb208d3078c
Former-commit-id: e0e2ccaa6c0965e6f1b1d60b196e68f9a247f03f
Former-commit-id: 50fcf6c30047e68324c66e69c13af4bfec7256de
10 years ago
James Jackson-South
e7bb84d597
Cleanup plus perf
Former-commit-id: 63f72c2f2fe3fcc93bc33dc34d53fd510c8b303f
Former-commit-id: 62ee31e766620df396d7155a7b30bf09ce7ba4c3
Former-commit-id: ba93e7236c32f9b633c2d754781a641da27cc3c0
10 years ago
James Jackson-South
4910a825de
Update to NET 4.6 etc
Former-commit-id: 13504b6bd87f681d061848d19c5f3cb607e96dc6
Former-commit-id: eff308eb2d06484cbe38ef3a808f29584233ac6e
Former-commit-id: fc96b270e55c0ed1d7dd47e2769402c348bf298e
10 years ago
James Jackson-South
bd8ab51a70
Remove old resizer
Former-commit-id: e631710eab72517814da559f9d805852d0d413f7
Former-commit-id: b023ee06190c3c4949cd317affa594cc45b356a9
Former-commit-id: 6a7ebbd01c4f6750c85cef5acbbc944e8b57ae01
10 years ago
James Jackson-South
f48724c2ad
Add Lanczos5
Former-commit-id: dd83c793aea242e533c04f1ed0526319e3608c7b
Former-commit-id: 27cfda9e96a3148eb9345992050880cfa830dbd5
Former-commit-id: 4d4eb638fed3de06a05eca59d161acdd2d389b7f
10 years ago
James Jackson-South
8dc6c6abbd
Fixed resize. 😄
Former-commit-id: b76ea5a37afec493edc37fa84af3f2e7407498a4
Former-commit-id: 1e557c3c26bd777ba0f16f2d2b87fe10b3aa1073
Former-commit-id: 53e49322bc6608b6d2dbb4a9a54473c093c69a5c
10 years ago
James Jackson-South
e3a2334ede
Resizer updates
Getting closer but still not quite right.
Former-commit-id: 7df2d4c45591ba8e71e073c29d61b73e25c38cf0
Former-commit-id: cb63ea1d1341f15a3b6d82fb6b0a6c842107bcf9
Former-commit-id: e3a69acf2949c0081381ca71214c673581712e93
10 years ago
James Jackson-South
9086830919
Add error description
Former-commit-id: dbebb6b47170689ec34562227bd121576804da24
Former-commit-id: 5c4a85d20676e216182fff6afe02a6efe8aa5578
Former-commit-id: 48be00b8ae0bd30faf6a900c44cc03e97eaad497
10 years ago
James Jackson-South
31d123bbf2
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: ca308abcc60e0d64011ddb3e72b3ed5f7770a407
Former-commit-id: 188f7fedb0df78efc518d896747cfe605df44ff5
Former-commit-id: 35d77eb073dadfa0a7abcfebe6f858ece0efdf09
10 years ago
James Jackson-South
0c209fb50b
Experimental resampler. Need y-axis fix
Former-commit-id: 2ba617c37ac8e40daee881ac11e3451f49bc753a
Former-commit-id: 3ef1ba6940ef32cbc16b3b9656419c737925a2a1
Former-commit-id: 8ef77f95ee83c86f478c6249f52ad2f89ca92b65
10 years ago
James Jackson-South
a4986afc31
Add new test image for rewrite
Former-commit-id: 9ddf97eb0300834d945db627e4c500e67fbf1fb7
Former-commit-id: c9a893530a085724596af1054492d125dc0355ea
Former-commit-id: 3266f3ce095fd3f865d0e540e6096f794de70c4f
10 years ago
James Jackson-South
31e50252ee
Cleanup
Former-commit-id: 11abc62aa78af1d7377948b757e8dac5dab49aaf
Former-commit-id: ad449d9635135872d0b2a15dc6eb29c771665c2f
Former-commit-id: c4672260a9f7f6aa066fe8c73568c00603260be8
10 years ago
James Jackson-South
8fe32cb1d6
Adding some resamplers
Former-commit-id: 173de39596036ccb0970ae195d47874cb5610db6
Former-commit-id: 156b60bd82d6e2d49c0733aa5954206417d63501
Former-commit-id: 6639ef8d33a006707c408193122d001189eec15d
10 years ago
James Jackson-South
6e1639314e
One method to rule them all.
Former-commit-id: 5e10ac72eb889229640d206db43a0a741449cfa8
Former-commit-id: b63d6e63487a412929054f985adb5b4fd32d3e55
Former-commit-id: 5ab11c7dab763ab3ca3e1ab2244e50aa08f63fdd
11 years ago
James Jackson-South
d7f504ad5c
Add Lanczos3
Former-commit-id: ffc9b65f1a7643d7a1581dc702d507ee247aab91
Former-commit-id: e079559f8b9293a40b86a946825d4cd734ef0e69
Former-commit-id: 7b795cc9803c78b1d2b434b4d7c1479ebd42809f
11 years ago
James Jackson-South
99a296efb4
Fix resizer
Former-commit-id: a30925b4f90f25bd8cbda4d71e43d45198a52d53
Former-commit-id: eb5b8f040d476372cfd3407a39fe9b6accfa659b
Former-commit-id: 83f1e75b1e63c585c83ea2ad836815c4cf0e5c10
11 years ago