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 rectangluar 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

Defines

#define __INT64   long long
#define __UINT64   unsigned long long
#define NPP_MAX_8U   ( 0xFF )
 Maximum 8-bit unsigned integer.
#define NPP_MAX_16U   ( 0xFFFF )
 Maximum 16-bit unsigned integer.
#define NPP_MAX_32U   ( 0xFFFFFFFF )
 Maximum 32-bit unsigned integer.
#define NPP_MIN_8U   ( 0 )
 Minimum 8-bit unsigned integer.
#define NPP_MIN_16U   ( 0 )
 Minimum 16-bit unsigned integer.
#define NPP_MIN_32U   ( 0 )
 Minimum 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   (-2147483647 - 1 )
 Minimum 32-bit signed integer.
#define NPP_MAX_32S   ( 2147483647 )
 Maximum 32-bit signed integer.

Typedefs

typedef unsigned char Npp8u
 8-bit unsigned integers
typedef unsigned short Npp16u
 16-bit unsigned integers
typedef short Npp16s
 16-bit signed integers
typedef unsigned int Npp32u
 32-bit unsigned integers
typedef int Npp32s
 32-bit signed integers
typedef __INT64 Npp64u
 32-bit unsigned integers
typedef __UINT64 Npp64s
 32-bit signed integers
typedef float Npp32f
 32-bit (IEEE) floating-point numbers
typedef double Npp64f
 64-bit floating-point numbers

Enumerations

enum  {
  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  NppiColorConvMode { NPPI_FROM_RGB_TO_YCBCR, NPPI_FROM_YCBCR_TO_RGB }
 Color Conversion Modes. More...
enum  NppiSamplingConvMode {
  NPPI_FROM_444_TO_422, NPPI_FROM_444_TO_411, NPPI_FROM_444_TO_420, NPPI_FROM_422_TO_444,
  NPPI_FROM_422_TO_411, NPPI_FROM_422_TO_420, NPPI_FROM_411_TO_444, NPPI_FROM_411_TO_422,
  NPPI_FROM_411_TO_420, NPPI_FROM_420_TO_444, NPPI_FROM_420_TO_422, NPPI_FROM_420_TO_411
}
 Sampling Conversion Modes. More...
enum  NppStatus {
  NPP_NOT_SUPPORTED_MODE_ERROR = -9999, NPP_ROUND_MODE_NOT_SUPPORTED_ERROR = -213, NPP_RESIZE_NO_OPERATION_ERROR = -50, 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_AFFINE_QUAD_CHANGED_WARNING = NPP_AFFINE_QUAD_INCORRECT_WARNING,
  NPP_ADJUSTED_ROI_SIZE_WARNING = 5, NPP_DOUBLE_SIZE_WARNING = NPP_ADJUSTED_ROI_SIZE_WARNING, 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
}
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 }

Define Documentation

#define __INT64   long long

#define __UINT64   unsigned long long

#define NPP_MAX_16S   ( 32767 )

Maximum 16-bit signed integer.

#define NPP_MAX_16U   ( 0xFFFF )

Maximum 16-bit unsigned integer.

#define NPP_MAX_32S   ( 2147483647 )

Maximum 32-bit signed integer.

#define NPP_MAX_32U   ( 0xFFFFFFFF )

Maximum 32-bit unsigned integer.

#define NPP_MAX_8S   ( 127 )

Maximum 8-bit signed integer.

#define NPP_MAX_8U   ( 0xFF )

Maximum 8-bit unsigned integer.

#define NPP_MIN_16S   (-32768 )

Minimum 16-bit signed integer.

#define NPP_MIN_16U   ( 0 )

Minimum 16-bit unsigned integer.

#define NPP_MIN_32S   (-2147483647 - 1 )

Minimum 32-bit signed integer.

#define NPP_MIN_32U   ( 0 )

Minimum 32-bit unsigned integer.

#define NPP_MIN_8S   (-128 )

Minimum 8-bit signed integer.

#define NPP_MIN_8U   ( 0 )

Minimum 8-bit unsigned integer.


Typedef Documentation

typedef short Npp16s

16-bit signed integers

typedef unsigned short Npp16u

16-bit unsigned integers

typedef float Npp32f

32-bit (IEEE) floating-point numbers

typedef int Npp32s

32-bit signed integers

typedef unsigned int Npp32u

32-bit unsigned integers

typedef double Npp64f

64-bit floating-point numbers

typedef __UINT64 Npp64s

32-bit signed integers

typedef __INT64 Npp64u

32-bit unsigned integers

typedef unsigned char Npp8u

8-bit unsigned integers


Enumeration Type Documentation

anonymous enum

Filtering methods.

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

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 or better is default device on machine.

enum NppiAxis

Enumerator:
NPP_HORIZONTAL_AXIS 
NPP_VERTICAL_AXIS 
NPP_BOTH_AXIS 

Color Conversion Modes.

Enumerator:
NPPI_FROM_RGB_TO_YCBCR 
NPPI_FROM_YCBCR_TO_RGB 

Sampling Conversion Modes.

Enumerator:
NPPI_FROM_444_TO_422 
NPPI_FROM_444_TO_411 
NPPI_FROM_444_TO_420 
NPPI_FROM_422_TO_444 
NPPI_FROM_422_TO_411 
NPPI_FROM_422_TO_420 
NPPI_FROM_411_TO_444 
NPPI_FROM_411_TO_422 
NPPI_FROM_411_TO_420 
NPPI_FROM_420_TO_444 
NPPI_FROM_420_TO_422 
NPPI_FROM_420_TO_411 

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_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 
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_AFFINE_QUAD_CHANGED_WARNING  Alias for NPP_AFFINE_QUAD_INCORRECT_WARNING resembling the IPP warning more closely.
NPP_ADJUSTED_ROI_SIZE_WARNING  Indicates that in case of 422/411/420 sampling the ROI width/height was modified for proper processing.
NPP_DOUBLE_SIZE_WARNING  Alias for the ADJUSTED_ROI_SIZE_WARNING, this name is closer to IPP's original warning enum.
NPP_ODD_ROI_WARNING  Indicates that for 422/411/420 sampling the ROI width/height was forced to even value.


Copyright © 2009 NVIDIA Corporation