Skip to content

feat: Implement stb resize2#12

Merged
gudoshnikovn merged 2 commits into
mainfrom
implement-stb_resize2
Apr 19, 2026
Merged

feat: Implement stb resize2#12
gudoshnikovn merged 2 commits into
mainfrom
implement-stb_resize2

Conversation

@gudoshnikovn

Copy link
Copy Markdown
Owner
  • Add stb_image_resize2
  • Remove resize bilinear
  • Remove resize mipmap
  • Implement and use lanczos

- Remove resize bilinear
- Remove resize mipmap
- Implement and use lanczos
- Add stb_image_resize2
@gudoshnikovn gudoshnikovn self-assigned this Apr 19, 2026
@github-actions

Copy link
Copy Markdown

Performance Benchmark


--- Loading Performance (/home/runner/work/libphash/libphash/tests/data/photo.jpeg, 50 iterations) ---
Mode: Grayscale (Fast)
Total time: 0.0373s, Avg: 0.7464ms/load

--- Loading Performance (/home/runner/work/libphash/libphash/tests/data/photo.jpeg, 50 iterations) ---
Mode: RGB (Full)
Total time: 0.0537s, Avg: 1.0749ms/load

--- Hashing Performance (50 iterations) ---
Algorithm       | Total Time   | Avg (ms/op) 
----------------|--------------|--------------
aHash           |     0.0041s |     0.0816ms
dHash           |     0.0046s |     0.0915ms
pHash           |     0.0020s |     0.0407ms
wHash (Fast)    |     0.0017s |     0.0335ms
wHash (Full)    |     0.0234s |     0.4675ms
mHash           |     0.0017s |     0.0342ms
ColorHash       |     0.0560s |     1.1193ms
Radial          |     0.0017s |     0.3314ms (1/10 iter)

@gudoshnikovn gudoshnikovn merged commit dcfe642 into main Apr 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant