|
FZGPUModules 2.0
GPU-accelerated modular compression pipelines
|
Header: modules/predictors/lorenzo/lorenzo_stage.h
Class: fz::LorenzoStage<T>
Category: Predictor (lossless)
Plain integer Lorenzo predictor. Lossless, size-preserving.
Supports 1-D, 2-D, and 3-D layouts. Typically placed after a QuantizerStage in cuSZp-style pipelines (float → quant → Lorenzo → bitpack), where it operates on the quantization codes rather than raw floating-point data.
| Parameter | Constraint |
|---|---|
T | Signed integer (see available instantiations below) |
Only these types are compiled and linked:
LorenzoStage<int8_t>LorenzoStage<int16_t>LorenzoStage<int32_t>LorenzoStage<int64_t>Using any other type will result in a linker error. Common choice: LorenzoStage<int32_t> (to match quantizer code width).
No stage-specific setters. Spatial dimensions are supplied via Pipeline::setDims() or by calling stage->setDims() directly after addStage().
Single input → single output; element type and size are unchanged.
| Direction | Port | Type |
|---|---|---|
| Input | "output" (default) | T[n] |
| Output | "output" | T[n] |
Connection from a quantizer upstream uses the "codes" port of the quantizer:
Same rule as LorenzoQuantStage: call p.setDims() before addStage(), or call stage->setDims() directly after adding.