Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 16-bit signed short integer zero crossing method, return value is 32-bit floating point.
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pValZC">Pointer to the output result.</param>
/// <param name="tZCType">Type of the zero crossing measure: nppZCR, nppZCXor or nppZCC.</param>
/// <param name="pDeviceBuffer">Pointer to the required device memory allocation. </param>
16-bit signed short integer zero crossing method, return value is 32-bit floating point.
16 - bit signed short integer zero crossing method return value is 32 - bit floating point .
public static void ZeroCrossing(this CudaDeviceVariable<short> pSrc, CudaDeviceVariable<float> pValZC, CudaDeviceVariable<byte> pDeviceBuffer, NppsZCType tZCType)
		{
			NppStatus status = NPPNativeMethods.NPPs.ZeroCrossing.nppsZeroCrossing_16s32f(pSrc.DevicePointer, pSrc.Size, pValZC.DevicePointer, tZCType, pDeviceBuffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsZeroCrossing_16s32f", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void ZeroCrossing ( this CudaDeviceVariable < short > pSrc , CudaDeviceVariable < float > pValZC , CudaDeviceVariable < byte > pDeviceBuffer , NppsZCType tZCType ) { NppStatus status = NPPNativeMethods . NPPs . ZeroCrossing . nppsZeroCrossing_16s32f ( pSrc . DevicePointer , pSrc . Size , pValZC . DevicePointer , tZCType , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
16-bit signed short integer zero crossing method, return value is 32-bit floating point.
16 - bit signed short integer zero crossing method return value is 32 - bit floating point .
CudaDeviceVariable<short>
this
pValZC
CudaDeviceVariable<float>
Pointer to the output result.
Pointer to the output result .
pDeviceBuffer
CudaDeviceVariable<byte>
Pointer to the required device memory allocation.
Pointer to the required device memory allocation .
tZCType
NppsZCType
Type of the zero crossing measure: nppZCR, nppZCXor or nppZCC.
Type of the zero crossing measure : nppZCR nppZCXor or nppZCC .
pSrc
Source signal pointer.
Source signal pointer .