mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Add stb_image_resize for thumbnail processing
This commit is contained in:
@@ -46,7 +46,7 @@ The following libraries and components are incorporated into RenderDoc, listed h
|
||||
|
||||
* `stb <https://github.com/nothings/stb>`_ - Released to the Public Domain by Sean Barrett.
|
||||
|
||||
Used to read and write various image formats.
|
||||
Used to read, write and resize various image formats.
|
||||
|
||||
* `Source Code Pro <https://github.com/adobe-fonts/source-code-pro>`_ - Copyright 2010, 2012 Adobe Systems Incorporated, distributed under the SIL Open Font License 1.1.
|
||||
|
||||
|
||||
+2578
File diff suppressed because it is too large
Load Diff
Vendored
+8
@@ -4,13 +4,21 @@
|
||||
#define STBI_ASSERT(x)
|
||||
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#define STBIW_ASSERT(x)
|
||||
|
||||
#define STB_IMAGE_RESIZE_IMPLEMENTATION
|
||||
#define STBIR_ASSERT(x)
|
||||
|
||||
#define STB_TRUETYPE_IMPLEMENTATION
|
||||
|
||||
#pragma warning(disable:4996) // function unsafe (fopen vs fopen_s)
|
||||
#pragma warning(disable:4456) // declaration hides previous local declaration
|
||||
#pragma warning(disable:4457) // declaration hides function parameter
|
||||
#pragma warning(disable:4189) // local variable is initialized but not referenced
|
||||
#pragma warning(disable:4244) // <narrowing conversion>, possible loss of data
|
||||
#pragma warning(disable:4702) // unreachable code
|
||||
|
||||
#include "stb_image.h"
|
||||
#include "stb_image_write.h"
|
||||
#include "stb_image_resize.h"
|
||||
#include "stb_truetype.h"
|
||||
|
||||
@@ -134,6 +134,7 @@ set(sources
|
||||
3rdparty/lz4/lz4.h
|
||||
3rdparty/stb/stb_image.h
|
||||
3rdparty/stb/stb_image_write.h
|
||||
3rdparty/stb/stb_image_resize.h
|
||||
3rdparty/stb/stb_impl.c
|
||||
3rdparty/stb/stb_truetype.h
|
||||
3rdparty/tinyexr/tinyexr.cpp
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
<ClInclude Include="3rdparty\lz4\lz4.h" />
|
||||
<ClInclude Include="3rdparty\plthook\plthook.h" />
|
||||
<ClInclude Include="3rdparty\stb\stb_image.h" />
|
||||
<ClInclude Include="3rdparty\stb\stb_image_resize.h" />
|
||||
<ClInclude Include="3rdparty\stb\stb_image_write.h" />
|
||||
<ClInclude Include="3rdparty\stb\stb_truetype.h" />
|
||||
<ClInclude Include="3rdparty\tinyexr\tinyexr.h" />
|
||||
|
||||
@@ -258,6 +258,9 @@
|
||||
<ClInclude Include="3rdparty\plthook\plthook.h">
|
||||
<Filter>3rdparty\plthook</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="3rdparty\stb\stb_image_resize.h">
|
||||
<Filter>3rdparty\stb</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="maths\camera.cpp">
|
||||
|
||||
Reference in New Issue
Block a user