ManagedCuda.NPP.NPPImage_8uC3.RGBToYUV420 C# (CSharp) Method

RGBToYUV420() public method

3 channel 8-bit unsigned packed RGB to 3 channel 8-bit unsigned planar YUV420 color conversion.
public RGBToYUV420 ( NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2 ) : void
dest0 NPPImage_8uC1 Destination image channel 0
dest1 NPPImage_8uC1 Destination image channel 1
dest2 NPPImage_8uC1 Destination image channel 2
return void
        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);
        }

Same methods

NPPImage_8uC3::RGBToYUV420 ( NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2 ) : void
NPPImage_8uC3