mirror of
https://github.com/nothings/stb
synced 2025-01-06 14:52:00 +03:00
Some minor ports for Linux. No idea how it worked at all in Windows with STB_RESIZE_IMPLEMENTATION instead of STB_RESAMPLE_IMPLEMENTATION.
This commit is contained in:
parent
c5de2f3298
commit
fdc979e48b
@ -2,6 +2,9 @@
|
||||
#define STBR_ASSERT(x) \
|
||||
if (!(x)) \
|
||||
__debugbreak();
|
||||
#else
|
||||
#include <assert.h>
|
||||
#define STBR_ASSERT(x) assert(x)
|
||||
#endif
|
||||
|
||||
#define STB_RESAMPLE_IMPLEMENTATION
|
||||
@ -28,7 +31,7 @@ int main(int argc, char** argv)
|
||||
int n;
|
||||
int out_w, out_h, out_stride;
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
test_suite();
|
||||
return 0;
|
||||
#endif
|
||||
@ -210,7 +213,7 @@ void test_float(const char* file, float width_percent, float height_percent, stb
|
||||
free(output_data);
|
||||
}
|
||||
|
||||
void test_channels(char* file, float width_percent, float height_percent, int channels)
|
||||
void test_channels(const char* file, float width_percent, float height_percent, int channels)
|
||||
{
|
||||
int w, h, n;
|
||||
unsigned char* input_data = stbi_load(file, &w, &h, &n, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user