FZGPUModules 2.0
GPU-accelerated modular compression pipelines
Loading...
Searching...
No Matches
stage_factory.h File Reference

Factory function for reconstructing pipeline stages from serialized FZM headers. More...

Go to the source code of this file.

Functions

Stagefz::createStage (StageType type, const uint8_t *config, size_t config_size)
 

Detailed Description

Factory function for reconstructing pipeline stages from serialized FZM headers.

Function Documentation

◆ createStage()

Stage * fz::createStage ( StageType  type,
const uint8_t *  config,
size_t  config_size 
)
inline

Reconstruct a Stage from a serialized FZM header. Used by the decompressor to rebuild the inverse pipeline from the file.

Parameters
typeStage type read from FZMStageInfo.
configSerialized config bytes.
config_sizeNumber of valid bytes in config.
Returns
Heap-allocated Stage; caller takes ownership.