Skip to content

Commit a83dbff

Browse files
authored
Merge pull request #2095 from Kobzol/benchmark-update-2025-image-0.25.6
Update image to 0.25.6
2 parents f1b7135 + 05c22fe commit a83dbff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+33052
-0
lines changed

collector/compile-benchmarks/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ They mostly consist of real-world crates.
3636
- **image-0.24.1**: Basic image processing functions and methods for
3737
converting to and from various image formats. Used often in graphics
3838
programming.
39+
- **image-0.25.6**: Basic image processing functions and methods for
40+
converting to and from various image formats. Used often in graphics
41+
programming.
3942
- **libc-0.2.124**: An interface to `libc`. Contains many declarations of
4043
types, constants, and functions, but relatively little normal code. Stresses
4144
the parser. A very widely-used crate.

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ path = "image-0.24.1/**"
135135
SPDX-FileCopyrightText = "The image-rs Developers"
136136
SPDX-License-Identifier = "MIT"
137137

138+
[[annotations]]
139+
path = "image-0.25.6/**"
140+
SPDX-FileCopyrightText = "The image-rs Developers"
141+
SPDX-License-Identifier = "MIT"
142+
138143
[[annotations]]
139144
path = "inflate/**"
140145
SPDX-FileCopyrightText = "inflate contributors"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "f337e27aadaae8b86484429bc6020fef8a019c95"
4+
},
5+
"path_in_vcs": ""
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/dynimage.rs b/src/dynimage.rs
2+
index 32da8c70..10e46ec2 100644
3+
--- a/src/dynimage.rs
4+
+++ b/src/dynimage.rs
5+
@@ -1348,6 +1348,7 @@ pub fn load_from_memory(buffer: &[u8]) -> ImageResult<DynamicImage> {
6+
/// [`load`]: fn.load.html
7+
#[inline(always)]
8+
pub fn load_from_memory_with_format(buf: &[u8], format: ImageFormat) -> ImageResult<DynamicImage> {
9+
+ println!("testing");
10+
let b = io::Cursor::new(buf);
11+
free_functions::load(b, format)
12+
}

0 commit comments

Comments
 (0)