nfnt
579058ccc0
Test for color-casts due to wrong alpha-channel scaling.
9 лет назад
minodisk
87f723015c
Test same color with some color modes
9 лет назад
minodisk
f430a41192
Fix wrong color with RGBA input
9 лет назад
nfnt
563154816f
Remove debugging directives.
9 лет назад
nfnt
5a6676c19e
Add test case for input data with pre-multiplied-alpha.
9 лет назад
jst
618f7ff07a
Add test case for correct pixel coordinates after resize.
10 лет назад
Charlie Vieth
b09281bd36
Update benchmarks to focus on conversion performance.
Benchmark each interpolation function for RGBA and YCbCr images.
Reduce the image size used when benchmarking to reduce the influence of
memory performance on results.
10 лет назад
jst
9485f5475a
Return input image if output dimensions equal input dimensions.
10 лет назад
jst
20c6afea04
Remove unnecessary benchmark
10 лет назад
jst
220cad3343
Add simple test case for input image with non-trivial bounds.
10 лет назад
jst
016a61cd31
Optimize data-locality for a huge increase in processing speed.
This is a complete rewrite! The tight scaling loop needs data locality for optimal performance. The old version used lots of pointer redirections to access image data which was bad for data locality. By providing the complete loop for each image type, this problem is solved. Unfortunately this increases code duplication but the result should be worth it: I could measure a ~6x speed-up for certain test cases!
10 лет назад
jst
446eea2f7b
Remove LUT based filters.
Caching kernel weights makes using the LUT based approach obsolete. Now they seem to be even slower than their counterparts.
11 лет назад
jst
8f586c4f06
Add benchmarks to compare execution times.
Run "go test -bench LargeJpegThumb" to benchmark all functions at once.
11 лет назад
jst
252ccc84a2
Add benchmarks for Lanczos3Lut to compare it with Lanczos3 performance.
11 лет назад
jst
da95f74904
go fmt
12 лет назад
jst
84039c403b
Test for correct canvas size.
12 лет назад
Jason Summers
3d9094eb9e
Center the resized image on the canvas, instead of shifting it slightly
12 лет назад
jst
3e06045c3f
Speed up computation: Try to avoid Image.At() as much as possible -> specialized color access for some image types
12 лет назад
jst
e548f52385
Blur input image during downscaling by scaling the filter kernel to prevent moires in the output image
12 лет назад
jst
d0b2b9bc39
Added MitchellNetravali, changed Lanczos a bit
12 лет назад
jst
3fc31c95cc
Kernel simplified
12 лет назад
jst
339b8fd43a
Speed up calculation by avoiding dynamic casting
12 лет назад
jst
9041d4db18
Function signature changed again, no need for multiple return value
12 лет назад
jst
6b67b636b8
Function signature changed again, no need for multiple return value
12 лет назад
jst
14d51db8b4
Changed function signature to include error handling. Filters simplified.
12 лет назад
nfnt
fdc4a64918
Tests added
12 лет назад
nfnt
428642c9f1
initial commit
12 лет назад