Class NPPNativeMethods.NPPi.AlphaPremul
Premultiplies image pixels by image alpha opacity values.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class AlphaPremul
Methods
nppiAlphaPremul_16u_AC4IR(CUdeviceptr, Int32, NppiSize)
Four 16-bit unsigned short channel in place image premultiplication with pixel alpha (0 - max channel pixel value).
Declaration
public static NppStatus nppiAlphaPremul_16u_AC4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAlphaPremul_16u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)
Four 16-bit unsigned short channel image premultiplication with pixel alpha (0 - max channel pixel value).
Declaration
public static NppStatus nppiAlphaPremul_16u_AC4R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAlphaPremul_8u_AC4IR(CUdeviceptr, Int32, NppiSize)
Four 8-bit unsigned char channel in place image premultiplication with pixel alpha (0 - max channel pixel value).
Declaration
public static NppStatus nppiAlphaPremul_8u_AC4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAlphaPremul_8u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)
Four 8-bit unsigned char channel image premultiplication with pixel alpha (0 - max channel pixel value).
Declaration
public static NppStatus nppiAlphaPremul_8u_AC4R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |