Signal Arithmetic And Logical Operations Functions

Functions that provide common arithmetic and logical operations.

Signal Arithmetic Functions

Arithmetic Operations

The set of arithmetic operations for signal processing available in the library.

Signal AddC

AddC

Adds a constant value to each sample of a signal.

Functions

NppStatus nppsAddC_32f_I_Ctx(Npp32f nValue, Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point in place signal add constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddC_32f_Ctx(const Npp32f *pSrc, Npp32f nValue, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal add constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddC_64f_I_Ctx(Npp64f nValue, Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point, in place signal add constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddC_64f_Ctx(const Npp64f *pSrc, Npp64f nValue, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating pointsignal add constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddC_ISfs_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

In place signal add constant, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddC_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Signal add constant, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal AddProductC

AddProductC

Adds product of a constant and each sample of a source signal to the each sample of destination signal.

Functions

NppStatus nppsAddProductC_32f_Ctx(const Npp32f *pSrc, Npp32f nValue, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal add product of signal times constant to destination signal.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal MulC

MulC

Multiplies each sample of a signal by a constant value.

Functions

NppStatus nppsMulC_32f_Ctx(const Npp32f *pSrc, Npp32f nValue, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal times constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMulC_32f_I_Ctx(Npp32f nValue, Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point in place signal times constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMulC_64f_Ctx(const Npp64f *pSrc, Npp64f nValue, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal times constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMulC_64f_I_Ctx(Npp64f nValue, Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point in place signal times constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMulC_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Signal times constant, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMulC_ISfs_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

In place signal times constant, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMulC_Low_32f16s_Ctx(const Npp32f *pSrc, Npp32f nValue, Npp16s *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal times constant with output converted to 16-bit signed integer.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

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

32-bit floating point signal times constant with output converted to 16-bit signed integer with scaling and saturation of output result.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMulC_64f64s_ISfs_Ctx(Npp64f nValue, Npp64s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

64-bit floating point signal times constant with in place conversion to 64-bit signed integer and with scaling and saturation of output result.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal SubC

SubC

Subtracts a constant from each sample of a signal.

Functions

NppStatus nppsSubC_32f_I_Ctx(Npp32f nValue, Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point in place signal subtract constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSubC_32f_Ctx(const Npp32f *pSrc, Npp32f nValue, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal subtract constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSubC_64f_I_Ctx(Npp64f nValue, Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point in place signal subtract constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSubC_64f_Ctx(const Npp64f *pSrc, Npp64f nValue, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal subtract constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSubC_ISfs_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

In place signal subtract constant, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSubC_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Signal subtract constant, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal SubCRev

SubCRev

Subtracts each sample of a signal from a constant.

Functions

NppStatus nppsSubCRev_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Constant subtract signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSubCRev_ISfs_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

In place constant subtract signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSubCRev_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Floating point signal subtract from constant.

Supported data types include NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSubCRev_I_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

Floating point in place signal subtract from constant.

Supported data types include NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal DivC

DivC

Divides each sample of a signal by a constant.

Functions

NppStatus nppsDivC_32f_Ctx(const Npp32f *pSrc, Npp32f nValue, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal divided by constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivC_32f_I_Ctx(Npp32f nValue, Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point in place signal divided by constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivC_64f_Ctx(const Npp64f *pSrc, Npp64f nValue, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal divided by constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivC_64f_I_Ctx(Npp64f nValue, Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point in place signal divided by constant.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivC_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Signal divided by constant, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivC_ISfs_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

In place signal divided by constant, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal DivCRev

DivCRev

Divides a constant by each sample of a signal.

Functions

NppStatus nppsDivCRev_16u_Ctx(const Npp16u *pSrc, Npp16u nValue, Npp16u *pDst, size_t nLength, NppStreamContext nppStreamCtx)

16-bit unsigned short signal divided by constant, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivCRev_16u_I_Ctx(Npp16u nValue, Npp16u *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place 16-bit unsigned short signal constant divided by signal, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivCRev_32f_Ctx(const Npp32f *pSrc, Npp32f nValue, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point constant divided by signal.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivCRev_32f_I_Ctx(Npp32f nValue, Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point in place constant divided by signal.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivCRev_64f_Ctx(const Npp64f *pSrc, Npp64f nValue, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point constant divided by signal.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDivCRev_64f_I_Ctx(Npp64f nValue, Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point in place constant divided by signal.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Add

Add

Sample by sample addition of two signals.

Functions

NppStatus nppsAdd_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal add signal, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAdd_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal add signal, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAdd_8u16u_Ctx(const Npp8u *pSrc1, const Npp8u *pSrc2, Npp16u *pDst, size_t nLength, NppStreamContext nppStreamCtx)

8-bit unsigned char signal add signal with 16-bit unsigned result, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAdd_16s32f_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

16-bit signed short signal add signal with 32-bit floating point result, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAdd_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Signal add signal, scale, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAdd_16s32s_I_Ctx(const Npp16s *pSrc, Npp32s *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

16/32-bit signed short in place signal add signal with 32-bit signed integer results, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAdd_ISfs_Ctx(NppDataType eSrcDstType, const void *pSrc1, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

In place signal add signal, scale, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal AddProduct

AddProduct

Adds sample by sample product of two signals to the destination signal.

Functions

NppStatus nppsAddProduct_32f_Ctx(const Npp32f *pSrc1, const Npp32f *pSrc2, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal add product of source signal times destination signal to destination signal, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddProduct_64f_Ctx(const Npp64f *pSrc1, const Npp64f *pSrc2, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal add product of source signal times destination signal to destination signal, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddProduct_16s_Sfs_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, Npp16s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

16-bit signed short signal add product of source signal1 times source signal2 to destination signal, with scaling, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddProduct_32s_Sfs_Ctx(const Npp32s *pSrc1, const Npp32s *pSrc2, Npp32s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed short signal add product of source signal1 times source signal2 to destination signal, with scaling, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAddProduct_16s32s_Sfs_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, Npp32s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

16-bit signed short signal add product of source signal1 times source signal2 to 32-bit signed integer destination signal, with scaling, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Mul

Mul

Sample by sample multiplication the samples of two signals.

Functions

NppStatus nppsMul_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal times signal, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMul_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal times signal, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMul_8u16u_Ctx(const Npp8u *pSrc1, const Npp8u *pSrc2, Npp16u *pDst, size_t nLength, NppStreamContext nppStreamCtx)

8-bit unsigned char signal times signal with 16-bit unsigned result, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMul_16s32f_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

16-bit signed short signal times signal with 32-bit floating point result, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMul_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer signal times signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32U, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMul_16u16s_Sfs_Ctx(const Npp16u *pSrc1, const Npp16s *pSrc2, Npp16s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

16-bit unsigned short signal times 16-bit signed short signal, scale, then clamp to 16-bit signed saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMul_16s32s_Sfs_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, Npp32s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

16-bit signed short signal times signal, scale, then clamp to 32-bit signed saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMul_Low_32s_Sfs_Ctx(const Npp32s *pSrc1, const Npp32s *pSrc2, Npp32s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed integer signal times signal, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMul_ISfs_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer in place signal times signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32U, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Sub

Sub

Sample by sample subtraction of the samples of two signals.

Functions

NppStatus nppsSub_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal subtract signal, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_16F, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSub_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal subtract signal, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSub_16s32f_Ctx(const Npp16s *pSrc1, const Npp16s *pSrc2, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

16-bit signed short signal subtract 16-bit signed short signal, then clamp and convert to 32-bit floating point saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSub_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer signal subtract signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSub_ISfs_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer in place signal subtract signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Div

Div

Sample by sample division of the samples of two signals.

Functions

NppStatus nppsDiv_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Floating point signal divide signal, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDiv_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

Floating point in place signal divide signal, then clamp to saturated value.

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

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDiv_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer signal divide signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32U, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDiv_ISfs_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer in place signal divide signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32U, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDiv_32s16s_Sfs_Ctx(const Npp16s *pSrc1, const Npp32s *pSrc2, Npp16s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed integer signal divided by 16-bit signed short signal, scale, then clamp to 16-bit signed short saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Div Round

Div_Round

Sample by sample division of the samples of two signals with rounding.

Functions

NppStatus nppsDiv_Round_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, NppRoundMode nRndMode, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer signal divide signal, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsDiv_Round_ISfs_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppRoundMode nRndMode, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer in place signal divide signal, with scaling, rounding then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Abs

Abs

Absolute value of each sample of a signal.

Functions

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

Signal absolute value.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAbs_I_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal absolute value.

Supported data types include NPP_16S, NPP_32S, NPP_32F, NPP_64F.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Square

Sqr

Squares each sample of a signal.

Functions

NppStatus nppsSqr_32f_Ctx(const Npp32f *pSrc, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal squared.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqr_32f_I_Ctx(Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal squared.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqr_64f_Ctx(const Npp64f *pSrc, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal squared.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqr_64f_I_Ctx(Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal squared.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqr_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer signal squared, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqr_ISfs_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer in place signal squared, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Square Root

Sqrt

Square root of each sample of a signal.

Functions

NppStatus nppsSqrt_32f_Ctx(const Npp32f *pSrc, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal square root.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_32f_I_Ctx(Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal square root.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_64f_Ctx(const Npp64f *pSrc, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal square root.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_64f_I_Ctx(Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal square root.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_Sfs_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer signal square root, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_ISfs_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

Integer in place signal square root, scale, then clamp to saturated value.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_32s16s_Sfs_Ctx(const Npp32s *pSrc, Npp16s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed integer signal square root, scale, then clamp to 16-bit signed integer saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_64s_Sfs_Ctx(const Npp64s *pSrc, Npp64s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

64-bit signed integer signal square root, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_64s_ISfs_Ctx(Npp64s *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

64-bit signed integer signal square root, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSqrt_64s16s_Sfs_Ctx(const Npp64s *pSrc, Npp16s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

64-bit signed integer signal square root, scale, then clamp to 16-bit signed integer saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Cube Root

Cubrt

Cube root of each sample of a signal.

Functions

NppStatus nppsCubrt_32f_Ctx(const Npp32f *pSrc, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal cube root.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCubrt_32s16s_Sfs_Ctx(const Npp32s *pSrc, Npp16s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed integer signal cube root, scale, then clamp to 16-bit signed integer saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Exp

Exp

E raised to the power of each sample of a signal.

Functions

NppStatus nppsExp_32f_Ctx(const Npp32f *pSrc, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal exponent.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsExp_64f_Ctx(const Npp64f *pSrc, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal exponent.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsExp_32f64f_Ctx(const Npp32f *pSrc, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal exponent with 64-bit floating point result.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsExp_32f_I_Ctx(Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal exponent.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsExp_64f_I_Ctx(Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal exponent.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

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

16-bit signed short signal exponent, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

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

32-bit signed integer signal exponent, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsExp_64s_Sfs_Ctx(const Npp64s *pSrc, Npp64s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

64-bit signed integer signal exponent, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsExp_16s_ISfs_Ctx(Npp16s *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

16-bit signed short signal exponent, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsExp_32s_ISfs_Ctx(Npp32s *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed integer signal exponent, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsExp_64s_ISfs_Ctx(Npp64s *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

64-bit signed integer signal exponent, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Ln

Ln

Natural logarithm of each sample of a signal.

Functions

NppStatus nppsLn_32f_Ctx(const Npp32f *pSrc, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal natural logarithm.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsLn_64f_Ctx(const Npp64f *pSrc, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal natural logarithm.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsLn_64f32f_Ctx(const Npp64f *pSrc, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal natural logarithm with 32-bit floating point result.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsLn_32f_I_Ctx(Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal natural logarithm.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsLn_64f_I_Ctx(Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal natural logarithm.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

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

16-bit signed short signal natural logarithm, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

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

32-bit signed integer signal natural logarithm, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsLn_32s16s_Sfs_Ctx(const Npp32s *pSrc, Npp16s *pDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed integer signal natural logarithm, scale, then clamp to 16-bit signed short saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsLn_16s_ISfs_Ctx(Npp16s *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

16-bit signed short signal natural logarithm, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsLn_32s_ISfs_Ctx(Npp32s *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed integer signal natural logarithm, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal 10Log10

10Log10

Ten times the decimal logarithm of each sample of a signal.

Functions

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

32-bit signed integer signal 10 times base 10 logarithm, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus npps10Log10_32s_ISfs_Ctx(Npp32s *pSrcDst, size_t nLength, int nScaleFactor, NppStreamContext nppStreamCtx)

32-bit signed integer signal 10 times base 10 logarithm, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal SumLn

SumLn

Sums up the natural logarithm of each sample of a signal.

Functions

NppStatus nppsSumLnGetBufferSize_32f_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for 32f SumLn.

This primitive provides the correct buffer size for nppsSumLn_32f.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsSumLn_32f_Ctx(const Npp32f *pSrc, size_t nLength, Npp32f *pDst, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit floating point signal sum natural logarithm.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSumLnGetBufferSize_64f_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for 64f SumLn.

This primitive provides the correct buffer size for nppsSumLn_64f.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsSumLn_64f_Ctx(const Npp64f *pSrc, size_t nLength, Npp64f *pDst, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

64-bit floating point signal sum natural logarithm.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSumLnGetBufferSize_32f64f_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for 32f64f SumLn.

This primitive provides the correct buffer size for nppsSumLn_32f64f.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsSumLn_32f64f_Ctx(const Npp32f *pSrc, size_t nLength, Npp64f *pDst, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

32-bit flaoting point input, 64-bit floating point output signal sum natural logarithm.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSumLnGetBufferSize_16s32f_Ctx(size_t nLength, size_t *hpBufferSize, NppStreamContext nppStreamCtx)

Device scratch buffer size (in bytes) for 16s32f SumLn.

This primitive provides the correct buffer size for nppsSumLn_16s32f.

Parameters
Returns

NPP_SUCCESS

NppStatus nppsSumLn_16s32f_Ctx(const Npp16s *pSrc, size_t nLength, Npp32f *pDst, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)

16-bit signed short integer input, 32-bit floating point output signal sum natural logarithm.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal ArcTan

Arctan

Inverse tangent of each sample of a signal.

Functions

NppStatus nppsArctan_32f_Ctx(const Npp32f *pSrc, Npp32f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal inverse tangent.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsArctan_64f_Ctx(const Npp64f *pSrc, Npp64f *pDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal inverse tangent.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsArctan_32f_I_Ctx(Npp32f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

32-bit floating point signal inverse tangent.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsArctan_64f_I_Ctx(Npp64f *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

64-bit floating point signal inverse tangent.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Normalize

Normalize

Normalize each sample of a real or complex signal using offset and division operations.

Functions

NppStatus nppsNormalize_32f_Ctx(const Npp32f *pSrc, Npp32f *pDst, size_t nLength, Npp32f vSub, Npp32f vDiv, NppStreamContext nppStreamCtx)

32-bit floating point signal normalize.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormalize_64f_Ctx(const Npp64f *pSrc, Npp64f *pDst, size_t nLength, Npp64f vSub, Npp64f vDiv, NppStreamContext nppStreamCtx)

64-bit floating point signal normalize.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNormalize_16s_Sfs_Ctx(const Npp16s *pSrc, Npp16s *pDst, size_t nLength, Npp16s vSub, int vDiv, int nScaleFactor, NppStreamContext nppStreamCtx)

16-bit signed short signal normalize, scale, then clamp to saturated value.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Cauchy, CouchyD, And CouchyDD2

Cauchy, CauchyD, and CauchyDD2

Determine Cauchy robust error function and its first and second derivatives for each sample of a signal.

Functions

NppStatus nppsCauchy_32f_I_Ctx(Npp32f *pSrcDst, size_t nLength, Npp32f nParam, NppStreamContext nppStreamCtx)

32-bit floating point signal Cauchy error calculation.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCauchyD_32f_I_Ctx(Npp32f *pSrcDst, size_t nLength, Npp32f nParam, NppStreamContext nppStreamCtx)

32-bit floating point signal Cauchy first derivative.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCauchyDD2_32f_I_Ctx(Npp32f *pSrcDst, Npp32f *pD2FVal, size_t nLength, Npp32f nParam, NppStreamContext nppStreamCtx)

32-bit floating point signal Cauchy first and second derivatives.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Logical And Shift Operations

Logical And Shift Operations

The set of logical and shift operations for signal processing available in the library.

Signal AndC

AndC

Bitwise AND of a constant and each sample of a signal.

Functions

NppStatus nppsAndC_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal logical AND with constant.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAndC_I_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal logincal AND with constant.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal And

And

Sample by sample bitwise AND of samples from two signals.

Functions

NppStatus nppsAnd_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal logical AND with signal.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsAnd_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal logical AND with signal.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal OrC

OrC

Bitwise OR of a constant and each sample of a signal.

Functions

NppStatus nppsOrC_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal logical OR with constant.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsOrC_I_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal logical OR with constant.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Or

Or

Sample by sample bitwise OR of the samples from two signals.

Functions

NppStatus nppsOr_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal logical OR with signal.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsOr_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal logical OR with signal.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal XorC

XorC

Bitwise XOR of a constant and each sample of a signal.

Functions

NppStatus nppsXorC_Ctx(NppDataType eSrcDstType, const void *pSrc, const void *pConstant, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal logical XOR with constant.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsXorC_I_Ctx(NppDataType eSrcDstType, const void *pConstant, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal logical XOR with constant.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Xor

Xor

Sample by sample bitwise XOR of the samples from two signals.

Functions

NppStatus nppsXor_Ctx(NppDataType eSrcDstType, const void *pSrc1, const void *pSrc2, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal logical XOR with signal.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsXor_I_Ctx(NppDataType eSrcDstType, const void *pSrc, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal logical XOR with signal.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal Not

Not

Bitwise NOT of each sample of a signal.

Functions

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

logical NOT signal.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsNot_I_Ctx(NppDataType eSrcDstType, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place logical NOT signal.

Supported data types include NPP_8U, NPP_16U, NPP_32U.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal LShiftC

LShiftC

Left shifts the bits of each sample of a signal by a constant amount.

Functions

NppStatus nppsLShiftC_Ctx(NppDataType eSrcDstType, const void *pSrc, int nValue, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal left shift with constant.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsLShiftC_I_Ctx(NppDataType eSrcDstType, int nValue, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal left shift with constant.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

Signal RShiftC

RShiftC

Right shifts the bits of each sample of a signal by a constant amount.

Functions

NppStatus nppsRShiftC_Ctx(NppDataType eSrcDstType, const void *pSrc, int nValue, void *pDst, size_t nLength, NppStreamContext nppStreamCtx)

Signal right shift with constant.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsRShiftC_I_Ctx(NppDataType eSrcDstType, int nValue, void *pSrcDst, size_t nLength, NppStreamContext nppStreamCtx)

In place signal right shift with constant.

Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S.

Parameters
Returns

Signal Data Related Error Codes, Length Related Error Codes.