Go to the documentation of this file.
10 #ifndef vtk_m_worklet_zfp_1d_compressor_h
11 #define vtk_m_worklet_zfp_1d_compressor_h
38 template <
typename Scalar,
typename Storage>
56 if (paddedDims % 4 != 0)
57 paddedDims += 4 - dims % 4;
59 const vtkm::Id totalBlocks = (paddedDims / four);
62 size_t outbits = zfp::detail::CalcMem1d(paddedDims, stream.
minbits);
77 compressDispatcher.Invoke(blockCounter, data, output);
92 #endif // vtk_m_worklet_zfp_1d_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
vtkm::cont::ArrayHandle< vtkm::Int64 > Compress(const vtkm::cont::ArrayHandle< Scalar, Storage > &data, const vtkm::Float64 requestedRate, const vtkm::Id dims)
Definition: ZFP1DCompressor.h:39
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
Definition: ZFP1DCompressor.h:35
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
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: ZFPEncode1.h:57
Definition: ZFPStructs.h:28