Skip to content

Commit

Permalink
Fixed resizing when the destination image has the same dimensions as …
Browse files Browse the repository at this point in the history
…the source image (#9).
  • Loading branch information
Cykooz committed Jul 14, 2022
1 parent 8a159fc commit 6483439
Show file tree
Hide file tree
Showing 75 changed files with 750 additions and 784 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
## [Unreleased] - ReleaseDate

- Fixed resizing when the destination image has the same dimensions
as the source image
([#9](https://github.com/Cykooz/fast_image_resize/issues/9)).

## [0.9.6] - 2022-06-28

- Added support of new type of pixels `PixelType::U16x4`.
Expand Down
101 changes: 62 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions README.md
Expand Up @@ -49,11 +49,11 @@ Pipeline:

| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| image | 19.24 | 82.52 | 152.17 | 207.63 |
| resize | - | 52.19 | 103.40 | 154.15 |
| fir rust | 0.28 | 40.88 | 69.39 | 101.53 |
| fir sse4.1 | 0.28 | 28.21 | 43.03 | 59.46 |
| fir avx2 | 0.28 | 7.33 | 9.47 | 13.59 |
| image | 18.75 | 83.16 | 148.86 | 205.11 |
| resize | - | 52.27 | 103.40 | 154.10 |
| fir rust | 0.28 | 41.93 | 76.81 | 114.10 |
| fir sse4.1 | 0.28 | 27.98 | 43.16 | 58.43 |
| fir avx2 | 0.28 | 7.42 | 9.71 | 13.91 |

### Resize RGBA8 image (U8x4) 4928x3279 => 852x567

Expand All @@ -68,10 +68,10 @@ Pipeline:

| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| resize | - | 61.93 | 122.10 | 182.55 |
| fir rust | 0.18 | 36.57 | 52.28 | 74.14 |
| fir sse4.1 | 0.18 | 13.14 | 17.21 | 22.44 |
| fir avx2 | 0.18 | 9.69 | 11.99 | 16.23 |
| resize | - | 61.37 | 122.00 | 181.84 |
| fir rust | 0.18 | 37.42 | 53.36 | 75.87 |
| fir sse4.1 | 0.18 | 13.33 | 17.40 | 22.71 |
| fir avx2 | 0.18 | 9.69 | 12.09 | 16.35 |

### Resize L8 (luma) image (U8) 4928x3279 => 852x567

Expand All @@ -85,11 +85,11 @@ Pipeline:

| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| image | 15.86 | 47.17 | 74.46 | 102.53 |
| resize | - | 17.30 | 35.92 | 61.52 |
| fir rust | 0.15 | 14.10 | 16.20 | 24.12 |
| fir sse4.1 | 0.15 | 11.93 | 12.13 | 18.20 |
| fir avx2 | 0.15 | 6.30 | 4.71 | 7.62 |
| image | 15.48 | 46.20 | 73.56 | 101.74 |
| resize | - | 17.29 | 35.60 | 61.27 |
| fir rust | 0.16 | 13.79 | 15.31 | 22.76 |
| fir sse4.1 | 0.16 | 12.01 | 12.12 | 18.10 |
| fir avx2 | 0.16 | 6.29 | 4.81 | 7.71 |

## Examples

Expand Down

0 comments on commit 6483439

Please sign in to comment.