Library/ManagedCuda/NPP/NPPImage_8uC3.cs
/// <summary>
/// 3 channel 8-bit unsigned planar YCbCr411 to 2 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
/// </summary>
/// <param name="src0">Source image channel 0</param>
/// <param name="src1">Source image channel 1</param>
/// <param name="src2">Source image channel 2</param>
/// <param name="destY">Destination image channel Y</param>  
/// <param name="destCbCr">Destination image channel CbCr</param> 
3 channel 8-bit unsigned planar YCbCr411 to 2 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
3 channel 8 - bit unsigned planar YCbCr411 to 2 channel 8 - bit unsigned planar YCbCr420 sampling format conversion .
public static void YCbCr411ToYCbCr420(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 destY, NPPImage_8uC1 destCbCr)
		{
			CUdeviceptr[] arraySrc = new CUdeviceptr[] { src0.DevicePointerRoi, src1.DevicePointerRoi, src2.DevicePointerRoi };
			int[] arrayPitchSrc = new int[] { src0.Pitch, src1.Pitch, src2.Pitch };
			NppStatus status = NPPNativeMethods.NPPi.YCbCrAndACrCbAndOther.nppiYCbCr411ToYCbCr420_8u_P3P2R(arraySrc, arrayPitchSrc, destY.DevicePointerRoi, destY.Pitch, destCbCr.DevicePointerRoi, destCbCr.Pitch, src0.SizeRoi);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiYCbCr411ToYCbCr420_8u_P3P2R", status));
			NPPException.CheckNppStatus(status, null);
		}
public static void YCbCr411ToYCbCr420 ( NPPImage_8uC1 src0 , NPPImage_8uC1 src1 , NPPImage_8uC1 src2 , NPPImage_8uC1 destY , NPPImage_8uC1 destCbCr ) { CUdeviceptr [ ] arraySrc = new CUdeviceptr [ ] { src0 . DevicePointerRoi , src1 . DevicePointerRoi , src2 . DevicePointerRoi } ; int [ ] arrayPitchSrc = new int [ ] { src0 . Pitch , src1 . Pitch , src2 . Pitch } ; NppStatus status = NPPNativeMethods . NPPi . YCbCrAndACrCbAndOther . nppiYCbCr411ToYCbCr420_8u_P3P2R ( arraySrc , arrayPitchSrc , destY . DevicePointerRoi , destY . Pitch , destCbCr . DevicePointerRoi , destCbCr . Pitch , src0 . SizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
3 channel 8-bit unsigned planar YCbCr411 to 2 channel 8-bit unsigned planar YCbCr420 sampling format conversion.
3 channel 8 - bit unsigned planar YCbCr411 to 2 channel 8 - bit unsigned planar YCbCr420 sampling format conversion .
src0
NPPImage_8uC1
Source image channel 0
Source image channel 0
src1
NPPImage_8uC1
Source image channel 1
Source image channel 1
src2
NPPImage_8uC1
Source image channel 2
Source image channel 2
destY
NPPImage_8uC1
Destination image channel Y
Destination image channel Y
destCbCr
NPPImage_8uC1
Destination image channel CbCr
Destination image channel CbCr