MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / astcenc_compress_reset

Function astcenc_compress_reset

Source/astcenc_entry.cpp:1231–1248  ·  view source on GitHub ↗

See header for documentation. */

Source from the content-addressed store, hash-verified

1229
1230/* See header for documentation. */
1231astcenc_error astcenc_compress_reset(
1232 astcenc_context* ctxo
1233) {
1234#if defined(ASTCENC_DECOMPRESS_ONLY)
1235 (void)ctxo;
1236 return ASTCENC_ERR_BAD_CONTEXT;
1237#else
1238 astcenc_contexti* ctx = &ctxo->context;
1239 if (ctx->config.flags & ASTCENC_FLG_DECOMPRESS_ONLY)
1240 {
1241 return ASTCENC_ERR_BAD_CONTEXT;
1242 }
1243
1244 ctxo->manage_avg.reset();
1245 ctxo->manage_compress.reset();
1246 return ASTCENC_SUCCESS;
1247#endif
1248}
1249
1250/* See header for documentation. */
1251astcenc_error astcenc_compress_cancel(

Callers 2

astcenc_mainFunction · 0.85
astcenc_compress_imageFunction · 0.85

Calls 1

resetMethod · 0.80

Tested by

no test coverage detected