NPP Signal Processing


Memory Allocation

Signal-allocator methods for allocating 1D arrays of data in device memory.

All allocators have size parameters to specify the size of the signal (1D array) being allocated.

The allocator methods return a pointer to the newly allocated memory of appropriate type. If device-memory allocation is not possible due to resource constaints the allocators return 0 (i.e. NULL pointer).

All signal allocators allocate memory aligned such that it is beneficial to the performance of the majority of the signal-processing primitives. It is no mandatory however to use these allocators. Any valid CUDA device-memory pointers can be passed to NPP primitives.

Npp8unppsMalloc_8u (int nSize)
 8-bit unsigned signal allocator.
Npp16unppsMalloc_16u (int nSize)
 16-bit unsigned signal allocator.
Npp16snppsMalloc_16s (int nSize)
 16-bit signal allocator.
Npp16scnppsMalloc_16sc (int nSize)
 16-bit complex-value signal allocator.
Npp32unppsMalloc_32u (int nSize)
 32-bit unsigned signal allocator.
Npp32snppsMalloc_32s (int nSize)
 32-bit integer signal allocator.
Npp32scnppsMalloc_32sc (int nSize)
 32-bit complex integer signal allocator.
Npp32fnppsMalloc_32f (int nSize)
 32-bit float signal allocator.
Npp32fcnppsMalloc_32fc (int nSize)
 32-bit complex float signal allocator.
Npp64snppsMalloc_64s (int nSize)
 64-bit long integer signal allocator.
Npp64scnppsMalloc_64sc (int nSize)
 64-bit complex long integer signal allocator.
Npp64fnppsMalloc_64f (int nSize)
 64-bit float (double) signal allocator.
Npp64fcnppsMalloc_64fc (int nSize)
 64-bit complex complex signal allocator.
void nppsFree (void *pValues)
 Free method for any 2D allocated memory.

Set

Set methods for 1D vectors of various types.

The copy methods operate on vector data given as a pointer to the underlying data-type (e.g. 8-bit vectors would be passed as pointers to Npp8u type) and length of the vectors, i.e. the number of items.

NppStatus nppsSet_8u (Npp8u nValue, Npp8u *pDst, int nLength)
 8-bit unsigned char, vector set method.
NppStatus nppsSet_16s (Npp16s nValue, Npp16s *pDst, int nLength)
 16-bit integer, vector set method.
NppStatus nppsSet_16sc (Npp16sc nValue, Npp16sc *pDst, int nLength)
 16-bit integer complex, vector set method.
NppStatus nppsSet_32s (Npp32s nValue, Npp32s *pDst, int nLength)
 32-bit integer, vector set method.
NppStatus nppsSet_32sc (Npp32sc nValue, Npp32sc *pDst, int nLength)
 32-bit integer complex, vector set method.
NppStatus nppsSet_32f (Npp32f nValue, Npp32f *pDst, int nLength)
 32-bit float, vector set method.
NppStatus nppsSet_32fc (Npp32fc nValue, Npp32fc *pDst, int nLength)
 32-bit float complex, vector set method.
NppStatus nppsSet_64s (Npp64s nValue, Npp64s *pDst, int nLength)
 64-bit long long integer, vector set method.
NppStatus nppsSet_64sc (Npp64sc nValue, Npp64sc *pDst, int nLength)
 64-bit long long integer complex, vector set method.
NppStatus nppsSet_64f (Npp64f nValue, Npp64f *pDst, int nLength)
 64-bit double, vector set method.
NppStatus nppsSet_64fc (Npp64fc nValue, Npp64fc *pDst, int nLength)
 64-bit double complex, vector set method.

Zero

Set signals to zero.

NppStatus nppsZero_8u (Npp8u *pDst, int nLength)
 8-bit unsigned char, vector zero method.
NppStatus nppsZero_16s (Npp16s *pDst, int nLength)
 16-bit integer, vector zero method.
NppStatus nppsZero_16sc (Npp16sc *pDst, int nLength)
 16-bit integer complex, vector zero method.
NppStatus nppsZero_32s (Npp32s *pDst, int nLength)
 32-bit integer, vector zero method.
NppStatus nppsZero_32sc (Npp32sc *pDst, int nLength)
 32-bit integer complex, vector zero method.
NppStatus nppsZero_32f (Npp32f *pDst, int nLength)
 32-bit float, vector zero method.
NppStatus nppsZero_32fc (Npp32fc *pDst, int nLength)
 32-bit float complex, vector zero method.
NppStatus nppsZero_64s (Npp64s *pDst, int nLength)
 64-bit long long integer, vector zero method.
NppStatus nppsZero_64sc (Npp64sc *pDst, int nLength)
 64-bit long long integer complex, vector zero method.
NppStatus nppsZero_64f (Npp64f *pDst, int nLength)
 64-bit double, vector zero method.
NppStatus nppsZero_64fc (Npp64fc *pDst, int nLength)
 64-bit double complex, vector zero method.

Copy

Copy methods for various type signals.

Copy methods operate on signal data given as a pointer to the underlying data-type (e.g. 8-bit vectors would be passed as pointers to Npp8u type) and length of the vectors, i.e. the number of items.

NppStatus nppsCopy_8u (const Npp8u *pSrc, Npp8u *pDst, int len)
 8-bit unsigned char, vector copy method
NppStatus nppsCopy_16s (const Npp16s *pSrc, Npp16s *pDst, int len)
 16-bit signed short, vector copy method.
NppStatus nppsCopy_32s (const Npp32s *pSrc, Npp32s *pDst, int nLength)
 32-bit signed integer, vector copy method.
NppStatus nppsCopy_32f (const Npp32f *pSrc, Npp32f *pDst, int len)
 32-bit float, vector copy method.
NppStatus nppsCopy_64s (const Npp64s *pSrc, Npp64s *pDst, int len)
 64-bit signed integer, vector copy method.
NppStatus nppsCopy_16sc (const Npp16sc *pSrc, Npp16sc *pDst, int len)
 16-bit complex short, vector copy method.
NppStatus nppsCopy_32sc (const Npp32sc *pSrc, Npp32sc *pDst, int len)
 32-bit complex signed integer, vector copy method.
NppStatus nppsCopy_32fc (const Npp32fc *pSrc, Npp32fc *pDst, int len)
 32-bit complex float, vector copy method.
NppStatus nppsCopy_64sc (const Npp64sc *pSrc, Npp64sc *pDst, int len)
 64-bit complex signed integer, vector copy method.
NppStatus nppsCopy_64fc (const Npp64fc *pSrc, Npp64fc *pDst, int len)
 64-bit complex double, vector copy method.

Statistical Functions

Functions that provide global signal statistics like: average, standard deviation, minimum, etc.

NppStatus nppsReductionGetBufferSize_8u (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 8u reductions.
NppStatus nppsReductionGetBufferSize_16s (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 16s reductions.
NppStatus nppsReductionGetBufferSize_16u (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 16u reductions.
NppStatus nppsReductionGetBufferSize_16s_Sfs (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 16s reductions with integer-results scaling.
NppStatus nppsReductionGetBufferSize_16sc (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 16sc reductions.
NppStatus nppsReductionGetBufferSize_16sc_Sfs (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 16sc reductions with integer-results scaling.
NppStatus nppsReductionGetBufferSize_32s (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 32s reductions.
NppStatus nppsReductionGetBufferSize_32u (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 32u reductions.
NppStatus nppsReductionGetBufferSize_32s_Sfs (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 32s reductions with integer-results scaling.
NppStatus nppsReductionGetBufferSize_32sc (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 32sc reductions.
NppStatus nppsReductionGetBufferSize_32f (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 32f reductions.
NppStatus nppsReductionGetBufferSize_32fc (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 32fc reductions.
NppStatus nppsReductionGetBufferSize_64s (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 64s reductions.
NppStatus nppsReductionGetBufferSize_64f (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 64f reductions.
NppStatus nppsReductionGetBufferSize_64fc (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for 64fc reductions.
NppStatus nppsSum_32f (const Npp32f *pSrc, int nLength, Npp32f *pSum, NppHintAlgorithm eHint, Npp8u *pDeviceBuffer)
 32-bit float vector sum method
NppStatus nppsSum_32fc (const Npp32fc *pSrc, int nLength, Npp32fc *pSum, NppHintAlgorithm eHint, Npp8u *pDeviceBuffer)
 32-bit float complex vector sum method
NppStatus nppsSum_64f (const Npp64f *pSrc, int nLength, Npp64f *pSum, Npp8u *pDeviceBuffer)
 64-bit double vector sum method
NppStatus nppsSum_64fc (const Npp64fc *pSrc, int nLength, Npp64fc *pSum, Npp8u *pDeviceBuffer)
 64-bit double complex vector sum method
NppStatus nppsSum_16s_Sfs (const Npp16s *pSrc, int nLength, Npp16s *pSum, int nScaleFactor, Npp8u *pDeviceBuffer)
 16-bit short vector sum with integer scaling method
NppStatus nppsSum_32s_Sfs (const Npp32s *pSrc, int nLength, Npp32s *pSum, int nScaleFactor, Npp8u *pDeviceBuffer)
 32-bit integer vector sum with integer scaling method
NppStatus nppsSum_16sc_Sfs (const Npp16sc *pSrc, int nLength, Npp16sc *pSum, int nScaleFactor, Npp8u *pDeviceBuffer)
 16-bit short complex vector sum with integer scaling method
NppStatus nppsSum_16sc32sc_Sfs (const Npp16sc *pSrc, int nLength, Npp32sc *pSum, int nScaleFactor, Npp8u *pDeviceBuffer)
 16-bit short complex vector sum (32bit int complex) with integer scaling method
NppStatus nppsSum_16s32s_Sfs (const Npp16s *pSrc, int nLength, Npp32s *pSum, int nScaleFactor, Npp8u *pDeviceBuffer)
 16-bit integer vector sum (32bit) with integer scaling method
NppStatus nppsMax_16s (const Npp16s *pSrc, int nLength, Npp16s *pMax, Npp8u *pDeviceBuffer)
 16-bit integer vector max method
NppStatus nppsMax_32s (const Npp32s *pSrc, int nLength, Npp32s *pMax, Npp8u *pDeviceBuffer)
 32-bit integer vector max method
NppStatus nppsMax_32f (const Npp32f *pSrc, int nLength, Npp32f *pMax, Npp8u *pDeviceBuffer)
 32-bit float vector max method
NppStatus nppsMax_64f (const Npp64f *pSrc, int nLength, Npp64f *pMax, Npp8u *pDeviceBuffer)
 64-bit float vector max method
NppStatus nppsMin_16s (const Npp16s *pSrc, int nLength, Npp16s *pMin, Npp8u *pDeviceBuffer)
 16-bit integer vector min method
NppStatus nppsMin_32s (const Npp32s *pSrc, int nLength, Npp32s *pMin, Npp8u *pDeviceBuffer)
 32-bit integer vector min method
NppStatus nppsMin_32f (const Npp32f *pSrc, int nLength, Npp32f *pMin, Npp8u *pDeviceBuffer)
 32-bit integer vector min method
NppStatus nppsMin_64f (const Npp64f *pSrc, int nLength, Npp64f *pMin, Npp8u *pDeviceBuffer)
 64-bit integer vector min method
NppStatus nppsMinMaxGetBufferSize_8u (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for nppsMinMax_8u.
NppStatus nppsMinMaxGetBufferSize_16s (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for nppsMinMax_16s.
NppStatus nppsMinMaxGetBufferSize_16u (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for nppsMinMax_16u.
NppStatus nppsMinMaxGetBufferSize_32s (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for nppsMinMax_32s.
NppStatus nppsMinMaxGetBufferSize_32u (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for nppsMinMax_32u.
NppStatus nppsMinMaxGetBufferSize_32f (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for nppsMinMax_32f.
NppStatus nppsMinMaxGetBufferSize_64f (int nLength, int *hpBufferSize)
 Device-buffer size (in bytes) for nppsMinMax_64f.
NppStatus nppsMinMax_8u (const Npp8u *pSrc, int nLength, Npp8u *pMin, Npp8u *pMax, Npp8u *pDeviceBuffer)
 8-bit char vector min and max method
NppStatus nppsMinMax_16s (const Npp16s *pSrc, int nLength, Npp16s *pMin, Npp16s *pMax, Npp8u *pDeviceBuffer)
 16-bit signed short vector min and max method
NppStatus nppsMinMax_16u (const Npp16u *pSrc, int nLength, Npp16u *pMin, Npp16u *pMax, Npp8u *pDeviceBuffer)
 16-bit unsigned short vector min and max method
NppStatus nppsMinMax_32u (const Npp32u *pSrc, int nLength, Npp32u *pMin, Npp32u *pMax, Npp8u *pDeviceBuffer)
 32-bit unsigned int vector min and max method
NppStatus nppsMinMax_32s (const Npp32s *pSrc, int nLength, Npp32s *pMin, Npp32s *pMax, Npp8u *pDeviceBuffer)
 32-bit signed int vector min and max method
NppStatus nppsMinMax_32f (const Npp32f *pSrc, int nLength, Npp32f *pMin, Npp32f *pMax, Npp8u *pDeviceBuffer)
 32-bit float vector min and max method
NppStatus nppsMinMax_64f (const Npp64f *pSrc, int nLength, Npp64f *pMin, Npp64f *pMax, Npp8u *pDeviceBuffer)
 64-bit double vector min and max method

Function Documentation

NppStatus nppsCopy_16s ( const Npp16s pSrc,
Npp16s pDst,
int  len 
)

16-bit signed short, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_16sc ( const Npp16sc pSrc,
Npp16sc pDst,
int  len 
)

16-bit complex short, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_32f ( const Npp32f pSrc,
Npp32f pDst,
int  len 
)

32-bit float, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_32fc ( const Npp32fc pSrc,
Npp32fc pDst,
int  len 
)

32-bit complex float, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_32s ( const Npp32s pSrc,
Npp32s pDst,
int  nLength 
)

32-bit signed integer, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_32sc ( const Npp32sc pSrc,
Npp32sc pDst,
int  len 
)

32-bit complex signed integer, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_64fc ( const Npp64fc pSrc,
Npp64fc pDst,
int  len 
)

64-bit complex double, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_64s ( const Npp64s pSrc,
Npp64s pDst,
int  len 
)

64-bit signed integer, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_64sc ( const Npp64sc pSrc,
Npp64sc pDst,
int  len 
)

64-bit complex signed integer, vector copy method.

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsCopy_8u ( const Npp8u pSrc,
Npp8u pDst,
int  len 
)

8-bit unsigned char, vector copy method

Parameters:
pSrc Source Signal Pointer.
pDst Destination Signal Pointer.
len Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

void nppsFree ( void *  pValues  ) 

Free method for any 2D allocated memory.

This method should be used to free memory allocated with any of the nppiMalloc_<modifier> methods.

Parameters:
pValues A pointer to memory allocated using nppiMalloc_<modifier>.

Npp16s* nppsMalloc_16s ( int  nSize  ) 

16-bit signal allocator.

Parameters:
nSize Number of shorts in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp16sc* nppsMalloc_16sc ( int  nSize  ) 

16-bit complex-value signal allocator.

Parameters:
nSize Number of 16-bit complex numbers in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp16u* nppsMalloc_16u ( int  nSize  ) 

16-bit unsigned signal allocator.

Parameters:
nSize Number of unsigned shorts in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp32f* nppsMalloc_32f ( int  nSize  ) 

32-bit float signal allocator.

Parameters:
nSize Number of floats in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp32fc* nppsMalloc_32fc ( int  nSize  ) 

32-bit complex float signal allocator.

Parameters:
nSize Number of complex float values in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp32s* nppsMalloc_32s ( int  nSize  ) 

32-bit integer signal allocator.

Parameters:
nSize Number of ints in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp32sc* nppsMalloc_32sc ( int  nSize  ) 

32-bit complex integer signal allocator.

Parameters:
nSize Number of complex integner values in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp32u* nppsMalloc_32u ( int  nSize  ) 

32-bit unsigned signal allocator.

Parameters:
nSize Number of unsigned ints in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp64f* nppsMalloc_64f ( int  nSize  ) 

64-bit float (double) signal allocator.

Parameters:
nSize Number of doubles in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp64fc* nppsMalloc_64fc ( int  nSize  ) 

64-bit complex complex signal allocator.

Parameters:
nSize Number of complex double valuess in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp64s* nppsMalloc_64s ( int  nSize  ) 

64-bit long integer signal allocator.

Parameters:
nSize Number of long ints in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp64sc* nppsMalloc_64sc ( int  nSize  ) 

64-bit complex long integer signal allocator.

Parameters:
nSize Number of complex long int values in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

Npp8u* nppsMalloc_8u ( int  nSize  ) 

8-bit unsigned signal allocator.

Parameters:
nSize Number of unsigned chars in the new signal.
Returns:
A pointer to the new signal. 0 (NULL-pointer) indicates that an error occurred during allocation.

NppStatus nppsMax_16s ( const Npp16s pSrc,
int  nLength,
Npp16s pMax,
Npp8u pDeviceBuffer 
)

16-bit integer vector max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMax Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMax_32f ( const Npp32f pSrc,
int  nLength,
Npp32f pMax,
Npp8u pDeviceBuffer 
)

32-bit float vector max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMax Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMax_32s ( const Npp32s pSrc,
int  nLength,
Npp32s pMax,
Npp8u pDeviceBuffer 
)

32-bit integer vector max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMax Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMax_64f ( const Npp64f pSrc,
int  nLength,
Npp64f pMax,
Npp8u pDeviceBuffer 
)

64-bit float vector max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMax Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMin_16s ( const Npp16s pSrc,
int  nLength,
Npp16s pMin,
Npp8u pDeviceBuffer 
)

16-bit integer vector min method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMin_32f ( const Npp32f pSrc,
int  nLength,
Npp32f pMin,
Npp8u pDeviceBuffer 
)

32-bit integer vector min method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMin_32s ( const Npp32s pSrc,
int  nLength,
Npp32s pMin,
Npp8u pDeviceBuffer 
)

32-bit integer vector min method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMin_64f ( const Npp64f pSrc,
int  nLength,
Npp64f pMin,
Npp8u pDeviceBuffer 
)

64-bit integer vector min method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMax_16s ( const Npp16s pSrc,
int  nLength,
Npp16s pMin,
Npp16s pMax,
Npp8u pDeviceBuffer 
)

16-bit signed short vector min and max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the min output result.
pMax Pointer to the max output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMax_16u ( const Npp16u pSrc,
int  nLength,
Npp16u pMin,
Npp16u pMax,
Npp8u pDeviceBuffer 
)

16-bit unsigned short vector min and max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the min output result.
pMax Pointer to the max output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMax_32f ( const Npp32f pSrc,
int  nLength,
Npp32f pMin,
Npp32f pMax,
Npp8u pDeviceBuffer 
)

32-bit float vector min and max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the min output result.
pMax Pointer to the max output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMax_32s ( const Npp32s pSrc,
int  nLength,
Npp32s pMin,
Npp32s pMax,
Npp8u pDeviceBuffer 
)

32-bit signed int vector min and max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the min output result.
pMax Pointer to the max output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMax_32u ( const Npp32u pSrc,
int  nLength,
Npp32u pMin,
Npp32u pMax,
Npp8u pDeviceBuffer 
)

32-bit unsigned int vector min and max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the min output result.
pMax Pointer to the max output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMax_64f ( const Npp64f pSrc,
int  nLength,
Npp64f pMin,
Npp64f pMax,
Npp8u pDeviceBuffer 
)

64-bit double vector min and max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the min output result.
pMax Pointer to the max output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMax_8u ( const Npp8u pSrc,
int  nLength,
Npp8u pMin,
Npp8u pMax,
Npp8u pDeviceBuffer 
)

8-bit char vector min and max method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pMin Pointer to the min output result.
pMax Pointer to the max output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsMinMaxGetBufferSize_16s ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for nppsMinMax_16s.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsMinMaxGetBufferSize_16u ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for nppsMinMax_16u.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsMinMaxGetBufferSize_32f ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for nppsMinMax_32f.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsMinMaxGetBufferSize_32s ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for nppsMinMax_32s.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsMinMaxGetBufferSize_32u ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for nppsMinMax_32u.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsMinMaxGetBufferSize_64f ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for nppsMinMax_64f.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsMinMaxGetBufferSize_8u ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for nppsMinMax_8u.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_16s ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 16s reductions.

This primitive provides the correct buffer size for nppsSum_16s, nppsMin_16s, nppsMax_16s.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_16s_Sfs ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 16s reductions with integer-results scaling.

This primitive provides the correct buffer size for nppsSum_16s_Sfs.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_16sc ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 16sc reductions.

This primitive provides the correct buffer size for nppsSum_16sc, nppsMin_16sc, nppsMax_16sc.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_16sc_Sfs ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 16sc reductions with integer-results scaling.

This primitive provides the correct buffer size for nppsSum_16sc_Sfs.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_16u ( int  nLength,
int *  hpBufferSize 
) [inline]

Device-buffer size (in bytes) for 16u reductions.

This primitive provides the correct buffer size for nppsSum_16u, nppsMin_16u, nppsMax_16u.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_32f ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 32f reductions.

This primitive provides the correct buffer size for nppsSum_32f, nppsMin_32f, nppsMax_32f.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_32fc ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 32fc reductions.

This primitive provides the correct buffer size for nppsSum_32fc, nppsMin_32fc, nppsMax_32fc.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_32s ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 32s reductions.

This primitive provides the correct buffer size for nppsSum_32sc, nppsMin_32sc, nppsMax_32sc.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_32s_Sfs ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 32s reductions with integer-results scaling.

This primitive provides the correct buffer size for nppsSum_32s_Sfs.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_32sc ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 32sc reductions.

This primitive provides the correct buffer size for nppsSum_32sc, nppsMin_32sc, nppsMax_32sc.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_32u ( int  nLength,
int *  hpBufferSize 
) [inline]

Device-buffer size (in bytes) for 32u reductions.

This primitive provides the correct buffer size for nppsSum_32u, nppsMin_32u, nppsMax_32u.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_64f ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 64f reductions.

This primitive provides the correct buffer size for nppsSum_64f, nppsMin_64f, nppsMax_64f.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_64fc ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 64fc reductions.

This primitive provides the correct buffer size for nppsSum_64fc, nppsMin_64fc, nppsMax_64fc.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_64s ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 64s reductions.

This primitive provides the correct buffer size for nppsSum_64s, nppsMin_64s, nppsMax_64s.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsReductionGetBufferSize_8u ( int  nLength,
int *  hpBufferSize 
)

Device-buffer size (in bytes) for 8u reductions.

This primitive provides the correct buffer size for nppsSum_8u, nppsMin_8u, nppsMax_8u.

Parameters:
nLength Signal Length.
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer.
Returns:
NPP_SUCCESS

NppStatus nppsSet_16s ( Npp16s  nValue,
Npp16s pDst,
int  nLength 
)

16-bit integer, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_16sc ( Npp16sc  nValue,
Npp16sc pDst,
int  nLength 
)

16-bit integer complex, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_32f ( Npp32f  nValue,
Npp32f pDst,
int  nLength 
)

32-bit float, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_32fc ( Npp32fc  nValue,
Npp32fc pDst,
int  nLength 
)

32-bit float complex, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_32s ( Npp32s  nValue,
Npp32s pDst,
int  nLength 
)

32-bit integer, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_32sc ( Npp32sc  nValue,
Npp32sc pDst,
int  nLength 
)

32-bit integer complex, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_64f ( Npp64f  nValue,
Npp64f pDst,
int  nLength 
)

64-bit double, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_64fc ( Npp64fc  nValue,
Npp64fc pDst,
int  nLength 
)

64-bit double complex, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_64s ( Npp64s  nValue,
Npp64s pDst,
int  nLength 
)

64-bit long long integer, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_64sc ( Npp64sc  nValue,
Npp64sc pDst,
int  nLength 
)

64-bit long long integer complex, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSet_8u ( Npp8u  nValue,
Npp8u pDst,
int  nLength 
)

8-bit unsigned char, vector set method.

Parameters:
nValue Value used to initialize the vector pDst.
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_16s32s_Sfs ( const Npp16s pSrc,
int  nLength,
Npp32s pSum,
int  nScaleFactor,
Npp8u pDeviceBuffer 
)

16-bit integer vector sum (32bit) with integer scaling method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
nScaleFactor Integer-result scale factor.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_16s_Sfs ( const Npp16s pSrc,
int  nLength,
Npp16s pSum,
int  nScaleFactor,
Npp8u pDeviceBuffer 
)

16-bit short vector sum with integer scaling method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
nScaleFactor Integer-result scale factor.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_16sc32sc_Sfs ( const Npp16sc pSrc,
int  nLength,
Npp32sc pSum,
int  nScaleFactor,
Npp8u pDeviceBuffer 
)

16-bit short complex vector sum (32bit int complex) with integer scaling method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
nScaleFactor Integer-result scale factor.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_16sc_Sfs ( const Npp16sc pSrc,
int  nLength,
Npp16sc pSum,
int  nScaleFactor,
Npp8u pDeviceBuffer 
)

16-bit short complex vector sum with integer scaling method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
nScaleFactor Integer-result scale factor.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_32f ( const Npp32f pSrc,
int  nLength,
Npp32f pSum,
NppHintAlgorithm  eHint,
Npp8u pDeviceBuffer 
)

32-bit float vector sum method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
eHint Suggests using specific code.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_32fc ( const Npp32fc pSrc,
int  nLength,
Npp32fc pSum,
NppHintAlgorithm  eHint,
Npp8u pDeviceBuffer 
)

32-bit float complex vector sum method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
eHint Suggests using specific code.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_32s_Sfs ( const Npp32s pSrc,
int  nLength,
Npp32s pSum,
int  nScaleFactor,
Npp8u pDeviceBuffer 
)

32-bit integer vector sum with integer scaling method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
nScaleFactor Integer-result scale factor.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_64f ( const Npp64f pSrc,
int  nLength,
Npp64f pSum,
Npp8u pDeviceBuffer 
)

64-bit double vector sum method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsSum_64fc ( const Npp64fc pSrc,
int  nLength,
Npp64fc pSum,
Npp8u pDeviceBuffer 
)

64-bit double complex vector sum method

Parameters:
pSrc Source Signal Pointer.
nLength Signal Length.
pSum Pointer to the output result.
pDeviceBuffer Pointer to the required device memory allocation.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_16s ( Npp16s pDst,
int  nLength 
)

16-bit integer, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_16sc ( Npp16sc pDst,
int  nLength 
)

16-bit integer complex, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_32f ( Npp32f pDst,
int  nLength 
)

32-bit float, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_32fc ( Npp32fc pDst,
int  nLength 
)

32-bit float complex, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_32s ( Npp32s pDst,
int  nLength 
)

32-bit integer, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_32sc ( Npp32sc pDst,
int  nLength 
)

32-bit integer complex, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_64f ( Npp64f pDst,
int  nLength 
)

64-bit double, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_64fc ( Npp64fc pDst,
int  nLength 
)

64-bit double complex, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_64s ( Npp64s pDst,
int  nLength 
)

64-bit long long integer, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_64sc ( Npp64sc pDst,
int  nLength 
)

64-bit long long integer complex, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.

NppStatus nppsZero_8u ( Npp8u pDst,
int  nLength 
)

8-bit unsigned char, vector zero method.

Parameters:
pDst Destination Signal Pointer.
nLength Signal Length.
Returns:
Signal Data Related Error Codes, Length Related Error Codes.


Copyright © 2009-2010 NVIDIA Corporation