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

YCbCr420ToBGR_709HDTV() public static method

3 channel 8-bit unsigned planar YCbCr420 to 4 channel 8-bit unsigned packed BGR_709HDTV color conversion with constant alpha.
public static YCbCr420ToBGR_709HDTV ( NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC4 dest, byte nAval ) : void
src0 NPPImage_8uC1 Source image channel 0
src1 NPPImage_8uC1 Source image channel 1
src2 NPPImage_8uC1 Source image channel 2
dest NPPImage_8uC4 Destination image
nAval byte 8-bit unsigned alpha constant.
return void
        public static void YCbCr420ToBGR_709HDTV(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC4 dest, byte nAval)
        {
            CUdeviceptr[] arraySrc = new CUdeviceptr[] { src0.DevicePointerRoi, src1.DevicePointerRoi, src2.DevicePointerRoi };
            int[] arrayPitch = new int[] { src0.Pitch, src1.Pitch, src2.Pitch };
            NppStatus status = NPPNativeMethods.NPPi.YCbCrToBGR.nppiYCbCr420ToBGR_709HDTV_8u_P3C4R(arraySrc, arrayPitch, dest.DevicePointerRoi, dest.Pitch, src0.SizeRoi, nAval);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiYCbCr420ToBGR_709HDTV_8u_P3C4R", status));
            NPPException.CheckNppStatus(status, null);
        }
NPPImage_8uC3