Go to the documentation of this file.
10 #ifndef vtk_m_worklet_zfp_compressor_h
11 #define vtk_m_worklet_zfp_compressor_h
37 template <
typename Scalar,
typename Storage>
55 if (paddedDims[0] % 4 != 0)
56 paddedDims[0] += 4 - dims[0] % 4;
57 if (paddedDims[1] % 4 != 0)
58 paddedDims[1] += 4 - dims[1] % 4;
59 if (paddedDims[2] % 4 != 0)
60 paddedDims[2] += 4 - dims[2] % 4;
63 (paddedDims[0] / four) * (paddedDims[1] / (four) * (paddedDims[2] / four));
66 size_t outbits = zfp::detail::CalcMem3d(paddedDims, stream.
minbits);
81 compressDispatcher.Invoke(blockCounter, data, output);
96 #endif // vtk_m_worklet_zfp_compressor_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
Definition: ZFPEncode3.h:88
static VTKM_CONT bool Copy(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, vtkm::cont::ArrayHandle< U, COut > &output)
Definition: Algorithm.h:410
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::cont::ArrayHandle< vtkm::Int64 > Compress(const vtkm::cont::ArrayHandle< Scalar, Storage > &data, const vtkm::Float64 requestedRate, const vtkm::Id3 dims)
Definition: ZFPCompressor.h:38
Definition: ZFPCompressor.h:34
vtkm::UInt32 maxbits
Definition: ZFPStructs.h:31
An array handle with a constant value.
Definition: ArrayHandleConstant.h:63
int32_t Int32
Definition: Types.h:160
double Float64
Definition: Types.h:155
Definition: ZFPStructs.h:28