Library/ManagedCuda/NPP/NPPImage_8uC2.cs
/// <summary>
/// 2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
/// </summary>
/// <param name="srcY">Source image channel Y</param>
/// <param name="srcCbCr">Source image channel CbCr</param>
/// <param name="dest0">Destination image channel 0</param>
/// <param name="dest1">Destination image channel 1</param>
/// <param name="dest2">Destination image channel 2</param>
2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
2 channel 8 - bit unsigned planar YCbCr420 to 3 channel 8 - bit unsigned planar YCbCr420 sampling format conversion .
public static void YCbCr420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
		{
			CUdeviceptr[] arrayDest = new CUdeviceptr[] { dest0.DevicePointerRoi, dest1.DevicePointerRoi, dest2.DevicePointerRoi };
			int[] arrayPitch = new int[] { dest0.Pitch, dest1.Pitch, dest2.Pitch };
			NppStatus status = NPPNativeMethods.NPPi.YCbCrAndACrCbAndOther.nppiYCbCr420_8u_P2P3R(srcY.DevicePointerRoi, srcY.Pitch, srcCbCr.DevicePointerRoi, srcCbCr.Pitch, arrayDest, arrayPitch, srcY.SizeRoi);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiYCbCr420_8u_P2P3R", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void YCbCr420 ( NPPImage_8uC1 srcY , NPPImage_8uC1 srcCbCr , NPPImage_8uC1 dest0 , NPPImage_8uC1 dest1 , NPPImage_8uC1 dest2 ) { CUdeviceptr [ ] arrayDest = new CUdeviceptr [ ] { dest0 . DevicePointerRoi , dest1 . DevicePointerRoi , dest2 . DevicePointerRoi } ; int [ ] arrayPitch = new int [ ] { dest0 . Pitch , dest1 . Pitch , dest2 . Pitch } ; NppStatus status = NPPNativeMethods . NPPi . YCbCrAndACrCbAndOther . nppiYCbCr420_8u_P2P3R ( srcY . DevicePointerRoi , srcY . Pitch , srcCbCr . DevicePointerRoi , srcCbCr . Pitch , arrayDest , arrayPitch , srcY . SizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
2 channel 8 - bit unsigned planar YCbCr420 to 3 channel 8 - bit unsigned planar YCbCr420 sampling format conversion .
srcY
NPPImage_8uC1
Source image channel Y
Source image channel Y
srcCbCr
NPPImage_8uC1
Source image channel CbCr
Source image channel CbCr
dest0
NPPImage_8uC1
Destination image channel 0
Destination image channel 0
dest1
NPPImage_8uC1
Destination image channel 1
Destination image channel 1
dest2
NPPImage_8uC1
Destination image channel 2
Destination image channel 2