Skip to content

Commit

Permalink
Move third-party includes into a subfolder (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel committed Mar 1, 2024
1 parent 56f64c5 commit d7e6284
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions Source/astcenccli_image_external.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ static void astcenc_runtime_assert(bool condition)
}
}

#include "stb_image.h"
#include "stb_image_write.h"
#include "tinyexr.h"
#include "ThirdParty/stb_image.h"
#include "ThirdParty/stb_image_write.h"
#include "ThirdParty/tinyexr.h"

/**
* @brief Load an image using Wuffs to provide the loader.
Expand Down
6 changes: 3 additions & 3 deletions Source/astcenccli_image_load_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@

#include "astcenccli_internal.h"

#include "stb_image.h"
#include "stb_image_write.h"
#include "tinyexr.h"
#include "ThirdParty/stb_image.h"
#include "ThirdParty/stb_image_write.h"
#include "ThirdParty/tinyexr.h"

/**
* @brief Determine the output file name to use for a sliced image write.
Expand Down
4 changes: 2 additions & 2 deletions Utils/Example/astc_api_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#include "astcenc.h"

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "ThirdParty/stb_image.h"

#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include "ThirdParty/stb_image_write.h"

int main(int argc, char **argv)
{
Expand Down
20 changes: 10 additions & 10 deletions Utils/astc_blend_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
#include "astcenc_mathlib.h"

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "ThirdParty/stb_image.h"

#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include "ThirdParty/stb_image_write.h"

/**
* @brief Linearize an sRGB value.
Expand Down Expand Up @@ -165,10 +165,10 @@ int main(int argc, char **argv)
float g_dst = 1.0f;
float b_dst = 0.8f;

float r_out;
float g_out;
float b_out;
float a_out;
float r_out;
float g_out;
float b_out;
float a_out;

// Post-multiply blending
if (use_post_blend)
Expand Down Expand Up @@ -241,10 +241,10 @@ int main(int argc, char **argv)
float g_dst = 1.0f;
float b_dst = 0.8f;

float r_out;
float g_out;
float b_out;
float a_out;
float r_out;
float g_out;
float b_out;
float a_out;

// Post-multiply blending
if (use_post_blend)
Expand Down
4 changes: 2 additions & 2 deletions Utils/astc_rgbm_codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
#include "astcenc_mathlib.h"

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "ThirdParty/stb_image.h"

#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include "ThirdParty/stb_image_write.h"

#define MODE_ENCODE 0
#define MODE_DECODE 1
Expand Down
4 changes: 2 additions & 2 deletions Utils/astc_test_autoextract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
#include <stdlib.h>

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "ThirdParty/stb_image.h"

#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include "ThirdParty/stb_image_write.h"

/**
* @brief Compute the array offset in a 2D image
Expand Down
4 changes: 2 additions & 2 deletions Utils/astc_test_autoextract_hdr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
#include <stdlib.h>

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "ThirdParty/stb_image.h"

#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include "ThirdParty/stb_image_write.h"

/**
* @brief Compute the array offset in a 2D image
Expand Down

0 comments on commit d7e6284

Please sign in to comment.