Go to the documentation of this file.
10 #ifndef vtk_m_worklet_zfp_2d_decompressor_h
11 #define vtk_m_worklet_zfp_2d_decompressor_h
43 template <
typename Scalar,
typename StorageIn,
typename StorageOut>
62 if (paddedDims[0] % 4 != 0)
63 paddedDims[0] += 4 - dims[0] % 4;
64 if (paddedDims[1] % 4 != 0)
65 paddedDims[1] += 4 - dims[1] % 4;
67 vtkm::Id totalBlocks = (paddedDims[0] / four) * (paddedDims[1] / (four));
70 zfp::detail::CalcMem2d(paddedDims, stream.
minbits);
83 decompressDispatcher.Invoke(blockCounter, output, encodedData);
96 #endif // vtk_m_worklet_zfp_2d_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: ZFPDecode2.h:63
void Decompress(const vtkm::cont::ArrayHandle< vtkm::Int64, StorageIn > &encodedData, vtkm::cont::ArrayHandle< Scalar, StorageOut > &output, const vtkm::Float64 requestedRate, vtkm::Id2 dims)
Definition: ZFP2DDecompress.h:44
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::UInt32 minbits
Definition: ZFPStructs.h:30
Dispatcher for worklets that inherit from WorkletMapField.
Definition: DispatcherMapField.h:25
vtkm::UInt32 maxbits
Definition: ZFPStructs.h:31
Definition: ZFP2DDecompress.h:40
int32_t Int32
Definition: Types.h:160
double Float64
Definition: Types.h:155
Definition: ZFPStructs.h:28