Library/ManagedCuda/NPP/NPPImage_8uC2.cs
/// <summary>
/// 2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed BGRA color conversion with constant alpha (0xFF).
/// </summary>
/// <param name="srcY">Source image channel Y</param>
/// <param name="srcVU">Source image channel VU</param>
/// <param name="dest">Destination image</param>
2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed BGRA color conversion with constant alpha (0xFF).
2 channel 8 - bit unsigned planar NV21 to 4 channel 8 - bit unsigned packed BGRA color conversion with constant alpha ( 0xFF ) .
public static void NV21ToBGR(NPPImage_8uC1 srcY, NPPImage_8uC1 srcVU, NPPImage_8uC2 dest)
		{
			CUdeviceptr[] devptrs = new CUdeviceptr[] { srcY.DevicePointer, srcVU.DevicePointer };
			NppStatus status = NPPNativeMethods.NPPi.NV21ToBGR.nppiNV21ToBGR_8u_P2C4R(devptrs, srcY.Pitch, dest.DevicePointerRoi, dest.Pitch, srcY.SizeRoi);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiNV21ToBGR_8u_P2C4R", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void NV21ToBGR ( NPPImage_8uC1 srcY , NPPImage_8uC1 srcVU , NPPImage_8uC2 dest ) { CUdeviceptr [ ] devptrs = new CUdeviceptr [ ] { srcY . DevicePointer , srcVU . DevicePointer } ; NppStatus status = NPPNativeMethods . NPPi . NV21ToBGR . nppiNV21ToBGR_8u_P2C4R ( devptrs , srcY . Pitch , dest . DevicePointerRoi , dest . Pitch , srcY . SizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed BGRA color conversion with constant alpha (0xFF).
2 channel 8 - bit unsigned planar NV21 to 4 channel 8 - bit unsigned packed BGRA color conversion with constant alpha ( 0xFF ) .
srcY
NPPImage_8uC1
Source image channel Y
Source image channel Y
srcVU
NPPImage_8uC1
Source image channel VU
Source image channel VU
dest
NPPImage_8uC2
None