Class NPPImage_8uC2
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_8uC2 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_8uC2(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8uC2(CUdeviceptr devPtr, NppiSize size, int pitch)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devPtr | Already allocated device ptr. |
NppiSize | size | Image size |
System.Int32 | pitch | Pitch / Line step |
NPPImage_8uC2(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8uC2(CUdeviceptr devPtr, NppiSize size, int pitch, bool isOwner)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devPtr | Already allocated device ptr. |
NppiSize | size | Image size |
System.Int32 | pitch | Pitch / Line step |
System.Boolean | isOwner | If TRUE, devPtr is freed when disposing |
NPPImage_8uC2(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_8uC2(CUdeviceptr devPtr, int width, int height, int pitch)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devPtr | Already allocated device ptr. |
System.Int32 | width | Image width in pixels |
System.Int32 | height | Image height in pixels |
System.Int32 | pitch | Pitch / Line step |
NPPImage_8uC2(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8uC2(CUdeviceptr devPtr, int width, int height, int pitch, bool isOwner)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devPtr | Already allocated device ptr. |
System.Int32 | width | Image width in pixels |
System.Int32 | height | Image height in pixels |
System.Int32 | pitch | Pitch / Line step |
System.Boolean | isOwner | If TRUE, devPtr is freed when disposing |
NPPImage_8uC2(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_8uC2(NPPImageBase image)
Parameters
Type | Name | Description |
---|---|---|
NPPImageBase | image | NPP image |
NPPImage_8uC2(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_8uC2(NppiSize size)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | size | Image size |
NPPImage_8uC2(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_8uC2(int nWidthPixels, int nHeightPixels)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nWidthPixels | Image width in pixels |
System.Int32 | nHeightPixels | Image height in pixels |
Methods
| Improve this Doc View SourceAlphaComp(NPPImage_8uC2, NPPImage_8uC2, NppiAlphaOp)
Image composition using image alpha values (0 - max channel pixel value).
Also the function is called *AC1R, it is a two channel image with second channel as alpha.
Declaration
public void AlphaComp(NPPImage_8uC2 src2, NPPImage_8uC2 dest, NppiAlphaOp nppAlphaOp)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
NPPImage_8uC2 | dest | Destination image |
NppiAlphaOp | nppAlphaOp | alpha compositing operation |
AverageError(NPPImage_8uC2, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_8uC2 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_8uC2, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_8uC2 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the AverageError operation. |
AverageErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for AverageError.
Declaration
public int AverageErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
AverageRelativeError(NPPImage_8uC2, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_8uC2 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_8uC2, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_8uC2 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the AverageRelativeError operation. |
AverageRelativeErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for AverageRelativeError.
Declaration
public int AverageRelativeErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
CbYCr422ToBGR_709HDTV(NPPImage_8uC3)
2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned packed BGR_709HDTV color conversion. images.
Declaration
public void CbYCr422ToBGR_709HDTV(NPPImage_8uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | dest | Destination image |
CbYCr422ToBGR_709HDTV(NPPImage_8uC4, Byte)
2 channel 8-bit unsigned packed CbYCr422 to 4 channel 8-bit unsigned packed BGR_709HDTV color conversion with constant alpha.
Declaration
public void CbYCr422ToBGR_709HDTV(NPPImage_8uC4 dest, byte nAval)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC4 | dest | Destination image |
System.Byte | nAval | 8-bit unsigned alpha constant. |
CbYCr422ToRGB(NPPImage_8uC3)
2 channel 8-bit unsigned packed CbYCrC22 to 3 channel 8-bit unsigned packed RGB color conversion. images.
Declaration
public void CbYCr422ToRGB(NPPImage_8uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | dest | Destination image |
CbYCr422ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.
Declaration
public void CbYCr422ToYCbCr411(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
CbYCr422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed CbYCr422 to 2 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
Declaration
public void CbYCr422ToYCbCr420(NPPImage_8uC1 destY, NPPImage_8uC1 destCbCr)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | destY | Destination image channel 0 |
NPPImage_8uC1 | destCbCr | Destination image channel 1 |
CbYCr422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
Declaration
public void CbYCr422ToYCbCr420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
CbYCr422ToYCbCr420(NPPImage_8uC4, Byte)
2 channel 8-bit unsigned packed YCrCb422 to 4 channel 8-bit unsigned packed BGR color conversion with constant alpha.
Declaration
public void CbYCr422ToYCbCr420(NPPImage_8uC4 dest, byte nAval)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC4 | dest | Destination image |
System.Byte | nAval | 8-bit unsigned alpha constant. |
CbYCr422ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.
Declaration
public void CbYCr422ToYCbCr422(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
CbYCr422ToYCbCr422(NPPImage_8uC2)
2 channel 8-bit unsigned packed CbYCr422 to 2 channel 8-bit unsigned packed YCbCr422 sampling format conversion. images.
Declaration
public void CbYCr422ToYCbCr422(NPPImage_8uC2 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | dest | Destination image |
CbYCr422ToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned planar YCrCb420 sampling format conversion.
Declaration
public void CbYCr422ToYCrCb420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
ColorTwist(NPPImage_8uC2, Single[,])
An input color twist matrix with floating-point pixel values is applied within ROI.
Declaration
public void ColorTwist(NPPImage_8uC2 dest, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | dest | Destination image |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(Single[,])
in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public void ColorTwist(float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. [3,4] |
Filter(NPPImage_8uC2, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter.
Declaration
public void Filter(NPPImage_8uC2 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | dst | Destination-Image |
CudaDeviceVariable<System.Single> | pKernel | Pointer to the start address of the kernel coefficient array. Coefficients are expected to be stored in reverse order. |
NppiSize | oKernelSize | Width and Height of the rectangular kernel. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference |
FilterBorder(NPPImage_8uC2, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
Two channel 8-bit unsigned convolution filter with border control.
General purpose 2D convolution filter using floating-point weights with border control.
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.
Declaration
public void FilterBorder(NPPImage_8uC2 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | dest | Destination image |
CudaDeviceVariable<System.Single> | pKernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order |
NppiSize | nKernelSize | Width and Height of the rectangular kernel. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference relative to the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Finalize()
For dispose
Declaration
protected void Finalize()
MaxError(NPPImage_8uC2, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_8uC2 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_8uC2, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_8uC2 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the MaxError operation. |
MaxErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for MaxError.
Declaration
public int MaxErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaximumRelativeError(NPPImage_8uC2, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_8uC2 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_8uC2, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_8uC2 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the MaximumRelativeError operation. |
MaximumRelativeErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for MaximumRelativeError.
Declaration
public int MaximumRelativeErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NV12ToYUV420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar NV12 to 3 channel 8-bit unsigned planar YUV420 color conversion.
Declaration
public static void NV12ToYUV420(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | src0 | Source image (Channel 0) |
NPPImage_8uC1 | src1 | Source image (Channel 1) |
NPPImage_8uC1 | dest0 | Destination image (Channel 0) |
NPPImage_8uC1 | dest1 | Destination image (Channel 1) |
NPPImage_8uC1 | dest2 | Destination image (Channel 2) |
NV21ToBGR(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)
2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed BGRA color conversion with constant alpha (0xFF).
Declaration
public static void NV21ToBGR(NPPImage_8uC1 srcY, NPPImage_8uC1 srcVU, NPPImage_8uC2 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcVU | Source image channel VU |
NPPImage_8uC2 | dest | Destination image |
NV21ToRGB(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)
2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed ARGB color conversion with constant alpha (0xFF).
Declaration
public static void NV21ToRGB(NPPImage_8uC1 srcY, NPPImage_8uC1 srcVU, NPPImage_8uC2 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcVU | Source image channel VU |
NPPImage_8uC2 | dest | Destination image |
Set(Byte[])
Set pixel values to nValue.
Declaration
public void Set(byte[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | nValue | Value to be set |
ToCudaPitchedDeviceVariable()
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public CudaPitchedDeviceVariable<uchar2> ToCudaPitchedDeviceVariable()
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<uchar2> |
YCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar YCbCr411 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.
Declaration
public static void YCbCr411(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr411ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar YCbCr411 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
Declaration
public static void YCbCr411ToYCbCr420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr411ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar YCbCr411 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.
Declaration
public static void YCbCr411ToYCbCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr411ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)
2 channel 8-bit unsigned planar YCbCr411 to 2 channel 8-bit unsigned packed YCbCr422 sampling format conversion.
Declaration
public static void YCbCr411ToYCbCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC2 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC2 | dest | Destination image |
YCbCr411ToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar YCbCr411 to 3 channel 8-bit unsigned planar YCrCb420 sampling format conversion.
Declaration
public static void YCbCr411ToYCrCb420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
Declaration
public static void YCbCr420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr420ToCbYCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)
2 channel 8-bit unsigned planar YCbCr420 to 2 channel 8-bit unsigned packed CbYCr422 sampling format conversion.
Declaration
public static void YCbCr420ToCbYCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC2 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC2 | dest | Destination image |
YCbCr420ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.
Declaration
public static void YCbCr420ToYCbCr411(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr420ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.
Declaration
public static void YCbCr420ToYCbCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr420ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)
2 channel 8-bit unsigned planar YCbCr420 to 2 channel 8-bit unsigned packed YCbCr422 sampling format conversion.
Declaration
public static void YCbCr420ToYCbCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC2 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC2 | dest | Destination image |
YCbCr420ToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCrCb420 sampling format conversion.
Declaration
public static void YCbCr420ToYCrCb420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | srcY | Source image channel Y |
NPPImage_8uC1 | srcCbCr | Source image channel CbCr |
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.
Declaration
public void YCbCr422(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr422ToBGR(NPPImage_8uC3)
2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned packed BGR color conversion. images.
Declaration
public void YCbCr422ToBGR(NPPImage_8uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | dest | Destination image |
YCbCr422ToBGR(NPPImage_8uC4, Byte)
2 channel 8-bit unsigned packed YCrCb422 to 4 channel 8-bit unsigned packed BGR color conversion with constant alpha.
Declaration
public void YCbCr422ToBGR(NPPImage_8uC4 dest, byte nAval)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC4 | dest | Destination image |
System.Byte | nAval | 8-bit unsigned alpha constant. |
YCbCr422ToCbYCr422(NPPImage_8uC2)
2 channel 8-bit unsigned packed YCbCr422 to 2 channel 8-bit unsigned packed CbYCr422 sampling format conversion. images.
Declaration
public void YCbCr422ToCbYCr422(NPPImage_8uC2 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | dest | Destination image |
YCbCr422ToRGB(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar RGB color conversion.
Declaration
public void YCbCr422ToRGB(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr422ToRGB(NPPImage_8uC3)
2 channel 8-bit unsigned YCbCr422 to 3 channel packed RGB color conversion. images.
Declaration
public void YCbCr422ToRGB(NPPImage_8uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | dest | estination image |
YCbCr422ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCbCr422 to 2 channel 8-bit unsigned planar YCbCr411 sampling format conversion.
Declaration
public void YCbCr422ToYCbCr411(NPPImage_8uC1 destY, NPPImage_8uC1 destCbCr)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | destY | Destination image channel 0 |
NPPImage_8uC1 | destCbCr | Destination image channel 1 |
YCbCr422ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.
Declaration
public void YCbCr422ToYCbCr411(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCbCr422 to 2 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
Declaration
public void YCbCr422ToYCbCr420(NPPImage_8uC1 destY, NPPImage_8uC1 destCbCr)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | destY | Destination image channel 0 |
NPPImage_8uC1 | destCbCr | Destination image channel 1 |
YCbCr422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
Declaration
public void YCbCr422ToYCbCr420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr422ToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar YCrCb420 sampling format conversion.
Declaration
public void YCbCr422ToYCrCb420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCbCr422ToYCrCb422(NPPImage_8uC2)
2 channel 8-bit unsigned packed YCbCr422 to 2 channel 8-bit unsigned packed YCrCb422 sampling format conversion. images.
Declaration
public void YCbCr422ToYCrCb422(NPPImage_8uC2 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | dest | Destination image |
YCrCb422ToRGB(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned planar RGB color conversion.
Declaration
public void YCrCb422ToRGB(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCrCb422ToRGB(NPPImage_8uC3)
2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned packed RGB color conversion. images.
Declaration
public void YCrCb422ToRGB(NPPImage_8uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | dest | Destination image |
YCrCb422ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.
Declaration
public void YCrCb422ToYCbCr411(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCrCb422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
Declaration
public void YCrCb422ToYCbCr420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YCrCb422ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)
2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.
Declaration
public void YCrCb422ToYCbCr422(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC1 | dest0 | Destination image channel 0 |
NPPImage_8uC1 | dest1 | Destination image channel 1 |
NPPImage_8uC1 | dest2 | Destination image channel 2 |
YUV422ToRGB(NPPImage_8uC3)
2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned packed BGR_709HDTV color conversion. images.
Declaration
public void YUV422ToRGB(NPPImage_8uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | dest | Destination image |
Operators
| Improve this Doc View SourceImplicit(CudaPitchedDeviceVariable<uchar2> to NPPImage_8uC2)
Converts a CudaPitchedDeviceVariable to a NPPImage
Declaration
public static implicit operator NPPImage_8uC2(CudaPitchedDeviceVariable<uchar2> img)
Parameters
Type | Name | Description |
---|---|---|
CudaPitchedDeviceVariable<uchar2> | img | CudaPitchedDeviceVariable |
Returns
Type | Description |
---|---|
NPPImage_8uC2 | NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image |
Implicit(NPPImage_8uC2 to CudaPitchedDeviceVariable<uchar2>)
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public static implicit operator CudaPitchedDeviceVariable<uchar2>(NPPImage_8uC2 img)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC2 | img | NPPImage |
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<uchar2> | CudaPitchedDeviceVariable with the same device pointer and size of NPPImage without ROI information |