Class NPPNativeMethods.NPPi.CompColorKey
Composition color key
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class CompColorKey
Methods
nppiAlphaCompColorKey_8u_AC4R(CUdeviceptr, Int32, Byte, CUdeviceptr, Int32, Byte, CUdeviceptr, Int32, NppiSize, Byte[], NppiAlphaOp)
4 channel 8-bit unsigned packed color complement color key replacement of source image 1 by source image 2 with alpha blending.
Declaration
public static NppStatus nppiAlphaCompColorKey_8u_AC4R(CUdeviceptr pSrc1, int nSrc1Step, byte nAlpha1, CUdeviceptr pSrc2, int nSrc2Step, byte nAlpha2, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, byte[] nColorKeyConst, NppiAlphaOp nppAlphaOp)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | source1 packed pixel format image pointer. |
System.Int32 | nSrc1Step | source1 packed pixel format image line step. |
System.Byte | nAlpha1 | source1 image alpha opacity (0 - max channel pixel value). |
CUdeviceptr | pSrc2 | source2 packed pixel format image pointer. |
System.Int32 | nSrc2Step | source2 packed pixel format image line step. |
System.Byte | nAlpha2 | source2 image alpha opacity (0 - max channel pixel value). |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Byte[] | nColorKeyConst | color key constant array |
NppiAlphaOp | nppAlphaOp | NppiAlphaOp alpha compositing operation selector (excluding premul ops). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCompColorKey_8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Byte)
1 channel 8-bit unsigned packed color complement color key replacement of source image 1 by source image 2.
Declaration
public static NppStatus nppiCompColorKey_8u_C1R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pSrc2, int nSrc2Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, byte nColorKeyConst)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | source1 packed pixel format image pointer. |
System.Int32 | nSrc1Step | source1 packed pixel format image line step. |
CUdeviceptr | pSrc2 | source2 packed pixel format image pointer. |
System.Int32 | nSrc2Step | source2 packed pixel format image line step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Byte | nColorKeyConst | color key constant |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCompColorKey_8u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Byte[])
3 channel 8-bit unsigned packed color complement color key replacement of source image 1 by source image 2.
Declaration
public static NppStatus nppiCompColorKey_8u_C3R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pSrc2, int nSrc2Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, byte[] nColorKeyConst)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | source1 packed pixel format image pointer. |
System.Int32 | nSrc1Step | source1 packed pixel format image line step. |
CUdeviceptr | pSrc2 | source2 packed pixel format image pointer. |
System.Int32 | nSrc2Step | source2 packed pixel format image line step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Byte[] | nColorKeyConst | color key constant array |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCompColorKey_8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Byte[])
4 channel 8-bit unsigned packed color complement color key replacement of source image 1 by source image 2.
Declaration
public static NppStatus nppiCompColorKey_8u_C4R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pSrc2, int nSrc2Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, byte[] nColorKeyConst)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | source1 packed pixel format image pointer. |
System.Int32 | nSrc1Step | source1 packed pixel format image line step. |
CUdeviceptr | pSrc2 | source2 packed pixel format image pointer. |
System.Int32 | nSrc2Step | source2 packed pixel format image line step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Byte[] | nColorKeyConst | color key constant array |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |