Changed comments in .md files on version that supports by GitHub

This commit is contained in:
Kirill Kuzminykh
2023-01-22 00:21:12 +04:00
parent 9df6cde213
commit 64f59565d5
5 changed files with 56 additions and 56 deletions
+6 -6
View File
@@ -60,7 +60,7 @@ Pipeline:
- Source image [nasa-4928x3279.png](https://github.com/Cykooz/fast_image_resize/blob/main/data/nasa-4928x3279.png)
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_rgb start)
<!-- bench_compare_rgb start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| image | 20.66 | 82.74 | 141.56 | 199.96 |
@@ -68,7 +68,7 @@ Pipeline:
| fir rust | 0.28 | 39.57 | 67.00 | 98.50 |
| fir sse4.1 | 0.28 | 9.63 | 14.13 | 19.84 |
| fir avx2 | 0.28 | 7.73 | 9.67 | 14.66 |
[//]: # (bench_compare_rgb end)
<!-- bench_compare_rgb end -->
### Resize RGBA8 image (U8x4) 4928x3279 => 852x567
@@ -81,14 +81,14 @@ Pipeline:
- Numbers in table is mean duration of image resizing in milliseconds.
- The `image` crate does not support multiplying and dividing by alpha channel.
[//]: # (bench_compare_rgba start)
<!-- bench_compare_rgba start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| resize | - | 65.74 | 130.18 | 194.13 |
| fir rust | 0.19 | 35.61 | 52.50 | 75.76 |
| fir sse4.1 | 0.19 | 13.19 | 17.25 | 22.62 |
| fir avx2 | 0.19 | 9.57 | 11.97 | 16.37 |
[//]: # (bench_compare_rgba end)
<!-- bench_compare_rgba end -->
### Resize L8 image (U8) 4928x3279 => 852x567
@@ -100,7 +100,7 @@ Pipeline:
has converted into grayscale image with one byte per pixel.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_l start)
<!-- bench_compare_l start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| image | 16.97 | 48.47 | 77.55 | 107.48 |
@@ -108,7 +108,7 @@ Pipeline:
| fir rust | 0.15 | 13.44 | 14.73 | 22.58 |
| fir sse4.1 | 0.15 | 4.99 | 5.28 | 8.05 |
| fir avx2 | 0.15 | 7.09 | 5.18 | 8.60 |
[//]: # (bench_compare_l end)
<!-- bench_compare_l end -->
## Examples
+2 -2
View File
@@ -211,7 +211,7 @@ fn table_header_underline(buffer: &mut Vec<String>, widths: &[usize]) {
fn insert_string_into_file(path: &Path, placeholder_name: &str, string: &str) {
let mut content = std::fs::read_to_string(path).expect("Unable to read file into string");
let start_maker = format!("[//]: # ({} start)\n", placeholder_name);
let start_maker = format!("<!-- {} start -->\n", placeholder_name);
let start = match content.find(&start_maker) {
Some(s) => s,
None => {
@@ -222,7 +222,7 @@ fn insert_string_into_file(path: &Path, placeholder_name: &str, string: &str) {
return;
}
};
let end_maker = format!("[//]: # ({} end)", placeholder_name);
let end_maker = format!("<!-- {} end -->", placeholder_name);
let end = match content.find(&end_maker) {
Some(s) => s,
None => {
+16 -16
View File
@@ -29,14 +29,14 @@ Pipeline:
- Source image [nasa-4928x3279.png](https://github.com/Cykooz/fast_image_resize/blob/main/data/nasa-4928x3279.png)
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_rgb start)
<!-- bench_compare_rgb start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| image | 77.82 | 166.34 | 318.31 | 447.70 |
| resize | - | 89.95 | 179.26 | 265.28 |
| fir rust | 0.84 | 71.85 | 87.39 | 112.75 |
| fir neon | - | 42.56 | 57.11 | 81.74 |
[//]: # (bench_compare_rgb end)
<!-- bench_compare_rgb end -->
### Resize RGBA8 image (U8x4) 4928x3279 => 852x567
@@ -49,13 +49,13 @@ Pipeline:
- Numbers in table is mean duration of image resizing in milliseconds.
- The `image` crate does not support multiplying and dividing by alpha channel.
[//]: # (bench_compare_rgba start)
<!-- bench_compare_rgba start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| resize | - | 112.97 | 194.88 | 290.31 |
| fir rust | 0.90 | 94.03 | 108.22 | 155.51 |
| fir neon | - | 44.78 | 61.97 | 83.75 |
[//]: # (bench_compare_rgba end)
<!-- bench_compare_rgba end -->
### Resize L8 image (U8) 4928x3279 => 852x567
@@ -67,14 +67,14 @@ Pipeline:
has converted into grayscale image with one byte per pixel.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_l start)
<!-- bench_compare_l start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| image | 73.09 | 101.52 | 172.02 | 240.76 |
| resize | - | 37.00 | 83.10 | 127.36 |
| fir rust | 0.50 | 29.73 | 37.61 | 45.57 |
| fir neon | - | 15.05 | 19.87 | 28.16 |
[//]: # (bench_compare_l end)
<!-- bench_compare_l end -->
### Resize LA8 image (U8x2) 4928x3279 => 852x567
@@ -89,12 +89,12 @@ Pipeline:
- The `image` crate does not support multiplying and dividing by alpha channel.
- The `resize` crate does not support this pixel format.
[//]: # (bench_compare_la start)
<!-- bench_compare_la start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| fir rust | 0.66 | 60.16 | 75.12 | 72.12 |
| fir neon | - | 34.04 | 38.78 | 54.64 |
[//]: # (bench_compare_la end)
<!-- bench_compare_la end -->
### Resize RGB16 image (U16x3) 4928x3279 => 852x567
@@ -106,14 +106,14 @@ Pipeline:
has converted into RGB16 image.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_rgb16 start)
<!-- bench_compare_rgb16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| image | 81.46 | 160.19 | 321.65 | 467.87 |
| resize | - | 89.82 | 178.05 | 265.63 |
| fir rust | 1.34 | 147.53 | 275.24 | 393.69 |
| fir neon | - | 74.69 | 93.43 | 128.71 |
[//]: # (bench_compare_rgb16 end)
<!-- bench_compare_rgb16 end -->
### Resize RGBA16 image (U16x4) 4928x3279 => 852x567
@@ -126,13 +126,13 @@ Pipeline:
- Numbers in table is mean duration of image resizing in milliseconds.
- The `image` crate does not support multiplying and dividing by alpha channel.
[//]: # (bench_compare_rgba16 start)
<!-- bench_compare_rgba16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| resize | - | 117.12 | 199.91 | 299.59 |
| fir rust | 1.47 | 202.72 | 366.54 | 521.53 |
| fir neon | - | 77.87 | 117.41 | 159.86 |
[//]: # (bench_compare_rgba16 end)
<!-- bench_compare_rgba16 end -->
### Resize L16 image (U16) 4928x3279 => 852x567
@@ -144,14 +144,14 @@ Pipeline:
has converted into grayscale image with two bytes per pixel.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_l16 start)
<!-- bench_compare_l16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| image | 72.40 | 108.05 | 185.31 | 257.56 |
| resize | - | 40.61 | 63.90 | 86.94 |
| fir rust | 0.60 | 57.44 | 95.16 | 135.22 |
| fir neon | - | 17.43 | 26.64 | 37.89 |
[//]: # (bench_compare_l16 end)
<!-- bench_compare_l16 end -->
### Resize LA16 (luma with alpha channel) image (U16x2) 4928x3279 => 852x567
@@ -166,9 +166,9 @@ Pipeline:
- The `image` crate does not support multiplying and dividing by alpha channel.
- The `resize` crate does not support this pixel format.
[//]: # (bench_compare_la16 start)
<!-- bench_compare_la16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| fir rust | 0.93 | 106.84 | 192.33 | 271.30 |
| fir neon | - | 35.80 | 53.86 | 73.44 |
[//]: # (bench_compare_la16 end)
<!-- bench_compare_la16 end -->
+16 -16
View File
@@ -31,13 +31,13 @@ Pipeline:
- Source image [nasa-4928x3279.png](https://github.com/Cykooz/fast_image_resize/blob/main/data/nasa-4928x3279.png)
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_rgb start)
<!-- bench_compare_rgb start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| image | 25.52 | 146.82 | 268.35 | 391.29 |
| resize | - | 84.92 | 166.80 | 247.48 |
| fir rust | 0.37 | 50.56 | 88.08 | 126.30 |
[//]: # (bench_compare_rgb end)
<!-- bench_compare_rgb end -->
### Resize RGBA8 image (U8x4) 4928x3279 => 852x567
@@ -50,12 +50,12 @@ Pipeline:
- Numbers in table is mean duration of image resizing in milliseconds.
- The `image` crate does not support multiplying and dividing by alpha channel.
[//]: # (bench_compare_rgba start)
<!-- bench_compare_rgba start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| resize | - | 109.02 | 216.79 | 325.27 |
| fir rust | 0.25 | 112.21 | 174.85 | 239.34 |
[//]: # (bench_compare_rgba end)
<!-- bench_compare_rgba end -->
### Resize L8 image (U8) 4928x3279 => 852x567
@@ -67,13 +67,13 @@ Pipeline:
has converted into grayscale image with one byte per pixel.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_l start)
<!-- bench_compare_l start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| image | 20.67 | 113.49 | 204.72 | 296.08 |
| resize | - | 30.10 | 60.87 | 90.92 |
| fir rust | 0.21 | 24.54 | 40.10 | 57.36 |
[//]: # (bench_compare_l end)
<!-- bench_compare_l end -->
### Resize LA8 image (U8x2) 4928x3279 => 852x567
@@ -88,11 +88,11 @@ Pipeline:
- The `image` crate does not support multiplying and dividing by alpha channel.
- The `resize` crate does not support this pixel format.
[//]: # (bench_compare_la start)
<!-- bench_compare_la start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| fir rust | 0.24 | 58.38 | 87.21 | 116.68 |
[//]: # (bench_compare_la end)
<!-- bench_compare_la end -->
### Resize RGB16 image (U16x3) 4928x3279 => 852x567
@@ -104,13 +104,13 @@ Pipeline:
has converted into RGB16 image.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_rgb16 start)
<!-- bench_compare_rgb16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| image | 25.65 | 155.69 | 284.54 | 413.21 |
| resize | - | 88.44 | 172.07 | 258.84 |
| fir rust | 0.40 | 57.66 | 97.19 | 138.74 |
[//]: # (bench_compare_rgb16 end)
<!-- bench_compare_rgb16 end -->
### Resize RGBA16 image (U16x4) 4928x3279 => 852x567
@@ -123,12 +123,12 @@ Pipeline:
- Numbers in table is mean duration of image resizing in milliseconds.
- The `image` crate does not support multiplying and dividing by alpha channel.
[//]: # (bench_compare_rgba16 start)
<!-- bench_compare_rgba16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| resize | - | 111.25 | 219.73 | 328.47 |
| fir rust | 0.42 | 112.28 | 169.04 | 228.52 |
[//]: # (bench_compare_rgba16 end)
<!-- bench_compare_rgba16 end -->
### Resize L16 image (U16) 4928x3279 => 852x567
@@ -140,13 +140,13 @@ Pipeline:
has converted into grayscale image with two bytes per pixel.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_l16 start)
<!-- bench_compare_l16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| image | 22.20 | 129.91 | 236.08 | 342.27 |
| resize | - | 30.63 | 60.99 | 91.22 |
| fir rust | 0.25 | 27.74 | 43.73 | 61.72 |
[//]: # (bench_compare_l16 end)
<!-- bench_compare_l16 end -->
### Resize LA16 (luma with alpha channel) image (U16x2) 4928x3279 => 852x567
@@ -161,8 +161,8 @@ Pipeline:
- The `image` crate does not support multiplying and dividing by alpha channel.
- The `resize` crate does not support this pixel format.
[//]: # (bench_compare_la16 start)
<!-- bench_compare_la16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|----------|:-------:|:--------:|:----------:|:--------:|
| fir rust | 0.25 | 59.93 | 95.26 | 131.62 |
[//]: # (bench_compare_la16 end)
<!-- bench_compare_la16 end -->
+16 -16
View File
@@ -30,7 +30,7 @@ Pipeline:
- Source image [nasa-4928x3279.png](https://github.com/Cykooz/fast_image_resize/blob/main/data/nasa-4928x3279.png)
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_rgb start)
<!-- bench_compare_rgb start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| image | 18.74 | 80.85 | 138.40 | 196.43 |
@@ -38,7 +38,7 @@ Pipeline:
| fir rust | 0.28 | 38.90 | 78.31 | 111.49 |
| fir sse4.1 | - | 9.92 | 14.35 | 20.07 |
| fir avx2 | - | 7.82 | 9.90 | 14.48 |
[//]: # (bench_compare_rgb end)
<!-- bench_compare_rgb end -->
### Resize RGBA8 image (U8x4) 4928x3279 => 852x567
@@ -51,14 +51,14 @@ Pipeline:
- Numbers in table is mean duration of image resizing in milliseconds.
- The `image` crate does not support multiplying and dividing by alpha channel.
[//]: # (bench_compare_rgba start)
<!-- bench_compare_rgba start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| resize | - | 73.08 | 137.79 | 201.39 |
| fir rust | 0.19 | 34.74 | 47.92 | 68.65 |
| fir sse4.1 | - | 13.03 | 17.35 | 22.69 |
| fir avx2 | - | 9.43 | 11.88 | 16.38 |
[//]: # (bench_compare_rgba end)
<!-- bench_compare_rgba end -->
### Resize L8 image (U8) 4928x3279 => 852x567
@@ -70,7 +70,7 @@ Pipeline:
has converted into grayscale image with one byte per pixel.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_l start)
<!-- bench_compare_l start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| image | 16.07 | 47.59 | 74.81 | 102.84 |
@@ -78,7 +78,7 @@ Pipeline:
| fir rust | 0.15 | 13.59 | 15.52 | 23.87 |
| fir sse4.1 | - | 5.00 | 5.31 | 8.07 |
| fir avx2 | - | 7.11 | 5.19 | 8.58 |
[//]: # (bench_compare_l end)
<!-- bench_compare_l end -->
### Resize LA8 image (U8x2) 4928x3279 => 852x567
@@ -93,13 +93,13 @@ Pipeline:
- The `image` crate does not support multiplying and dividing by alpha channel.
- The `resize` crate does not support this pixel format.
[//]: # (bench_compare_la start)
<!-- bench_compare_la start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| fir rust | 0.17 | 24.66 | 28.86 | 39.83 |
| fir sse4.1 | - | 12.72 | 14.20 | 17.78 |
| fir avx2 | - | 8.74 | 9.76 | 12.42 |
[//]: # (bench_compare_la end)
<!-- bench_compare_la end -->
### Resize RGB16 image (U16x3) 4928x3279 => 852x567
@@ -111,7 +111,7 @@ Pipeline:
has converted into RGB16 image.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_rgb16 start)
<!-- bench_compare_rgb16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| image | 18.97 | 74.21 | 138.04 | 186.05 |
@@ -119,7 +119,7 @@ Pipeline:
| fir rust | 0.33 | 42.44 | 71.39 | 99.56 |
| fir sse4.1 | - | 24.64 | 39.98 | 56.36 |
| fir avx2 | - | 20.22 | 30.88 | 37.19 |
[//]: # (bench_compare_rgb16 end)
<!-- bench_compare_rgb16 end -->
### Resize RGBA16 image (U16x4) 4928x3279 => 852x567
@@ -132,14 +132,14 @@ Pipeline:
- Numbers in table is mean duration of image resizing in milliseconds.
- The `image` crate does not support multiplying and dividing by alpha channel.
[//]: # (bench_compare_rgba16 start)
<!-- bench_compare_rgba16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| resize | - | 71.04 | 133.27 | 194.32 |
| fir rust | 0.36 | 80.55 | 118.26 | 158.83 |
| fir sse4.1 | - | 43.41 | 65.24 | 87.44 |
| fir avx2 | - | 25.79 | 36.47 | 47.91 |
[//]: # (bench_compare_rgba16 end)
<!-- bench_compare_rgba16 end -->
### Resize L16 image (U16) 4928x3279 => 852x567
@@ -151,7 +151,7 @@ Pipeline:
has converted into grayscale image with two bytes per pixel.
- Numbers in table is mean duration of image resizing in milliseconds.
[//]: # (bench_compare_l16 start)
<!-- bench_compare_l16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| image | 15.89 | 47.75 | 75.79 | 104.00 |
@@ -159,7 +159,7 @@ Pipeline:
| fir rust | 0.17 | 18.66 | 27.70 | 38.69 |
| fir sse4.1 | - | 8.14 | 13.64 | 19.35 |
| fir avx2 | - | 6.65 | 8.84 | 13.98 |
[//]: # (bench_compare_l16 end)
<!-- bench_compare_l16 end -->
### Resize LA16 (luma with alpha channel) image (U16x2) 4928x3279 => 852x567
@@ -174,10 +174,10 @@ Pipeline:
- The `image` crate does not support multiplying and dividing by alpha channel.
- The `resize` crate does not support this pixel format.
[//]: # (bench_compare_la16 start)
<!-- bench_compare_la16 start -->
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|------------|:-------:|:--------:|:----------:|:--------:|
| fir rust | 0.19 | 33.55 | 52.91 | 72.29 |
| fir sse4.1 | - | 21.98 | 34.08 | 46.66 |
| fir avx2 | - | 15.28 | 21.92 | 29.29 |
[//]: # (bench_compare_la16 end)
<!-- bench_compare_la16 end -->