/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rpp/checkouts/docs-6.1.2/include/rppdefs.h File Reference

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rpp/checkouts/docs-6.1.2/include/rppdefs.h File Reference#

RPP: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rpp/checkouts/docs-6.1.2/include/rppdefs.h File Reference
rppdefs.h File Reference

RPP common HOST/GPU typedef, enum and structure definitions. More...

#include <stddef.h>
#include <cmath>

Go to the source code of this file.

Data Structures

struct  RppPointPolar
 RPP polar point. More...
 
struct  RppLayoutParams
 RPP layout params. More...
 
struct  Rpp32f6
 RPP 6 float vector. More...
 
struct  Rpp32s24
 RPP 24 signed int vector. More...
 
struct  Rpp32f24
 RPP 24 float vector. More...
 
struct  RppiSize
 RPPI Image size(Width/Height dimensions) type struct. More...
 
struct  RppiPoint
 RPPI Image 2D cartesian point type struct. More...
 
struct  RppiPoint3D
 RPPI Image 2D Rectangle (XYWH format) type struct. More...
 
struct  RppiRect
 
struct  RppiROI
 RPPI Image 2D ROI (XYWH format) type struct. More...
 
struct  RpptRoiLtrb
 RPPT Tensor 2D ROI LTRB struct. More...
 
struct  RpptRoiLtfrbb
 RPPT Tensor 3D ROI LTFRBB struct. More...
 
struct  RpptRoiXywh
 RPPT Tensor 2D ROI XYWH struct. More...
 
struct  RpptRoiXyzwhd
 RPPT Tensor 3D ROI XYZWHD struct. More...
 
union  RpptROI
 RPPT Tensor 2D ROI union. More...
 
union  RpptROI3D
 RPPT Tensor 3D ROI union. More...
 
struct  RpptStrides
 RPPT Tensor strides type struct. More...
 
struct  RpptDesc
 RPPT Tensor descriptor type struct. More...
 
struct  RpptGenericDesc
 RPPT Tensor 8-bit uchar RGB type struct. More...
 
struct  RpptRGB
 
struct  RpptFloatRGB
 RPPT Tensor 32-bit float RGB type struct. More...
 
struct  RpptUintVector2D
 RPPT Tensor 2D 32-bit uint vector type struct. More...
 
struct  RpptFloatVector2D
 RPPT Tensor 2D 32-bit float vector type struct. More...
 
struct  RpptImagePatch
 RPPT Tensor 2D image patch dimensions type struct. More...
 
struct  RpptXorwowState
 RPPT Tensor random number generator state (xorwow state) type struct. More...
 
struct  RpptXorwowStateBoxMuller
 RPPT Tensor random number generator state (xorwow box muller state) type struct. More...
 
struct  RpptBilinearNbhoodLocsVecLen8
 RPPT Tensor 2D bilinear neighborhood 32-bit signed int 8-length-vectors type struct. More...
 
struct  RpptBilinearNbhoodValsVecLen8
 RPPT Tensor 2D bilinear neighborhood 32-bit float 8-length-vectors type struct. More...
 
struct  GenericFilter
 RPPT Tensor GenericFilter type struct. More...
 
struct  memRpp32f
 RPP HOST 32-bit float memory. More...
 
struct  memRpp64f
 RPP HOST 64-bit double memory. More...
 
struct  memRpp32u
 RPP HOST 32-bit unsigned int memory. More...
 
struct  memRpp32s
 RPP HOST 32-bit signed int memory. More...
 
struct  memRpp8u
 RPP HOST 8-bit unsigned char memory. More...
 
struct  memRpp8s
 RPP HOST 8-bit signed char memory. More...
 
struct  memRpptRGB
 RPP HOST RGB memory. More...
 
struct  memSize
 RPP HOST 2D dimensions memory. More...
 
struct  memROI
 RPP HOST 2D ROI memory. More...
 
struct  memCPU
 RPP HOST memory type struct. More...
 
struct  hipMemRpp32f
 RPP HIP 32-bit float memory. More...
 
struct  hipMemRpp64f
 RPP HIP 64-bit double memory. More...
 
struct  hipMemRpp32u
 RPP HIP 32-bit unsigned int memory. More...
 
struct  hipMemRpp32s
 RPP HIP 32-bit signed int memory. More...
 
struct  hipMemRpp8u
 RPP HIP 8-bit unsigned char memory. More...
 
struct  hipMemRpp8s
 RPP HIP 8-bit signed char memory. More...
 
struct  hipMemRpptRGB
 RPP HIP RGB memory. More...
 
struct  hipMemSize
 RPP HIP 2D dimensions memory. More...
 
struct  hipMemROI
 RPP HIP 2D ROI memory. More...
 
struct  memGPU
 RPP OCL memory management type struct. More...
 
struct  memMgmt
 RPP HIP-HOST memory management. More...
 
struct  InitHandle
 RPP initialize handle. More...
 

Macros

#define RPP_MIN_8U   ( 0 )
 8 bit unsigned char minimum \
 
#define RPP_MAX_8U   ( 255 )
 8 bit unsigned char maximum \
 
#define RPPT_MAX_DIMS   ( 5 )
 RPP maximum dimensions in tensor .
 

Typedefs

typedef unsigned char Rpp8u
 8 bit unsigned char
 
typedef signed char Rpp8s
 8 bit signed char
 
typedef unsigned short Rpp16u
 16 bit unsigned short
 
typedef short Rpp16s
 16 bit signed short
 
typedef unsigned int Rpp32u
 32 bit unsigned int
 
typedef int Rpp32s
 32 bit signed int
 
typedef unsigned long long Rpp64u
 64 bit unsigned long long
 
typedef long long Rpp64s
 64 bit long long
 
typedef float Rpp32f
 32 bit float
 
typedef double Rpp64f
 64 bit double
 
typedef void * RppPtr_t
 void pointer
 
typedef size_t RppSize_t
 size_t
 
typedef union RpptROIRpptROIPtr
 
typedef union RpptROI3DRpptROI3DPtr
 
typedef struct RpptDescRpptDescPtr
 
typedef struct RpptGenericDescRpptGenericDescPtr
 
typedef struct RpptImagePatchRpptImagePatchPtr
 
typedef struct GenericFilter GenericFilter
 RPPT Tensor GenericFilter type struct.
 

Enumerations

enum  RppStatus {
  RPP_SUCCESS = 0 ,
  RPP_ERROR = -1 ,
  RPP_ERROR_INVALID_ARGUMENTS = -2 ,
  RPP_ERROR_LOW_OFFSET = -3 ,
  RPP_ERROR_ZERO_DIVISION = -4 ,
  RPP_ERROR_HIGH_SRC_DIMENSION = -5 ,
  RPP_ERROR_NOT_IMPLEMENTED = -6 ,
  RPP_ERROR_INVALID_SRC_CHANNELS = -7 ,
  RPP_ERROR_INVALID_DST_CHANNELS = -8 ,
  RPP_ERROR_INVALID_SRC_LAYOUT = -9 ,
  RPP_ERROR_INVALID_DST_LAYOUT = -10 ,
  RPP_ERROR_INVALID_SRC_DATATYPE = -11 ,
  RPP_ERROR_INVALID_DST_DATATYPE = -12 ,
  RPP_ERROR_INVALID_SRC_OR_DST_DATATYPE = -13 ,
  RPP_ERROR_INSUFFICIENT_DST_BUFFER_LENGTH = -14 ,
  RPP_ERROR_INVALID_PARAMETER_DATATYPE = -15 ,
  RPP_ERROR_NOT_ENOUGH_MEMORY = -16 ,
  RPP_ERROR_OUT_OF_BOUND_SRC_ROI = -17 ,
  RPP_ERROR_SRC_DST_LAYOUT_MISMATCH = -18 ,
  RPP_ERROR_INVALID_CHANNELS = -19
}
 RPP RppStatus type enums. More...
 
enum  rppStatus_t {
  rppStatusSuccess = 0 ,
  rppStatusBadParm = -1 ,
  rppStatusUnknownError = -2 ,
  rppStatusNotInitialized = -3 ,
  rppStatusInvalidValue = -4 ,
  rppStatusAllocFailed = -5 ,
  rppStatusInternalError = -6 ,
  rppStatusNotImplemented = -7 ,
  rppStatusUnsupportedOp = -8
}
 RPP rppStatus_t type enums.
 
enum  RppOp {
  RPP_SCALAR_OP_AND = 1 ,
  RPP_SCALAR_OP_OR ,
  RPP_SCALAR_OP_XOR ,
  RPP_SCALAR_OP_NAND ,
  RPP_SCALAR_OP_EQUAL ,
  RPP_SCALAR_OP_NOTEQUAL ,
  RPP_SCALAR_OP_LESS ,
  RPP_SCALAR_OP_LESSEQ ,
  RPP_SCALAR_OP_GREATER ,
  RPP_SCALAR_OP_GREATEREQ ,
  RPP_SCALAR_OP_ADD ,
  RPP_SCALAR_OP_SUBTRACT ,
  RPP_SCALAR_OP_MULTIPLY ,
  RPP_SCALAR_OP_DIVIDE ,
  RPP_SCALAR_OP_MODULUS ,
  RPP_SCALAR_OP_MIN ,
  RPP_SCALAR_OP_MAX
}
 RPP Operations type enum.
 
enum  RppConvertBitDepthMode {
  U8_S8 ,
  S8_U8
}
 RPP BitDepth Conversion type enum.
 
enum  RppiColorConvertMode {
  RGB_HSV = 1 ,
  HSV_RGB
}
 RPPI Image color convert mode type enum.
 
enum  RppiFuzzyLevel {
  RPPI_LOW ,
  RPPI_MEDIUM ,
  RPPI_HIGH
}
 RPPI Image fuzzy level type enum.
 
enum  RppiChnFormat {
  RPPI_CHN_PLANAR ,
  RPPI_CHN_PACKED
}
 RPPI Image channel format type enum.
 
enum  RppiAxis {
  RPPI_HORIZONTAL_AXIS ,
  RPPI_VERTICAL_AXIS ,
  RPPI_BOTH_AXIS
}
 RPP Image axis type enum.
 
enum  RppiBlur {
  GAUSS3 ,
  GAUSS5 ,
  GAUSS3x1 ,
  GAUSS1x3 ,
  AVG3 = 10 ,
  AVG5
}
 RPPI Image blur type enum.
 
enum  RppiPad {
  ZEROPAD ,
  NOPAD
}
 RPPI Image pad type enum.
 
enum  RppiFormat {
  RGB ,
  HSV
}
 RPPI Image format type enum.
 
enum  RpptDataType {
  U8 ,
  F32 ,
  F16 ,
  I8
}
 RPPT Tensor datatype enum.
 
enum  RpptLayout {
  NCHW ,
  NHWC ,
  NCDHW ,
  NDHWC
}
 RPPT Tensor layout type enum.
 
enum  RpptRoiType {
  LTRB ,
  XYWH
}
 RPPT Tensor 2D ROI type enum.
 
enum  RpptRoi3DType {
  LTFRBB ,
  XYZWHD
}
 RPPT Tensor subpixel layout type enum.
 
enum  RpptSubpixelLayout {
  RGBtype ,
  BGRtype
}
 
enum  RpptInterpolationType {
  NEAREST_NEIGHBOR = 0 ,
  BILINEAR ,
  BICUBIC ,
  LANCZOS ,
  GAUSSIAN ,
  TRIANGULAR
}
 RPPT Tensor interpolation type enum.
 
enum  RpptAudioBorderType {
  ZERO = 0 ,
  CLAMP ,
  REFLECT
}
 RPPT Audio Border Type.
 

Variables

const float ONE_OVER_6 = 1.0f / 6
 
const float ONE_OVER_3 = 1.0f / 3
 
const float ONE_OVER_255 = 1.0f / 255
 

Detailed Description

RPP common HOST/GPU typedef, enum and structure definitions.