NPP Type Definitions and Constants


Data Structures

struct  NppLibraryVersion
struct  NppiPoint
 2D Point More...
struct  NppiSize
 2D Size This struct typically represents the size of a a rectangular region in two space. More...
struct  NppiRect
 2D Rectangle This struct contains position and size information of a rectangle in two space. More...
struct  NppiHaarClassifier_32f
struct  NppiHaarBuffer

Modules

 Basic NPP Data Types

Defines

#define NPP_MIN_8U   ( 0 )
 Minimum 8-bit unsigned integer.
#define NPP_MAX_8U   ( 255 )
 Maximum 8-bit unsigned integer.
#define NPP_MIN_16U   ( 0 )
 Minimum 16-bit unsigned integer.
#define NPP_MAX_16U   ( 65535 )
 Maximum 16-bit unsigned integer.
#define NPP_MIN_32U   ( 0 )
 Minimum 32-bit unsigned integer.
#define NPP_MAX_32U   ( 4294967295 )
 Maximum 32-bit unsigned integer.
#define NPP_MIN_8S   (-128 )
 Minimum 8-bit signed integer.
#define NPP_MAX_8S   ( 127 )
 Maximum 8-bit signed integer.
#define NPP_MIN_16S   (-32768 )
 Minimum 16-bit signed integer.
#define NPP_MAX_16S   ( 32767 )
 Maximum 16-bit signed integer.
#define NPP_MIN_32S   (-2147483648 )
 Minimum 32-bit signed integer.
#define NPP_MAX_32S   ( 2147483647 )
 Maximum 32-bit signed integer.
#define NPP_MAX_64S   ( 9223372036854775807LL )
 Minimum 64-bit signed integer.
#define NPP_MIN_64S   (-9223372036854775808LL)
 Maximum 64-bit signed integer.
#define NPP_MINABS_32F   ( 1.175494351e-38f )
 Smallest positive 32-bit floating point value.
#define NPP_MAXABS_32F   ( 3.402823466e+38f )
 Largest positive 32-bit floating point value.
#define NPP_MINABS_64F   ( 2.2250738585072014e-308 )
 Smallest positive 64-bit floating point value.
#define NPP_MAXABS_64F   ( 1.7976931348623158e+308 )
 Largest positive 64-bit floating point value.

Enumerations

enum  NppiInterpolationMode {
  NPPI_INTER_NN = 1,
  NPPI_INTER_LINEAR = 2,
  NPPI_INTER_CUBIC = 4,
  NPPI_INTER_SUPER = 8,
  NPPI_INTER_LANCZOS = 16,
  NPPI_SMOOTH_EDGE = (1 << 31)
}
 Filtering methods. More...
enum  NppStatus {
  NPP_NOT_SUPPORTED_MODE_ERROR = -9999,
  NPP_ROUND_MODE_NOT_SUPPORTED_ERROR = -213,
  NPP_RESIZE_NO_OPERATION_ERROR = -50,
  NPP_NOT_SUFFICIENT_COMPUTE_CAPABILITY = -27,
  NPP_BAD_ARG_ERROR = -26,
  NPP_LUT_NUMBER_OF_LEVELS_ERROR = -25,
  NPP_TEXTURE_BIND_ERROR = -24,
  NPP_COEFF_ERROR = -23,
  NPP_RECT_ERROR = -22,
  NPP_QUAD_ERROR = -21,
  NPP_WRONG_INTERSECTION_ROI_ERROR = -20,
  NPP_NOT_EVEN_STEP_ERROR = -19,
  NPP_INTERPOLATION_ERROR = -18,
  NPP_RESIZE_FACTOR_ERROR = -17,
  NPP_HAAR_CLASSIFIER_PIXEL_MATCH_ERROR = -16,
  NPP_MEMFREE_ERR = -15,
  NPP_MEMSET_ERR = -14,
  NPP_MEMCPY_ERROR = -13,
  NPP_MEM_ALLOC_ERR = -12,
  NPP_HISTO_NUMBER_OF_LEVELS_ERROR = -11,
  NPP_MIRROR_FLIP_ERR = -10,
  NPP_INVALID_INPUT = -9,
  NPP_ALIGNMENT_ERROR = -8,
  NPP_STEP_ERROR = -7,
  NPP_SIZE_ERROR = -6,
  NPP_POINTER_ERROR = -5,
  NPP_NULL_POINTER_ERROR = -4,
  NPP_CUDA_KERNEL_EXECUTION_ERROR = -3,
  NPP_NOT_IMPLEMENTED_ERROR = -2,
  NPP_ERROR = -1,
  NPP_NO_ERROR = 0,
  NPP_SUCCESS = NPP_NO_ERROR,
  NPP_WARNING = 1,
  NPP_WRONG_INTERSECTION_QUAD_WARNING = 2,
  NPP_MISALIGNED_DST_ROI_WARNING = 3,
  NPP_AFFINE_QUAD_INCORRECT_WARNING = 4,
  NPP_DOUBLE_SIZE_WARNING = 5,
  NPP_ODD_ROI_WARNING = 6
}
 Error Status Codes. More...
enum  NppGpuComputeCapability {
  NPP_CUDA_UNKNOWN_VERSION = -1,
  NPP_CUDA_NOT_CAPABLE,
  NPP_CUDA_1_0,
  NPP_CUDA_1_1,
  NPP_CUDA_1_2,
  NPP_CUDA_1_3,
  NPP_CUDA_2_0
}
enum  NppiAxis {
  NPP_HORIZONTAL_AXIS,
  NPP_VERTICAL_AXIS,
  NPP_BOTH_AXIS
}
enum  NppCmpOp {
  NPP_CMP_LESS,
  NPP_CMP_LESS_EQ,
  NPP_CMP_EQ,
  NPP_CMP_GREATER_EQ,
  NPP_CMP_GREATER
}
enum  NppRoundMode {
  NPP_RND_ZERO,
  NPP_RND_NEAR,
  NPP_RND_FINANCIAL
}
enum  NppHintAlgorithm {
  nppAlgHintNone,
  nppAlgHintFast,
  nppAlgHintAccurate
}

Define Documentation

#define NPP_MAX_16S   ( 32767 )

Maximum 16-bit signed integer.

#define NPP_MAX_16U   ( 65535 )

Maximum 16-bit unsigned integer.

#define NPP_MAX_32S   ( 2147483647 )

Maximum 32-bit signed integer.

#define NPP_MAX_32U   ( 4294967295 )

Maximum 32-bit unsigned integer.

#define NPP_MAX_64S   ( 9223372036854775807LL )

Minimum 64-bit signed integer.

#define NPP_MAX_8S   ( 127 )

Maximum 8-bit signed integer.

#define NPP_MAX_8U   ( 255 )

Maximum 8-bit unsigned integer.

#define NPP_MAXABS_32F   ( 3.402823466e+38f )

Largest positive 32-bit floating point value.

#define NPP_MAXABS_64F   ( 1.7976931348623158e+308 )

Largest positive 64-bit floating point value.

#define NPP_MIN_16S   (-32768 )

Minimum 16-bit signed integer.

#define NPP_MIN_16U   ( 0 )

Minimum 16-bit unsigned integer.

#define NPP_MIN_32S   (-2147483648 )

Minimum 32-bit signed integer.

#define NPP_MIN_32U   ( 0 )

Minimum 32-bit unsigned integer.

#define NPP_MIN_64S   (-9223372036854775808LL)

Maximum 64-bit signed integer.

#define NPP_MIN_8S   (-128 )

Minimum 8-bit signed integer.

#define NPP_MIN_8U   ( 0 )

Minimum 8-bit unsigned integer.

#define NPP_MINABS_32F   ( 1.175494351e-38f )

Smallest positive 32-bit floating point value.

#define NPP_MINABS_64F   ( 2.2250738585072014e-308 )

Smallest positive 64-bit floating point value.


Enumeration Type Documentation

enum NppCmpOp

Enumerator:
NPP_CMP_LESS 
NPP_CMP_LESS_EQ 
NPP_CMP_EQ 
NPP_CMP_GREATER_EQ 
NPP_CMP_GREATER 

Enumerator:
NPP_CUDA_UNKNOWN_VERSION  Indicates that the compute-capability query failed.
NPP_CUDA_NOT_CAPABLE  Indicates that no CUDA capable device was found on machine.
NPP_CUDA_1_0  Indicates that CUDA 1.0 capable device is default device on machine.
NPP_CUDA_1_1  Indicates that CUDA 1.1 capable device.
NPP_CUDA_1_2  Indicates that CUDA 1.2 capable device.
NPP_CUDA_1_3  Indicates that CUDA 1.3 capable device.
NPP_CUDA_2_0  Indicates that CUDA 2.0 or better is default device on machine.

Enumerator:
nppAlgHintNone 
nppAlgHintFast 
nppAlgHintAccurate 

enum NppiAxis

Enumerator:
NPP_HORIZONTAL_AXIS 
NPP_VERTICAL_AXIS 
NPP_BOTH_AXIS 

Filtering methods.

Enumerator:
NPPI_INTER_NN  Nearest neighbor filtering.
NPPI_INTER_LINEAR  Linear interpolation.
NPPI_INTER_CUBIC  Cubic interpolation.
NPPI_INTER_SUPER  Super sampling.
NPPI_INTER_LANCZOS  Lanczos filtering.
NPPI_SMOOTH_EDGE  Smooth edge filtering.

Enumerator:
NPP_RND_ZERO 
NPP_RND_NEAR 
NPP_RND_FINANCIAL 

enum NppStatus

Error Status Codes.

Almost all NPP function return error-status information using these return codes. Negative return codes indicate errors, positive return codes indicate warnings, a return code of 0 indicates success.

Enumerator:
NPP_NOT_SUPPORTED_MODE_ERROR 
NPP_ROUND_MODE_NOT_SUPPORTED_ERROR 
NPP_RESIZE_NO_OPERATION_ERROR 
NPP_NOT_SUFFICIENT_COMPUTE_CAPABILITY 
NPP_BAD_ARG_ERROR 
NPP_LUT_NUMBER_OF_LEVELS_ERROR 
NPP_TEXTURE_BIND_ERROR 
NPP_COEFF_ERROR 
NPP_RECT_ERROR 
NPP_QUAD_ERROR 
NPP_WRONG_INTERSECTION_ROI_ERROR 
NPP_NOT_EVEN_STEP_ERROR 
NPP_INTERPOLATION_ERROR 
NPP_RESIZE_FACTOR_ERROR 
NPP_HAAR_CLASSIFIER_PIXEL_MATCH_ERROR 
NPP_MEMFREE_ERR 
NPP_MEMSET_ERR 
NPP_MEMCPY_ERROR 
NPP_MEM_ALLOC_ERR 
NPP_HISTO_NUMBER_OF_LEVELS_ERROR 
NPP_MIRROR_FLIP_ERR 
NPP_INVALID_INPUT 
NPP_ALIGNMENT_ERROR 
NPP_STEP_ERROR  Step is less or equal zero.
NPP_SIZE_ERROR 
NPP_POINTER_ERROR 
NPP_NULL_POINTER_ERROR 
NPP_CUDA_KERNEL_EXECUTION_ERROR 
NPP_NOT_IMPLEMENTED_ERROR 
NPP_ERROR 
NPP_NO_ERROR  Error free operation.
NPP_SUCCESS  Successful operation (same as NPP_NO_ERROR).
NPP_WARNING 
NPP_WRONG_INTERSECTION_QUAD_WARNING 
NPP_MISALIGNED_DST_ROI_WARNING  Speed reduction due to uncoalesced memory accesses warning.
NPP_AFFINE_QUAD_INCORRECT_WARNING  Indicates that the quadrangle passed to one of affine warping functions doesn't have necessary properties. First 3 vertices are used, the fourth vertex discarded.
NPP_DOUBLE_SIZE_WARNING  Indicates that in case of 422/411/420 sampling the ROI width/height was modified for proper processing.
NPP_ODD_ROI_WARNING  Indicates that for 422/411/420 sampling the ROI width/height was forced to even value.


Copyright © 2009-2010 NVIDIA Corporation