mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-30 06:41:41 +00:00
client: Update stb_image_resize
New optimized version: https://raw.githubusercontent.com/nothings/stb/e81f294/stb_image_resize2.h
This commit is contained in:
parent
75d9d7ddfc
commit
a08a8d35e1
4 changed files with 10307 additions and 2638 deletions
|
@ -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
|
||||
|
|
|
@ -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
10303
src/client/refresh/files/stb_image_resize2.h
Normal file
10303
src/client/refresh/files/stb_image_resize2.h
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue