Skip to content

Commit 5b36efc

Browse files
committed
stbi: disable unused img decoders
saves a little space
1 parent c74f0ad commit 5b36efc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utils/image_delegate.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ static void
5656
gpujpeg_cuda_free_host(void* ptr);
5757
static void*
5858
gpujpeg_cuda_realloc_sized_host(void* ptr, int oldsz, int newsz);
59+
#define STBI_NO_JPEG
60+
#define STBI_NO_PNG
61+
#define STBI_NO_PSD
62+
#define STBI_NO_GIF
63+
#define STBI_NO_HDR
64+
#define STBI_NO_PIC
65+
#define STBI_NO_PNM
5966
// we want use custom allocator but only way to do this in stbi is to define the below
6067
#define STBI_MALLOC gpujpeg_cuda_malloc_host
6168
#define STBI_FREE gpujpeg_cuda_free_host

0 commit comments

Comments
 (0)