Fixing frontend's selector codebook generator so it guarantees that all-flag selector clusters will be present in the output codebook.

Adding debug visualization flags to transoder
Hooking up debug visualization to WebGL demo
This commit is contained in:
richgel999
2019-05-20 10:48:20 -07:00
parent a33b5144d5
commit 481de7da7d
11 changed files with 221 additions and 39 deletions

View File

@@ -18,7 +18,7 @@
#define BASISU_USE_STB_IMAGE_RESIZE_FOR_MIPMAP_GEN 0
#define DEBUG_CROP_TEXTURE_TO_64x64 (0)
#define DEBUG_RESIZE_TEXTURE (0)
#define DEBUG_RESIZE_TEXTURE (1)
#define DEBUG_EXTRACT_SINGLE_BLOCK (0)
namespace basisu
@@ -319,7 +319,7 @@ namespace basisu
#endif
#if DEBUG_RESIZE_TEXTURE
image temp_img((file_image.get_width() + 3) / 4, (file_image.get_height() + 3) / 4);
image temp_img((file_image.get_width() + 1) / 2, (file_image.get_height() + 1) / 2);
image_resample(file_image, temp_img, m_params.m_perceptual, "kaiser");
temp_img.swap(file_image);
#endif