Signal Conversion Functions

Functions that provide conversion and threshold operations.

Signal Convert

Convert

The set of conversion operations available in the library

Convert

Routines for converting the sample-data type of signals.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_64S, NPP_32F, NPP_64F.

param eSrcType

source Signal Data Type.

param eDstType

destination Signal Data Type.

param pSrc

Source Signal Pointer.

param nLength

Signal Length.

param pDst

Destination Signal Pointer.

param eRoundMode

Rounding Mode Parameter.

param nScaleFactor

Integer Result Scaling, 0 for no scaling.

param nppStreamCtx

Application Managed Stream Context.

return

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsConvert_Up_Ctx(NppDataType eSrcType, NppDataType eDstType, const void *pSrc, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Convert Up.

NppStatus nppsConvert_16s32f_Sfs_Ctx(const Npp16s *pSrc, Npp32f *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Convert 16s32f Sfs.

NppStatus nppsConvert_16s64f_Sfs_Ctx(const Npp16s *pSrc, Npp64f *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Convert 16s64f Sfs.

NppStatus nppsConvert_32s64f_Sfs_Ctx(const Npp32s *pSrc, Npp64f *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Convert 32s64f Sfs.

NppStatus nppsConvert_Down_Ctx(NppDataType eSrcType, NppDataType eDstType, const void *pSrc, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Convert Down.

NppStatus nppsConvert_Down_Sfs_Ctx(NppDataType eSrcType, NppDataType eDstType, const void *pSrc, void *pDst, NppRoundMode eRoundMode, int nScaleFactor, size_t nLength, NppStreamContext nppStreamCtx)

Convert Down Sfs.

Signal Threshold

Threshold

The set of threshold operations available in the library.

Threshold Functions

Performs the threshold operation on the samples of a signal by limiting the sample values by a specified constant value.

NppStatus nppsThreshold_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pDst, size_t nLength, const void *pLevel, NppCmpOp nRelOp, NppStreamContext nppStreamCtx)

Signal threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_I_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, const void *pLevel, NppCmpOp nRelOp, NppStreamContext nppStreamCtx)

In place signed short signal threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_LT_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pDst, size_t nLength, const void *pLevel, NppStreamContext nppStreamCtx)

Signal NPP_CMP_LESS threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_LT_I_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, const void *pLevel, NppStreamContext nppStreamCtx)

In place signed short signal NPP_CMP_LESS threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_GT_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pDst, size_t nLength, const void *pLevel, NppStreamContext nppStreamCtx)

Signal NPP_CMP_GREATER threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_GT_I_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, const void *pLevel, NppStreamContext nppStreamCtx)

In place signed short signal NPP_CMP_GREATER threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_LTVal_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pDst, size_t nLength, const void *pLevel, const void *pValue, NppStreamContext nppStreamCtx)

Signal NPP_CMP_LESS threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_LTVal_I_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, const void *pLevel, const void *pValue, NppStreamContext nppStreamCtx)

In place signed short signal NPP_CMP_LESS threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_GTVal_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pDst, size_t nLength, const void *pLevel, const void *pValue, NppStreamContext nppStreamCtx)

Signal NPP_CMP_GREATER threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsThreshold_GTVal_I_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, const void *pLevel, const void *pValue, NppStreamContext nppStreamCtx)

In place floating point signal NPP_CMP_GREATER threshold with constant level.

Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.