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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be added to each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be added to each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be added to each vector element
nLength – Length of the vectors, number of items.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be added to each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to be added to each vector element
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to be added to each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be multiplied by each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be multiplied by each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be multiplied by each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be multiplied by each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be multiplied by each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to multiply each vector element by.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to multiply each vector element by.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be multiplied by each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be multiplied by each vector element
pDst – Destination Signal Pointer.
nScaleFactor – Integer Result Scaling.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
nValue – Constant value to be multiplied by each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be subtracted from each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be subtracted from each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be subtracted from each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be subtracted from each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to subtract from each vector element.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to subtract from each vector element.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to subtract each vector element from.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to subtract each vector element from.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to subtract each vector element from.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to subtract each vector element from.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be divided into each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be divided into each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be divided into each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be divided into each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to divide each vector element by.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to divide each vector element by.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be divided by each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be divided by each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be divided by each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be divided by each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nValue – Constant value to be divided by each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be divided by each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be added to signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal2 elements to be added to signal1 elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be added to signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be added to signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be added to signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal2 elements to be added to signal1 elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal2 elements to be added to signal1 elements
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
pDst – Destination Signal Pointer. product of source1 and source2 signal elements to be added to destination elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
pDst – Destination Signal Pointer. product of source1 and source2 signal elements to be added to destination elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
pDst – Destination Signal Pointer. product of source1 and source2 signal elements to be added to destination elements
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
pDst – Destination Signal Pointer. product of source1 and source2 signal elements to be added to destination elements
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer.
pDst – Destination Signal Pointer. product of source1 and source2 signal elements to be added to destination elements
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be multiplied by signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal2 elements to be multiplied by signal1 elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be multiplied by signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be multiplied by signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal2 elements to be multiplied by signal1 elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal2 elements to be multiplied by signal1 elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal2 elements to be multiplied by signal1 elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal2 elements to be multiplied by signal1 elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal2 elements to be multiplied by signal1 elements
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal1 elements to be subtracted from signal2 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal1 elements to be subtracted from signal2 elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal1 elements to be subtracted from signal2 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal1 elements to be subtracted from signal2 elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal1 elements to be subtracted from signal2 elements
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal1 divisor elements to be divided into signal2 dividend elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal1 divisor elements to be divided into signal2 dividend elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal1 divisor elements to be divided into signal2 dividend elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal1 divisor elements to be divided into signal2 dividend elements
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal1 divisor elements to be divided into signal2 dividend elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer, signal1 divisor elements to be divided into signal2 dividend elements.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nRndMode – various rounding modes.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal1 divisor elements to be divided into signal2 dividend elements
nLength – Signal Length.
nRndMode – various rounding modes.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pDst – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pDst – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pDst – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation.
nppStreamCtx – Application Managed Stream Context.
- 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
nLength – Signal Length.
hpBufferSize – Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
nLength – Signal Length.
pDst – Pointer to the output result.
pDeviceBuffer – Pointer to the required device memory allocation.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
vSub – value subtracted from each signal element before division
vDiv – divisor of post-subtracted signal element dividend
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
vSub – value subtracted from each signal element before division
vDiv – divisor of post-subtracted signal element dividend
nppStreamCtx – Application Managed Stream Context.
- 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
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
vSub – value subtracted from each signal element before division
vDiv – divisor of post-subtracted signal element dividend
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nParam – constant used in Cauchy formula
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nParam – constant used in Cauchy formula
nppStreamCtx – Application Managed Stream Context.
- 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
pSrcDst – In-Place Signal Pointer.
pD2FVal – Source Signal Pointer. This signal contains the second derivative of the source signal.
nLength – Signal Length.
nParam – constant used in Cauchy formula
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to be logical anded with each vector element.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to be logical anded with each vector element.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be logical anded with signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal2 elements to be logical anded with signal1 elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to be logical ored with each vector element.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to be logical ored with each vector element.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be ored with signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal2 elements to be ored with signal1 elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to be logical xored with each vector element.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
pConstant – Host memory pointer to eSrcDstType Constant value to be logical xored with each vector element.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc1 – Source Signal Pointer.
pSrc2 – Source Signal Pointer. signal2 elements to be xored with signal1 elements
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pSrcDst – In-Place Signal Pointer. signal2 elements to be xored with signal1 elements
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
nValue – Constant value to be used to left shift each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be used to left shift each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrc – Source Signal Pointer.
nValue – Constant value to be used to right shift each vector element
pDst – Destination Signal Pointer.
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- 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
eSrcDstType – Signal Data Type.
pSrcDst – In-Place Signal Pointer.
nValue – Constant value to be used to right shift each vector element
nLength – Signal Length.
nppStreamCtx – Application Managed Stream Context.
- Returns
Signal Data Related Error Codes, Length Related Error Codes.