@@ -512,6 +512,7 @@ compressionWorkloadRunner(int threadCount, int threadId, void* payload) {
512
512
}
513
513
514
514
/* *
515
+ * @internal
515
516
* @brief Worker thread helper payload for launchThreads.
516
517
*/
517
518
struct LaunchDesc {
@@ -528,6 +529,7 @@ struct LaunchDesc {
528
529
};
529
530
530
531
/* *
532
+ * @internal
531
533
* @brief Helper function to translate thread entry points.
532
534
*
533
535
* Convert a (void*) thread entry to an (int, void*) thread entry, where the
@@ -902,6 +904,7 @@ struct decompression_workload
902
904
};
903
905
904
906
/* *
907
+ * @internal
905
908
* @brief Runner callback function for a decompression worker thread.
906
909
*
907
910
* @param thread_count The number of threads in the worker pool.
@@ -923,19 +926,20 @@ static void decompression_workload_runner(int thread_count, int thread_id, void*
923
926
}
924
927
925
928
/* *
926
- * @brief Decodes the provided ktx2 texture if its astc encoded
929
+ * @ingroup reader
930
+ * @brief Decodes a ktx2 texture object, if it is ASTC encoded.
931
+ *
932
+ * Updates @p This with the decoded image.
927
933
*
928
934
* @param This The texture to decode
929
935
* @param vkformat The decoding format to use
930
936
*/
931
- // will update "This" with the uncompressed copy
932
- KTX_API KTX_error_code KTX_APIENTRY
937
+ KTX_error_code
933
938
ktxTexture2_DecodeAstc (ktxTexture2 *This, ktx_uint32_t vkformat) {
934
939
// Decompress This using astc-decoder
935
940
uint32_t * BDB = This->pDfd + 1 ;
936
941
khr_df_model_e colorModel = (khr_df_model_e)KHR_DFDVAL (BDB, MODEL);
937
- if (colorModel != KHR_DF_MODEL_ASTC && This->supercompressionScheme != KTX_SS_NONE) // No supercompression supported yet
938
- {
942
+ if (colorModel != KHR_DF_MODEL_ASTC) {
939
943
return KTX_INVALID_OPERATION; // Not in valid astc decodable format
940
944
}
941
945
@@ -1008,7 +1012,7 @@ ktxTexture2_DecodeAstc(ktxTexture2 *This, ktx_uint32_t vkformat) {
1008
1012
1009
1013
// if(params->perceptual) flags |= ASTCENC_FLG_USE_PERCEPTUAL;
1010
1014
1011
- uint32_t threadCount{1 }; // Decompression isn't the bottlneck and only used when checking for psnr and ssim
1015
+ uint32_t threadCount{1 }; // Decompression isn't the bottleneck and only used when checking for psnr and ssim
1012
1016
astcenc_config astc_config;
1013
1017
astcenc_context *astc_context;
1014
1018
astcenc_error astc_error = astcenc_config_init (profile,
0 commit comments