Skip to content
Myr

Merge pull request #1851 from jeffrbig2/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

stb_image_resize 2.17 - fix silly format bug in resize easy-to-use apis

authored by Sean Barrett · committed by GitHub · parents 4c56459, cf79a48 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:stb_image_resize2.h+3 added-2 removed
1/* stb_image_resize2 - v2.16 - public domain image resizing1/* stb_image_resize2 - v2.17 - public domain image resizing23 by Jeff Roberts (v2) and Jorge L Rodriguez4 http://github.com/nothings/stb5
322 unmodified lines
328 Aras Pranckevicius: bugfixes329 Nathan Reed: warning fixes for 1.0330331 REVISIONS332 2.17 (2025-10-25) silly format bug in easy-to-use APIs.333 2.16 (2025-10-21) fixed the easy-to-use APIs to allow inverted bitmaps (negative334 strides), fix vertical filter kernel callback, fix threaded335 gather buffer priming (and assert).336 (thanks adipose, TainZerL, and Harrison Green)
7685 unmodified lines
8022 int positive_output_stride_in_bytes;8023 void * start_ptr;8024 void * free_ptr;80258025 scanline_output_in_bytes = output_w * stbir__type_size[ data_type ] * stbir__pixel_channels[ pixel_layout ];8026 scanline_output_in_bytes = output_w * stbir__type_size[ data_type ] * stbir__pixel_channels[ stbir__pixel_layout_convert_public_to_internal[ pixel_layout ] ];8027 if ( scanline_output_in_bytes == 0 )8028 return 0;80298030 // if zero stride, use scanline output
2621 unmodified lines