See header for documentation. */
| 1229 | |
| 1230 | /* See header for documentation. */ |
| 1231 | astcenc_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. */ |
| 1251 | astcenc_error astcenc_compress_cancel( |
no test coverage detected