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