in-progress refactoring
This commit is contained in:
parent
034674c142
commit
2549d8156e
@ -187,7 +187,7 @@ void convert_image(const F* input, T* output, int length)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void test_format(const char* file, float width_percent, float height_percent, stbir_type type, stbir_colorspace colorspace)
|
void test_format(const char* file, float width_percent, float height_percent, stbir_datatype type, stbir_colorspace colorspace)
|
||||||
{
|
{
|
||||||
int w, h, n;
|
int w, h, n;
|
||||||
unsigned char* input_data = stbi_load(file, &w, &h, &n, 0);
|
unsigned char* input_data = stbi_load(file, &w, &h, &n, 0);
|
||||||
@ -228,7 +228,7 @@ void convert_image_float(const float* input, unsigned char* output, int length)
|
|||||||
output[i] = (unsigned char)(input[i] * 255);
|
output[i] = (unsigned char)(input[i] * 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_float(const char* file, float width_percent, float height_percent, stbir_type type, stbir_colorspace colorspace)
|
void test_float(const char* file, float width_percent, float height_percent, stbir_datatype type, stbir_colorspace colorspace)
|
||||||
{
|
{
|
||||||
int w, h, n;
|
int w, h, n;
|
||||||
unsigned char* input_data = stbi_load(file, &w, &h, &n, 0);
|
unsigned char* input_data = stbi_load(file, &w, &h, &n, 0);
|
||||||
|
@ -106,10 +106,18 @@ SOURCE=..\stb_dxt.h
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\stb_herringbone_wang_tile.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\stb_image.h
|
SOURCE=..\stb_image.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\stb_image_resize.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\stb_image_write.h
|
SOURCE=..\stb_image_write.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
Loading…
Reference in New Issue
Block a user