Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit signed integer in place signal add signal, with scaling, 
/// then clamp to saturated value.
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pSrcDst">In-Place Signal Pointer. signal2 elements to be added to signal1 elements</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
32-bit signed integer in place signal add signal, with scaling,
then clamp to saturated value.
32 - bit signed integer in place signal add signal with scaling then clamp to saturated value .
public static void Add(this CudaDeviceVariable<int> pSrcDst, CudaDeviceVariable<int> pSrc, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.AddSignal.nppsAdd_32s_ISfs(pSrc.DevicePointer, pSrcDst.DevicePointer, pSrcDst.Size, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsAdd_32s_ISfs", status));
			NPPException.CheckNppStatus(status, pSrcDst);
		}
public static void Add ( this CudaDeviceVariable < int > pSrcDst , CudaDeviceVariable < int > pSrc , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . AddSignal . nppsAdd_32s_ISfs ( pSrc . DevicePointer , pSrcDst . DevicePointer , pSrcDst . Size , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrcDst ) ; }
32-bit signed integer in place signal add signal, with scaling,
then clamp to saturated value.
32 - bit signed integer in place signal add signal with scaling then clamp to saturated value .
CudaDeviceVariable<int>
this
pSrc
CudaDeviceVariable<int>
Source signal pointer.
Source signal pointer .
nScaleFactor
int
Integer Result Scaling.
Integer Result Scaling .
pSrcDst
In-Place Signal Pointer. signal2 elements to be added to signal1 elements
In - Place Signal Pointer . signal2 elements to be added to signal1 elements