Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 10/31/2024
Public
Document Table of Contents

EncodeZfp444

Encodes a 4x4x4 block of 3D floating point data.

Syntax

IppStatus ippsEncodeZfp444_32f(const Ipp32f* pSrc, int srcStep, int srcPlaneStep, IppEncodeZfpState_32f* pState);

Include Files

ippdc.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

pSrc

Pointer to the value at the coordinates (0, 0, 0) of the 3D source data block.

srcStep

Row step in bytes.

srcPlaneStep

Plane step in bytes.

pState

Pointer to the ZFP compression structure.

Description

This function encodes a 3D 4x4x4 block of floating point values. The function adds the encoded data to an internal bit stream. The pointer to the bit stream is initialized by calling the EncodeZfpInit function and is updated automatically.

The 3D source data must be arranged in memory in such a way that for any set of coordinates (x, y, z) within the 4x4x4 block,

pXYZ = (float *)((char *)pSrc + x + y * srcStep + z * srcPlaneStep)

is a pointer to the value at (x, y, z).

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if any of the pointers is NULL.

ippStsContexMatchErr

Indicates an error if ZFP compression structure data is invalid.