Library/ManagedCuda/NPP/NPPImage_8uC3.cs
/// <summary>
/// 3 channel 8-bit unsigned packed BGR to 3 channel 8-bit unsigned planar YCbCr422 color conversion.
/// </summary>
/// <param name="src">Source image</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 packed BGR to 3 channel 8-bit unsigned planar YCbCr422 color conversion.
3 channel 8 - bit unsigned packed BGR to 3 channel 8 - bit unsigned planar YCbCr422 color conversion .
public void BGRToYCbCr444_JPEG(NPPImage_8uC3 src, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
        {
            CUdeviceptr[] dst = new CUdeviceptr[] { dest0.DevicePointerRoi, dest1.DevicePointerRoi, dest2.DevicePointerRoi };
            status = NPPNativeMethods.NPPi.RGBToYCbCr_JPEG.nppiBGRToYCbCr444_JPEG_8u_C3P3R(src.DevicePointerRoi, src.Pitch, dst, dest0.Pitch, dest0.SizeRoi);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiBGRToYCbCr444_JPEG_8u_C3P3R", status));
            NPPException.CheckNppStatus(status, this);
        }
public void BGRToYCbCr444_JPEG ( NPPImage_8uC3 src , NPPImage_8uC1 dest0 , NPPImage_8uC1 dest1 , NPPImage_8uC1 dest2 ) { CUdeviceptr [ ] dst = new CUdeviceptr [ ] { dest0 . DevicePointerRoi , dest1 . DevicePointerRoi , dest2 . DevicePointerRoi } ; status = NPPNativeMethods . NPPi . RGBToYCbCr_JPEG . nppiBGRToYCbCr444_JPEG_8u_C3P3R ( src . DevicePointerRoi , src . Pitch , dst , dest0 . Pitch , dest0 . SizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
3 channel 8-bit unsigned packed BGR to 3 channel 8-bit unsigned planar YCbCr422 color conversion.
3 channel 8 - bit unsigned packed BGR to 3 channel 8 - bit unsigned planar YCbCr422 color conversion .
src
NPPImage_8uC3
None
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 )