include/nppdefs.h File Reference

Typedefinitions and macros for NPP library. More...

#include <stdlib.h>

Go to the source code of this file.

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 }


Detailed Description

Typedefinitions and macros for NPP library.


Copyright © 2009 NVIDIA Corporation