Show / Hide Table of Contents

    Class NPPNativeMethods.NPPs.SubC

    Subtracts a constant from each sample of a signal.

    Inheritance
    System.Object
    NPPNativeMethods.NPPs.SubC
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ManagedCuda.NPP
    Assembly: NPP.dll
    Syntax
    public static class SubC

    Methods

    nppsSubC_16s_ISfs(Int16, CUdeviceptr, Int32, Int32)

    16-bit signed short in place signal subtract constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsSubC_16s_ISfs(short nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.Int16 nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_16s_Sfs(CUdeviceptr, Int16, CUdeviceptr, Int32, Int32)

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

    Declaration
    public static NppStatus nppsSubC_16s_Sfs(CUdeviceptr pSrc, short nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.Int16 nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_16sc_ISfs(Npp16sc, CUdeviceptr, Int32, Int32)

    16-bit integer complex number (16 bit real, 16 bit imaginary) signal subtract constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsSubC_16sc_ISfs(Npp16sc nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    Npp16sc nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_16sc_Sfs(CUdeviceptr, Npp16sc, CUdeviceptr, Int32, Int32)

    16-bit integer complex number (16 bit real, 16 bit imaginary) signal subtract constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsSubC_16sc_Sfs(CUdeviceptr pSrc, Npp16sc nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    Npp16sc nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_16u_ISfs(UInt16, CUdeviceptr, Int32, Int32)

    16-bit unsigned short in place signal subtract constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsSubC_16u_ISfs(ushort nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.UInt16 nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_16u_Sfs(CUdeviceptr, UInt16, CUdeviceptr, Int32, Int32)

    16-bit unsigned short signal subtract constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsSubC_16u_Sfs(CUdeviceptr pSrc, ushort nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.UInt16 nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_32f(CUdeviceptr, Single, CUdeviceptr, Int32)

    32-bit floating point signal subtract constant.

    Declaration
    public static NppStatus nppsSubC_32f(CUdeviceptr pSrc, float nValue, CUdeviceptr pDst, int nLength)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.Single nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_32f_I(Single, CUdeviceptr, Int32)

    32-bit floating point in place signal subtract constant.

    Declaration
    public static NppStatus nppsSubC_32f_I(float nValue, CUdeviceptr pSrcDst, int nLength)
    Parameters
    Type Name Description
    System.Single nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_32fc(CUdeviceptr, Npp32fc, CUdeviceptr, Int32)

    32-bit floating point complex number (32 bit real, 32 bit imaginary) signal subtract constant.

    Declaration
    public static NppStatus nppsSubC_32fc(CUdeviceptr pSrc, Npp32fc nValue, CUdeviceptr pDst, int nLength)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    Npp32fc nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_32fc_I(Npp32fc, CUdeviceptr, Int32)

    32-bit floating point complex number (32 bit real, 32 bit imaginary) in place signal subtract constant.

    Declaration
    public static NppStatus nppsSubC_32fc_I(Npp32fc nValue, CUdeviceptr pSrcDst, int nLength)
    Parameters
    Type Name Description
    Npp32fc nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_32s_ISfs(Int32, CUdeviceptr, Int32, Int32)

    32-bit signed integer in place signal subtract constant and scale.

    Declaration
    public static NppStatus nppsSubC_32s_ISfs(int nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.Int32 nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_32s_Sfs(CUdeviceptr, Int32, CUdeviceptr, Int32, Int32)

    32-bit signed integer signal subtract constant and scale.

    Declaration
    public static NppStatus nppsSubC_32s_Sfs(CUdeviceptr pSrc, int nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.Int32 nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_32sc_ISfs(Npp32sc, CUdeviceptr, Int32, Int32)

    32-bit integer complex number (32 bit real, 32 bit imaginary) in place signal subtract constant and scale.

    Declaration
    public static NppStatus nppsSubC_32sc_ISfs(Npp32sc nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    Npp32sc nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_32sc_Sfs(CUdeviceptr, Npp32sc, CUdeviceptr, Int32, Int32)

    32-bit integer complex number (32 bit real, 32 bit imaginary)signal subtract constant and scale.

    Declaration
    public static NppStatus nppsSubC_32sc_Sfs(CUdeviceptr pSrc, Npp32sc nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    Npp32sc nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_64f(CUdeviceptr, Double, CUdeviceptr, Int32)

    64-bit floating point signal subtract constant.

    Declaration
    public static NppStatus nppsSubC_64f(CUdeviceptr pSrc, double nValue, CUdeviceptr pDst, int nLength)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.Double nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_64f_I(Double, CUdeviceptr, Int32)

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

    Declaration
    public static NppStatus nppsSubC_64f_I(double nValue, CUdeviceptr pSrcDst, int nLength)
    Parameters
    Type Name Description
    System.Double nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place Signal Pointer.

    System.Int32 nLength

    Length of the vectors, number of items.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_64fc(CUdeviceptr, Npp64fc, CUdeviceptr, Int32)

    64-bit floating point complex number (64 bit real, 64 bit imaginary) signal subtract constant.

    Declaration
    public static NppStatus nppsSubC_64fc(CUdeviceptr pSrc, Npp64fc nValue, CUdeviceptr pDst, int nLength)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    Npp64fc nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_64fc_I(Npp64fc, CUdeviceptr, Int32)

    64-bit floating point complex number (64 bit real, 64 bit imaginary) in place signal subtract constant.

    Declaration
    public static NppStatus nppsSubC_64fc_I(Npp64fc nValue, CUdeviceptr pSrcDst, int nLength)
    Parameters
    Type Name Description
    Npp64fc nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_8u_ISfs(Byte, CUdeviceptr, Int32, Int32)

    8-bit unsigned char in place signal subtract constant, scale, then clamp to saturated value

    Declaration
    public static NppStatus nppsSubC_8u_ISfs(byte nValue, CUdeviceptr pSrcDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pSrcDst

    In-Place 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    nppsSubC_8u_Sfs(CUdeviceptr, Byte, CUdeviceptr, Int32, Int32)

    8-bit unsigned char signal subtract constant, scale, then clamp to saturated value.

    Declaration
    public static NppStatus nppsSubC_8u_Sfs(CUdeviceptr pSrc, byte nValue, CUdeviceptr pDst, int nLength, int nScaleFactor)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source signal pointer.

    System.Byte nValue

    Constant value to be subtracted from each vector element

    CUdeviceptr pDst

    Destination 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..

    System.Int32 nScaleFactor

    Integer Result Scaling.

    Returns
    Type Description
    NppStatus

    NullPointerError, AlignmentError, SizeError.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX