MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / get_tex_format

Method get_tex_format

external/basisu/transcoder/basisu_transcoder.cpp:9979–9990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9977 }
9978
9979 basis_tex_format basisu_transcoder::get_tex_format(const void* pData, uint32_t data_size) const
9980 {
9981 if (!validate_header_quick(pData, data_size))
9982 {
9983 BASISU_DEVEL_ERROR("basisu_transcoder::get_total_images: header validation failed\n");
9984 return basis_tex_format::cETC1S;
9985 }
9986
9987 const basis_file_header* pHeader = static_cast<const basis_file_header*>(pData);
9988
9989 return (basis_tex_format)(uint32_t)pHeader->m_tex_format;
9990 }
9991
9992 bool basisu_transcoder::get_image_info(const void* pData, uint32_t data_size, basisu_image_info& image_info, uint32_t image_index) const
9993 {

Callers 2

load_basis_fileFunction · 0.80
isUASTCMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected