Library/ManagedCuda/NPP/NPPImage_8uC4.cs
/// <summary>
/// 4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCrCb420 color conversion.
/// </summary>
/// <param name="dest0">Destination image channel 0</param>
/// <param name="dest1">Destination image channel 1</param>
/// <param name="dest2">Destination image channel 2</param>
4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCrCb420 color conversion.
4 channel 8 - bit unsigned packed BGR with alpha to 3 channel 8 - bit unsigned planar YCrCb420 color conversion .
public void BGRToYCrCb420(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.BGRToYCrCb.nppiBGRToYCrCb420_8u_AC4P3R(_devPtrRoi, _pitch, arrayDest, arrayPitch, _sizeRoi);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiBGRToYCrCb420_8u_AC4P3R", status));
			NPPException.CheckNppStatus(status, null);
		}
public void BGRToYCrCb420 ( 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 . BGRToYCrCb . nppiBGRToYCrCb420_8u_AC4P3R ( _devPtrRoi , _pitch , arrayDest , arrayPitch , _sizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCrCb420 color conversion.
4 channel 8 - bit unsigned packed BGR with alpha to 3 channel 8 - bit unsigned planar YCrCb420 color conversion .
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