stb_image_resize2-d ~main
Port of stb_image_resize2.h
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
stbimageresize2-d
A port of stbimageresize2.h in D.
Original: https://github.com/nothings/stb/blob/master/stbimageresize2.h
Resize an image using the "medium-complexity" API
Easiest way to use stb_image_resize2-d
is probably the following function:
void* stbir_resize(const(void)* input_pixels, // input image
int input_w, // input width
int input_h, // input height
int input_stride_in_bytes, // can be negative
void *output_pixels, // output image
int output_w, // output width
int output_h, // output height
int output_stride_in_bytes, // can be negative
stbir_pixel_layout pixel_layout, // Channel count eg. STBIR_RGBA
stbir_datatype data_type, // precision and power curve eg. STBIR_TYPE_UINT8_SRGB
stbir_edge edge, // edge mode eg. STBIR_EDGE_CLAMP
stbir_filter filter); // kernel eg. STBIR_FILTER_DEFAULT
Changes
- There are more resize kernels in the port:
STBIR_FILTER_LANCZOS2
STBIR_FILTER_LANCZOS2_5
STBIR_FILTER_LANCZOS3
STBIR_FILTER_LANCZOS4
STBIR_FILTER_MK_2013
STBIR_FILTER_MKS_2013_86
STBIR_FILTER_MKS_2013
STBIR_FILTER_MKS_2021
- The port use portable intrinsics in
intel-intrinsics
so that the AVX2 path is used for everything.
- Registered by ponce
- ~main released 16 hours ago
- AuburnSounds/stb_image_resize2-d
- public domain
- Dependencies:
- intel-intrinsics
- Versions:
-
1.0.1 2024-Nov-15 1.0.0 2024-Nov-12 ~main 2024-Nov-18 - Download Stats:
-
-
0 downloads today
-
3 downloads this week
-
3 downloads this month
-
3 downloads total
-
- Score:
- 0.1
- Short URL:
- stb_image_resize2-d.dub.pm