Go to the documentation of this file.
10 #ifndef vtk_m_worklet_zfp_1d_decompressor_h
11 #define vtk_m_worklet_zfp_1d_decompressor_h
43 template <
typename Scalar,
typename StorageIn,
typename StorageOut>
62 if (paddedDims % 4 != 0)
63 paddedDims += 4 - dims % 4;
65 vtkm::Id totalBlocks = (paddedDims / four);
68 zfp::detail::CalcMem1d(paddedDims, stream.
minbits);
80 decompressDispatcher.Invoke(blockCounter, output, encodedData);
93 #endif // vtk_m_worklet_zfp_1d_decompressor_h
Manages an array-worth of data.
Definition: ArrayHandle.h:283
vtkm::Float64 SetRate(const vtkm::Float64 rate, const vtkm::Int32 dims, T vtkmNotUsed(valueType))
Definition: ZFPStructs.h:36
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_CONT void Allocate(vtkm::Id numberOfValues, vtkm::CopyFlag preserve, vtkm::cont::Token &token) const
Allocates an array large enough to hold the given number of values.
Definition: ArrayHandle.h:465
Definition: ZFP1DDecompress.h:40
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
void Decompress(const vtkm::cont::ArrayHandle< vtkm::Int64, StorageIn > &encodedData, vtkm::cont::ArrayHandle< Scalar, StorageOut > &output, const vtkm::Float64 requestedRate, vtkm::Id dims)
Definition: ZFP1DDecompress.h:44
vtkm::UInt32 minbits
Definition: ZFPStructs.h:30
Definition: ZFPDecode1.h:52
Dispatcher for worklets that inherit from WorkletMapField.
Definition: DispatcherMapField.h:25
vtkm::UInt32 maxbits
Definition: ZFPStructs.h:31
int32_t Int32
Definition: Types.h:160
double Float64
Definition: Types.h:155
Definition: ZFPStructs.h:28