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

Method stop_decoding

external/basisu/encoder/jpgd.cpp:607–612  ·  view source on GitHub ↗

This method handles all errors. It will never return. It could easily be changed to use C++ exceptions.

Source from the content-addressed store, hash-verified

605 // This method handles all errors. It will never return.
606 // It could easily be changed to use C++ exceptions.
607 JPGD_NORETURN void jpeg_decoder::stop_decoding(jpgd_status status)
608 {
609 m_error_code = status;
610 free_all_blocks();
611 longjmp(m_jmp_state, status);
612 }
613
614 void* jpeg_decoder::alloc(size_t nSize, bool zero)
615 {

Callers 3

decode_block_dc_firstMethod · 0.80
decode_block_ac_firstMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected