Library/ManagedCuda/NPP/NPPImage_8uC3.cs
/// <summary>
/// 3 channel 8-bit unsigned planar BGR to 3 channel 8-bit unsigned planar YCbCr422 color 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="dest0">Destination image (Channel 0)</param>
/// <param name="dest1">Destination image (Channel 1)</param>
/// <param name="dest2">Destination image (Channel 2)</param>
3 channel 8-bit unsigned planar BGR to 3 channel 8-bit unsigned planar YCbCr422 color conversion.
3 channel 8 - bit unsigned planar BGR to 3 channel 8 - bit unsigned planar YCbCr422 color conversion .
public static void BGRToYCbCr422_JPEG(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
        {
            CUdeviceptr[] src = new CUdeviceptr[] { src0.DevicePointer, src1.DevicePointer, src2.DevicePointer };
            CUdeviceptr[] dst = new CUdeviceptr[] { dest0.DevicePointerRoi, dest1.DevicePointerRoi, dest2.DevicePointerRoi };
            int[] dstPitch = new int[] { dest0.Pitch, dest1.Pitch, dest2.Pitch };
            NppStatus status = NPPNativeMethods.NPPi.RGBToYCbCr_JPEG.nppiBGRToYCbCr422_JPEG_8u_P3R(src, src0.Pitch, dst, dstPitch, dest0.SizeRoi);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiBGRToYCbCr422_JPEG_8u_P3R", status));
            NPPException.CheckNppStatus(status, null);
        }
public static void BGRToYCbCr422_JPEG ( NPPImage_8uC1 src0 , NPPImage_8uC1 src1 , NPPImage_8uC1 src2 , NPPImage_8uC1 dest0 , NPPImage_8uC1 dest1 , NPPImage_8uC1 dest2 ) { CUdeviceptr [ ] src = new CUdeviceptr [ ] { src0 . DevicePointer , src1 . DevicePointer , src2 . DevicePointer } ; CUdeviceptr [ ] dst = new CUdeviceptr [ ] { dest0 . DevicePointerRoi , dest1 . DevicePointerRoi , dest2 . DevicePointerRoi } ; int [ ] dstPitch = new int [ ] { dest0 . Pitch , dest1 . Pitch , dest2 . Pitch } ; NppStatus status = NPPNativeMethods . NPPi . RGBToYCbCr_JPEG . nppiBGRToYCbCr422_JPEG_8u_P3R ( src , src0 . Pitch , dst , dstPitch , dest0 . SizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
3 channel 8-bit unsigned planar BGR to 3 channel 8-bit unsigned planar YCbCr422 color conversion.
3 channel 8 - bit unsigned planar BGR to 3 channel 8 - bit unsigned planar YCbCr422 color 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 )
dest0
NPPImage_8uC1
Destination image (Channel 0)
Destination image ( Channel 0 )
dest1
NPPImage_8uC1
Destination image (Channel 1)
Destination image ( Channel 1 )
dest2
NPPImage_8uC1
Destination image (Channel 2)
Destination image ( Channel 2 )