NVIDIA Performance Primitives (NPP)  Version 9.1
Functions

Functions for swapping and duplicating channels in multiple channel images. More...

Functions

NppStatus nppiSwapChannels_8u_C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 8-bit unsigned integer source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_8u_C3IR (Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 8-bit unsigned integer in place image. More...
 
NppStatus nppiSwapChannels_8u_C4C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 8-bit unsigned integer source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_8u_C4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 8-bit unsigned integer source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_8u_C4IR (Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 8-bit unsigned integer in place image. More...
 
NppStatus nppiSwapChannels_8u_C3C4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4], const Npp8u nValue)
 3 channel 8-bit unsigned integer source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 8-bit unsigned integer source image to 4 channel destination image with destination alpha channel unaffected. More...
 
NppStatus nppiSwapChannels_16u_C3R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 16-bit unsigned integer source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_16u_C3IR (Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 16-bit unsigned integer in place image. More...
 
NppStatus nppiSwapChannels_16u_C4C3R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 16-bit unsigned integer source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_16u_C4R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 16-bit unsigned integer source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_16u_C4IR (Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 16-bit unsigned integer in place image. More...
 
NppStatus nppiSwapChannels_16u_C3C4R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4], const Npp16u nValue)
 3 channel 16-bit unsigned integer source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_16u_AC4R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 16-bit unsigned integer source image to 4 channel destination image with destination alpha channel unaffected. More...
 
NppStatus nppiSwapChannels_16s_C3R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 16-bit signed integer source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_16s_C3IR (Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 16-bit signed integer in place image. More...
 
NppStatus nppiSwapChannels_16s_C4C3R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 16-bit signed integer source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_16s_C4R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 16-bit signed integer source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_16s_C4IR (Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 16-bit signed integer in place image. More...
 
NppStatus nppiSwapChannels_16s_C3C4R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4], const Npp16s nValue)
 3 channel 16-bit signed integer source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_16s_AC4R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 16-bit signed integer source image to 4 channel destination image with destination alpha channel unaffected. More...
 
NppStatus nppiSwapChannels_32s_C3R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 32-bit signed integer source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_32s_C3IR (Npp32s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 32-bit signed integer in place image. More...
 
NppStatus nppiSwapChannels_32s_C4C3R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 32-bit signed integer source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_32s_C4R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 32-bit signed integer source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_32s_C4IR (Npp32s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 32-bit signed integer in place image. More...
 
NppStatus nppiSwapChannels_32s_C3C4R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4], const Npp32s nValue)
 3 channel 32-bit signed integer source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_32s_AC4R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 32-bit signed integer source image to 4 channel destination image with destination alpha channel unaffected. More...
 
NppStatus nppiSwapChannels_32f_C3R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 32-bit floating point source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_32f_C3IR (Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 3 channel 32-bit floating point in place image. More...
 
NppStatus nppiSwapChannels_32f_C4C3R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 32-bit floating point source image to 3 channel destination image. More...
 
NppStatus nppiSwapChannels_32f_C4R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 32-bit floating point source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_32f_C4IR (Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 32-bit floating point in place image. More...
 
NppStatus nppiSwapChannels_32f_C3C4R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[4], const Npp32f nValue)
 3 channel 32-bit floating point source image to 4 channel destination image. More...
 
NppStatus nppiSwapChannels_32f_AC4R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const int aDstOrder[3])
 4 channel 32-bit floating point source image to 4 channel destination image with destination alpha channel unaffected. More...
 

Detailed Description

Functions for swapping and duplicating channels in multiple channel images.

The methods support arbitrary permutations of the original channels, including replication and setting one or more channels to a constant value.

Function Documentation

NppStatus nppiSwapChannels_16s_AC4R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 16-bit signed integer source image to 4 channel destination image with destination alpha channel unaffected.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to BGRA channel order. In the AC4R case, the alpha channel is always assumed to be channel 3.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16s_C3C4R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4],
const Npp16s  nValue 
)

3 channel 16-bit signed integer source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [3,2,1,0] converts this to VBGR channel order.
nValue(V) Single channel constant value that can be replicated in one or more of the 4 destination channels. nValue is either written or not written to a particular channel depending on the aDstOrder entry for that destination channel. An aDstOrder value of 3 will output nValue to that channel, an aDstOrder value greater than 3 will leave that particular destination channel value unmodified.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16s_C3IR ( Npp16s pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 16-bit signed integer in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16s_C3R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 16-bit signed integer source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16s_C4C3R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 16-bit signed integer source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to a 3 channel BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16s_C4IR ( Npp16s pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 16-bit signed integer in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16s_C4R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 16-bit signed integer source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16u_AC4R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 16-bit unsigned integer source image to 4 channel destination image with destination alpha channel unaffected.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to BGRA channel order. In the AC4R case, the alpha channel is always assumed to be channel 3.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16u_C3C4R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4],
const Npp16u  nValue 
)

3 channel 16-bit unsigned integer source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [3,2,1,0] converts this to VBGR channel order.
nValue(V) Single channel constant value that can be replicated in one or more of the 4 destination channels. nValue is either written or not written to a particular channel depending on the aDstOrder entry for that destination channel. An aDstOrder value of 3 will output nValue to that channel, an aDstOrder value greater than 3 will leave that particular destination channel value unmodified.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16u_C3IR ( Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 16-bit unsigned integer in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16u_C3R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 16-bit unsigned integer source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16u_C4C3R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 16-bit unsigned integer source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to a 3 channel BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16u_C4IR ( Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 16-bit unsigned integer in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_16u_C4R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 16-bit unsigned integer source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32f_AC4R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 32-bit floating point source image to 4 channel destination image with destination alpha channel unaffected.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to BGRA channel order. In the AC4R case, the alpha channel is always assumed to be channel 3.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32f_C3C4R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4],
const Npp32f  nValue 
)

3 channel 32-bit floating point source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [3,2,1,0] converts this to VBGR channel order.
nValue(V) Single channel constant value that can be replicated in one or more of the 4 destination channels. nValue is either written or not written to a particular channel depending on the aDstOrder entry for that destination channel. An aDstOrder value of 3 will output nValue to that channel, an aDstOrder value greater than 3 will leave that particular destination channel value unmodified.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32f_C3IR ( Npp32f pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 32-bit floating point in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIoSizeROI Region-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32f_C3R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 32-bit floating point source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32f_C4C3R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 32-bit floating point source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to a 3 channel BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32f_C4IR ( Npp32f pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 32-bit floating point in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32f_C4R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 32-bit floating point source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32s_AC4R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 32-bit signed integer source image to 4 channel destination image with destination alpha channel unaffected.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to BGRA channel order. In the AC4R case, the alpha channel is always assumed to be channel 3.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32s_C3C4R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4],
const Npp32s  nValue 
)

3 channel 32-bit signed integer source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [3,2,1,0] converts this to VBGR channel order.
nValue(V) Single channel constant value that can be replicated in one or more of the 4 destination channels. nValue is either written or not written to a particular channel depending on the aDstOrder entry for that destination channel. An aDstOrder value of 3 will output nValue to that channel, an aDstOrder value greater than 3 will leave that particular destination channel value unmodified.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32s_C3IR ( Npp32s pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 32-bit signed integer in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32s_C3R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 32-bit signed integer source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32s_C4C3R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 32-bit signed integer source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to a 3 channel BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32s_C4IR ( Npp32s pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 32-bit signed integer in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_32s_C4R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 32-bit signed integer source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 8-bit unsigned integer source image to 4 channel destination image with destination alpha channel unaffected.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [3,2,1,0] converts this to VBGR channel order. of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to BGRA channel order. In the AC4R case, the alpha channel is always assumed to be channel 3.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_8u_C3C4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4],
const Npp8u  nValue 
)

3 channel 8-bit unsigned integer source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [3,2,1,0] converts this to VBGR channel order.
nValue(V) Single channel constant value that can be replicated in one or more of the 4 destination channels. nValue is either written or not written to a particular channel depending on the aDstOrder entry for that destination channel. An aDstOrder value of 3 will output nValue to that channel, an aDstOrder value greater than 3 will leave that particular destination channel value unmodified.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_8u_C3IR ( Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 8-bit unsigned integer in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

3 channel 8-bit unsigned integer source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_8u_C4C3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[3] 
)

4 channel 8-bit unsigned integer source image to 3 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to a 3 channel BGR channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_8u_C4IR ( Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 8-bit unsigned integer in place image.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepIn-Place-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSwapChannels_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 8-bit unsigned integer source image to 4 channel destination image.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
aDstOrderHost memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an ARGB image, aDstOrder = [3,2,1,0] converts this to BGRA channel order.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Copyright © 2009-2017 NVIDIA Corporation