Class NPPNativeMethods.NPPs.ZeroCrossing
Count Zero Crossings
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class ZeroCrossing
Methods
nppsZeroCrossing_16s32f(CUdeviceptr, Int32, CUdeviceptr, NppsZCType, CUdeviceptr)
16-bit signed short integer zero crossing method, return value is 32-bit floating point.
Declaration
public static NppStatus nppsZeroCrossing_16s32f(CUdeviceptr pSrc, int nLength, CUdeviceptr pValZC, NppsZCType tZCType, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
CUdeviceptr | pValZC | Pointer to the output result. |
NppsZCType | tZCType | Type of the zero crossing measure: nppZCR, nppZCXor or nppZCC. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsZeroCrossing_32f(CUdeviceptr, Int32, CUdeviceptr, NppsZCType, CUdeviceptr)
32-bit floating-point zero crossing method, return value is 32-bit floating point.
Declaration
public static NppStatus nppsZeroCrossing_32f(CUdeviceptr pSrc, int nLength, CUdeviceptr pValZC, NppsZCType tZCType, CUdeviceptr pDeviceBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source signal pointer. |
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
CUdeviceptr | pValZC | Pointer to the output result. |
NppsZCType | tZCType | Type of the zero crossing measure: nppZCR, nppZCXor or nppZCC. |
CUdeviceptr | pDeviceBuffer | Pointer to the required device memory allocation. |
Returns
Type | Description |
---|---|
NppStatus |
nppsZeroCrossingGetBufferSize_16s32f(Int32, ref Int32)
Device-buffer size (in bytes) for nppsZeroCrossing_16s32f.
Declaration
public static NppStatus nppsZeroCrossingGetBufferSize_16s32f(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | hpBufferSize | Required buffer size. Important: |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |
nppsZeroCrossingGetBufferSize_32f(Int32, ref Int32)
Device-buffer size (in bytes) for nppsZeroCrossing_32f.
Declaration
public static NppStatus nppsZeroCrossingGetBufferSize_32f(int nLength, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nLength | Signal length. Tells the primitive how many of the signal’s samples starting from the given data pointer are to be processed.. |
System.Int32 | hpBufferSize | Required buffer size. Important: |
Returns
Type | Description |
---|---|
NppStatus | NPP_SUCCESS |