client: Update stb_image_resize

New optimized version:
https://raw.githubusercontent.com/nothings/stb/e81f294/stb_image_resize2.h
This commit is contained in:
Denis Pauk 2023-10-29 11:04:25 +02:00
parent 75d9d7ddfc
commit a08a8d35e1
4 changed files with 10307 additions and 2638 deletions

View file

@ -674,7 +674,7 @@ set(SOFT-Source
set(SOFT-Header
${REF_SRC_DIR}/ref_shared.h
${REF_SRC_DIR}/files/stb_image.h
${REF_SRC_DIR}/files/stb_image_resize.h
${REF_SRC_DIR}/files/stb_image_resize2.h
${REF_SRC_DIR}/soft/header/local.h
${REF_SRC_DIR}/soft/header/model.h
${COMMON_SRC_DIR}/header/shared.h

View file

@ -45,7 +45,7 @@
// include resize implementation
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "stb_image_resize.h"
#include "stb_image_resize2.h"
/*
* Add extension to file name
@ -108,8 +108,8 @@ qboolean
ResizeSTB(const byte *input_pixels, int input_width, int input_height,
byte *output_pixels, int output_width, int output_height)
{
if (stbir_resize_uint8(input_pixels, input_width, input_height, 0,
output_pixels, output_width, output_height, 0, 4))
if (stbir_resize_uint8_linear(input_pixels, input_width, input_height, 0,
output_pixels, output_width, output_height, 0, STBIR_RGBA))
return true;
return false;
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff