mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-22 11:18:15 +00:00
Updated stb external libraries
This commit is contained in:
8
src/external/stb_image_resize.h
vendored
8
src/external/stb_image_resize.h
vendored
@@ -1,4 +1,4 @@
|
||||
/* stb_image_resize - v0.91 - public domain image resizing
|
||||
/* stb_image_resize - v0.92 - public domain image resizing
|
||||
by Jorge L Rodriguez (@VinoBS) - 2014
|
||||
http://github.com/nothings/stb
|
||||
|
||||
@@ -154,8 +154,10 @@
|
||||
|
||||
ADDITIONAL CONTRIBUTORS
|
||||
Sean Barrett: API design, optimizations
|
||||
Aras Pranckevicius: bugfix
|
||||
|
||||
REVISIONS
|
||||
0.92 (2017-01-02) fix integer overflow on large (>2GB) images
|
||||
0.91 (2016-04-02) fix warnings; fix handling of subpixel regions
|
||||
0.90 (2014-09-17) first released version
|
||||
|
||||
@@ -1239,11 +1241,11 @@ static void stbir__decode_scanline(stbir__info* stbir_info, int n)
|
||||
int type = stbir_info->type;
|
||||
int colorspace = stbir_info->colorspace;
|
||||
int input_w = stbir_info->input_w;
|
||||
int input_stride_bytes = stbir_info->input_stride_bytes;
|
||||
size_t input_stride_bytes = stbir_info->input_stride_bytes;
|
||||
float* decode_buffer = stbir__get_decode_buffer(stbir_info);
|
||||
stbir_edge edge_horizontal = stbir_info->edge_horizontal;
|
||||
stbir_edge edge_vertical = stbir_info->edge_vertical;
|
||||
int in_buffer_row_offset = stbir__edge_wrap(edge_vertical, n, stbir_info->input_h) * input_stride_bytes;
|
||||
size_t in_buffer_row_offset = stbir__edge_wrap(edge_vertical, n, stbir_info->input_h) * input_stride_bytes;
|
||||
const void* input_data = (char *) stbir_info->input_data + in_buffer_row_offset;
|
||||
int max_x = input_w + stbir_info->horizontal_filter_pixel_margin;
|
||||
int decode = STBIR__DECODE(type, colorspace);
|
||||
|
Reference in New Issue
Block a user