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

YCbCr420ToYCbCr411() public static method

3 channel 8-bit unsigned planar YCbCr:420 to YCbCr:411 resampling.
public static YCbCr420ToYCbCr411 ( NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 destY, NPPImage_8uC1 destCbCr ) : void
src0 NPPImage_8uC1 Source image channel 0
src1 NPPImage_8uC1 Source image channel 1
src2 NPPImage_8uC1 Source image channel 2
destY NPPImage_8uC1 Destination image channel 0
destCbCr NPPImage_8uC1 Destination image channel 1
return void
        public static void YCbCr420ToYCbCr411(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[] arraySrcStep = new int[] { src0.Pitch, src1.Pitch, src2.Pitch };
            NppStatus status = NPPNativeMethods.NPPi.SamplePatternConversion.nppiYCbCr420ToYCbCr411_8u_P3P2R(arraySrc, arraySrcStep, destY.DevicePointerRoi, destY.Pitch, destCbCr.DevicePointerRoi, destCbCr.Pitch, destY.SizeRoi);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiYCbCr420ToYCbCr411_8u_P3P2R", status));
            NPPException.CheckNppStatus(status, null);
        }

Same methods

NPPImage_8uC3::YCbCr420ToYCbCr411 ( NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC3 dest ) : void
NPPImage_8uC3