downgrade stb image resize

This commit is contained in:
Concedo
2024-06-02 18:02:22 +08:00
parent 267ee78651
commit 9c7340bfac
3 changed files with 2587 additions and 10367 deletions
+2 -2
View File
@@ -31,7 +31,7 @@
#include "stb_image_write.h"
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "stb_image_resize2.h"
#include "stb_image_resize.h"
const char* rng_type_to_str[] = {
"std_default",
@@ -420,7 +420,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
}
// Resize the image
unsigned char * resok = stbir_resize_uint8_linear(input_image_buffer, nx, ny, 0, resized_image_buf.data(), img2imgW, img2imgH, 0, (stbir_pixel_layout)img2imgC);
int resok = stbir_resize_uint8(input_image_buffer, nx, ny, 0, resized_image_buf.data(), img2imgW, img2imgH, 0, img2imgC);
if (!resok) {
printf("\nKCPP SD: resize image failed!\n");
output.data = "";
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff