public void RGBToYUV420(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.RGBToYUV420.nppiRGBToYUV420_8u_C3P3R(_devPtrRoi, _pitch, arrayDest, arrayPitch, _sizeRoi);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiRGBToYUV420_8u_C3P3R", status));
NPPException.CheckNppStatus(status, null);
}