diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-11-14 10:54:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-14 10:54:26 +0000 |
| commit | bd21b2cf49cc27515df911bc57397f8833035c73 (patch) | |
| tree | 8fc4a344624ec4ae3213ce30d751369452b83a6c | |
| parent | 2afe0322aca95c9bfec17e5f589b74ff2aa52930 (diff) | |
| parent | b5700e4c4ca56aeca5b2a7e67679d0d2e3335a98 (diff) | |
Merge pull request #5927 from xraxra/fix-stbi-alpha-channel
change STBI resize alpha_channel parameter type to c.int
| -rw-r--r-- | vendor/stb/image/stb_image_resize.odin | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/vendor/stb/image/stb_image_resize.odin b/vendor/stb/image/stb_image_resize.odin index 43909856e..ebdb3cd84 100644 --- a/vendor/stb/image/stb_image_resize.odin +++ b/vendor/stb/image/stb_image_resize.odin @@ -79,13 +79,13 @@ edge :: enum c.int { foreign lib { resize_uint8_srgb :: proc(input_pixels: [^]u8, input_w, input_h, input_stride_in_bytes: c.int, output_pixels: [^]u8, output_w, output_h, output_stride_in_bytes: c.int, - num_channels: c.int, alpha_channel: b32, flags: c.int) -> c.int --- + num_channels: c.int, alpha_channel: c.int, flags: c.int) -> c.int --- // This function adds the ability to specify how requests to sample off the edge of the image are handled. resize_uint8_srgb_edgemode :: proc(input_pixels: [^]u8, input_w, input_h, input_stride_in_bytes: c.int, output_pixels: [^]u8, output_w, output_h, output_stride_in_bytes: c.int, - num_channels: c.int, alpha_channel: b32, flags: c.int, + num_channels: c.int, alpha_channel: c.int, flags: c.int, edge_wrap_mode: edge) -> c.int --- } @@ -126,25 +126,25 @@ colorspace :: enum c.int { @(default_calling_convention="c", link_prefix="stbir_") foreign lib { // The following functions are all identical except for the type of the image data - + resize_uint8_generic :: proc(input_pixels: [^]u8, input_w, input_h, input_stride_in_bytes: c.int, output_pixels: [^]u8, output_w, output_h, output_stride_in_bytes: c.int, - num_channels: c.int, alpha_channel: b32, flags: c.int, + num_channels: c.int, alpha_channel: c.int, flags: c.int, edge_wrap_mode: edge, filter: filter, space: colorspace, alloc_context: rawptr) -> c.int --- resize_uint16_generic :: proc(input_pixels: [^]u16, input_w, input_h, input_stride_in_bytes: c.int, output_pixels: [^]u16, output_w, output_h, output_stride_in_bytes: c.int, - num_channels: c.int, alpha_channel: b32, flags: c.int, + num_channels: c.int, alpha_channel: c.int, flags: c.int, edge_wrap_mode: edge, filter: filter, space: colorspace, alloc_context: rawptr) -> c.int --- resize_float_generic :: proc(input_pixels: [^]f32, input_w, input_h, input_stride_in_bytes: c.int, output_pixels: [^]f32, output_w, output_h, output_stride_in_bytes: c.int, - num_channels: c.int, alpha_channel: b32, flags: c.int, + num_channels: c.int, alpha_channel: c.int, flags: c.int, edge_wrap_mode: edge, filter: filter, space: colorspace, - alloc_context: rawptr) -> c.int --- - + alloc_context: rawptr) -> c.int --- + } ////////////////////////////////////////////////////////////////////////////// @@ -173,11 +173,11 @@ datatype :: enum c.int { @(default_calling_convention="c", link_prefix="stbir_") foreign lib { // (s0, t0) & (s1, t1) are the top-left and bottom right corner (uv addressing style: [0, 1]x[0, 1]) of a region of the input image to use. - + resize :: proc(input_pixels: rawptr, input_w, input_h, input_stride_in_bytes: c.int, output_pixels: rawptr, output_w, output_h, output_stride_in_bytes: c.int, datatype: datatype, - num_channels: c.int, alpha_channel: b32, flags: c.int, + num_channels: c.int, alpha_channel: c.int, flags: c.int, edge_mode_horizontal, edge_mode_vertical: edge, filter_horizontal, filter_vertical: filter, space: colorspace, alloc_context: rawptr) -> c.int --- @@ -185,7 +185,7 @@ foreign lib { resize_subpixel :: proc(input_pixels: rawptr, input_w, input_h, input_stride_in_bytes: c.int, output_pixels: rawptr, output_w, output_h, output_stride_in_bytes: c.int, datatype: datatype, - num_channels: c.int, alpha_channel: b32, flags: c.int, + num_channels: c.int, alpha_channel: c.int, flags: c.int, edge_mode_horizontal, edge_mode_vertical: edge, filter_horizontal, filter_vertical: filter, space: colorspace, alloc_context: rawptr, @@ -195,10 +195,10 @@ foreign lib { resize_region :: proc(input_pixels: rawptr, input_w, input_h, input_stride_in_bytes: c.int, output_pixels: rawptr, output_w, output_h, output_stride_in_bytes: c.int, datatype: datatype, - num_channels: c.int, alpha_channel: b32, flags: c.int, + num_channels: c.int, alpha_channel: c.int, flags: c.int, edge_mode_horizontal, edge_mode_vertical: edge, filter_horizontal, filter_vertical: filter, space: colorspace, alloc_context: rawptr, s0, t0, s1, t1: f32) -> c.int --- - + } |