Go to the documentation of this file.
   10 #ifndef vtk_m_worklet_zfp_2d_compressor_h 
   11 #define vtk_m_worklet_zfp_2d_compressor_h 
   38   template <
typename Scalar, 
typename Storage>
 
   56     if (paddedDims[0] % 4 != 0)
 
   57       paddedDims[0] += 4 - dims[0] % 4;
 
   58     if (paddedDims[1] % 4 != 0)
 
   59       paddedDims[1] += 4 - dims[1] % 4;
 
   61     const vtkm::Id totalBlocks = (paddedDims[0] / four) * (paddedDims[1] / (four));
 
   64     size_t outbits = zfp::detail::CalcMem2d(paddedDims, stream.
minbits);
 
   79     compressDispatcher.Invoke(blockCounter, data, output);
 
   94 #endif //  vtk_m_worklet_zfp_2d_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
 
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::UInt32 maxbits
Definition: ZFPStructs.h:31
 
An array handle with a constant value.
Definition: ArrayHandleConstant.h:63
 
Definition: ZFPEncode2.h:69
 
int32_t Int32
Definition: Types.h:160
 
double Float64
Definition: Types.h:155
 
vtkm::cont::ArrayHandle< vtkm::Int64 > Compress(const vtkm::cont::ArrayHandle< Scalar, Storage > &data, const vtkm::Float64 requestedRate, const vtkm::Id2 dims)
Definition: ZFP2DCompressor.h:39
 
Definition: ZFPStructs.h:28
 
Definition: ZFP2DCompressor.h:35