FZGPUModules 1.0
GPU-accelerated modular compression pipeline
Loading...
Searching...
No Matches
negabinary_stage.h File Reference

Element-wise negabinary encode/decode stage (TIn[]TOut[]). More...

#include "stage/stage.h"
#include "fzm_format.h"
#include "transforms/negabinary/negabinary.h"
#include <cuda_runtime.h>
#include <cstdint>
#include <cstring>
#include <stdexcept>
#include <type_traits>

Go to the source code of this file.

Classes

class  fz::NegabinaryStage< TIn, TOut >
 

Namespaces

namespace  fz
 

Detailed Description

Element-wise negabinary encode/decode stage (TIn[]TOut[]).

Size-preserving. TIn must be a signed integer; TOut its unsigned counterpart of the same width.

When fusing difference + negabinary, prefer DifferenceStage<T, TOut> which combines both transforms in a single kernel pass.

Serialized header: 2 bytes — [0] TIn DataType, [1] TOut DataType.