Skip to content

Commit

Permalink
Fixed some texts
Browse files Browse the repository at this point in the history
  • Loading branch information
Cykooz committed May 13, 2024
1 parent f87f80e commit ab5eeaf
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 51 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn my_resize(
src_pixels: &[u8],
dst_width: u32,
dst_height: u32,
) -> ImageMut {
) -> Image {
let src_image = ImageRef::new(
src_width,
src_height,
Expand Down
94 changes: 46 additions & 48 deletions Cargo.lock

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

10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Other libraries used to compare of resizing speed:
- libvips (single-threaded mode, cache disabled)

<!-- bench_compare_rgb start -->

### Resize RGB8 image (U8x3) 4928x3279 => 852x567

Pipeline:
Expand All @@ -69,12 +70,14 @@ Pipeline:
| image | 28.28 | - | 82.31 | 134.61 | 186.22 |
| resize | 7.83 | 26.85 | 53.70 | 97.59 | 144.79 |
| libvips | 7.76 | 59.65 | 19.83 | 30.73 | 39.80 |
| fir rust | 0.29 | 12.77 | 17.94 | 27.94 | 40.05 |
| fir rust | 0.28 | 12.77 | 17.94 | 27.94 | 40.05 |
| fir sse4.1 | 0.28 | 3.99 | 5.66 | 9.86 | 15.42 |
| fir avx2 | 0.28 | 3.06 | 3.89 | 6.85 | 13.25 |

<!-- bench_compare_rgb end -->

<!-- bench_compare_rgba start -->

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

Pipeline:
Expand All @@ -91,11 +94,13 @@ Pipeline:
| resize | 11.34 | 42.76 | 85.43 | 147.41 | 211.31 |
| libvips | 8.97 | 120.82 | 190.82 | 341.07 | 500.87 |
| fir rust | 0.19 | 21.79 | 28.34 | 42.24 | 56.72 |
| fir sse4.1 | 0.20 | 10.14 | 12.26 | 18.43 | 24.22 |
| fir sse4.1 | 0.19 | 10.14 | 12.26 | 18.43 | 24.22 |
| fir avx2 | 0.19 | 7.44 | 8.48 | 14.10 | 21.31 |

<!-- bench_compare_rgba end -->

<!-- bench_compare_l start -->

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

Pipeline:
Expand All @@ -114,6 +119,7 @@ Pipeline:
| fir rust | 0.15 | 4.94 | 6.37 | 8.97 | 13.36 |
| fir sse4.1 | 0.15 | 1.66 | 2.10 | 3.28 | 5.57 |
| fir avx2 | 0.15 | 1.76 | 1.96 | 2.37 | 4.41 |

<!-- bench_compare_l end -->

## Examples
Expand Down

0 comments on commit ab5eeaf

Please sign in to comment.