Add stb_image_resize for thumbnail processing

This commit is contained in:
baldurk
2016-11-02 23:37:38 +01:00
parent 887e4d22e9
commit 57d8cfa89a
6 changed files with 2592 additions and 1 deletions
+1 -1
View File
@@ -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.
File diff suppressed because it is too large Load Diff
+8
View File
@@ -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"
+1
View File
@@ -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
+1
View File
@@ -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" />
+3
View File
@@ -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">