MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / SetParameter

Method SetParameter

cmp_compressonatorlib/block/codec_block_4x4.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool CCodec_Block_4x4::SetParameter(const CMP_CHAR* pszParamName, CMP_CHAR* sValue)
61{
62 if (strcmp(pszParamName, "UseSSE2") == 0)
63 m_bUseSSE2 = (std::stoi(sValue) > 0) ? SupportsSSE2() : false;
64 else if (strcmp(pszParamName, "UseSSE") == 0)
65 m_bUseSSE2 = (std::stoi(sValue) > 0) ? SupportsSSE() : false;
66 else
67 return CCodec_Block::SetParameter(pszParamName, sValue);
68 return true;
69}
70
71bool CCodec_Block_4x4::SetParameter(const CMP_CHAR* pszParamName, CMP_DWORD dwValue)
72{

Callers

nothing calls this directly

Calls 2

SupportsSSE2Function · 0.85
SupportsSSEFunction · 0.85

Tested by

no test coverage detected