41 #define RPP_MIN_8U      ( 0 ) 
   43 #define RPP_MAX_8U      ( 255 ) 
   45 #define RPPT_MAX_DIMS   ( 5 ) 
   47 const float ONE_OVER_6 = 1.0f / 6;
 
   48 const float ONE_OVER_3 = 1.0f / 3;
 
   49 const float ONE_OVER_255 = 1.0f / 255;
 
  130     rppStatusSuccess        = 0,
 
  131     rppStatusBadParm        = -1,
 
  132     rppStatusUnknownError   = -2,
 
  133     rppStatusNotInitialized = -3,
 
  134     rppStatusInvalidValue   = -4,
 
  135     rppStatusAllocFailed    = -5,
 
  136     rppStatusInternalError  = -6,
 
  137     rppStatusNotImplemented = -7,
 
  138     rppStatusUnsupportedOp  = -8,
 
  146     RPP_SCALAR_OP_AND       = 1,
 
  151     RPP_SCALAR_OP_NOTEQUAL,
 
  153     RPP_SCALAR_OP_LESSEQ,
 
  154     RPP_SCALAR_OP_GREATER,
 
  155     RPP_SCALAR_OP_GREATEREQ,
 
  157     RPP_SCALAR_OP_SUBTRACT,
 
  158     RPP_SCALAR_OP_MULTIPLY,
 
  159     RPP_SCALAR_OP_DIVIDE,
 
  160     RPP_SCALAR_OP_MODULUS,
 
  251     RPPI_HORIZONTAL_AXIS,
 
  330     unsigned int roiWidth;
 
  331     unsigned int roiHeight;
 
  380 } RpptSubpixelLayout;
 
  387     NEAREST_NEIGHBOR = 0,
 
  429     int roiWidth, roiHeight;
 
  439     int roiWidth, roiHeight, roiDepth;
 
  559     float boxMullerExtra;
 
  594         switch(interpolationType)
 
  596         case RpptInterpolationType::BICUBIC:
 
  601         case RpptInterpolationType::LANCZOS:
 
  603             if(in_size > out_size)
 
  605                 this->radius = 3.0f * scaleRatio;
 
  606                 this->scale = (1 / scaleRatio);
 
  612         case RpptInterpolationType::GAUSSIAN:
 
  614             if(in_size > out_size)
 
  616                 this->radius = scaleRatio;
 
  617                 this->scale = (1 / scaleRatio);
 
  621         case RpptInterpolationType::TRIANGULAR:
 
  623             if(in_size > out_size)
 
  625                 this->radius = scaleRatio;
 
  626                 this->scale = (1 / scaleRatio);
 
  637         this->size = std::ceil(2 * this->radius);
 
  826     clmemSize maxSrcSize;
 
  827     clmemSize maxDstSize;
 
  829     clmemRpp32f floatArr[10];
 
  830     clmemRpp64f doubleArr[10];
 
  831     clmemRpp32u uintArr[10];
 
  832     clmemRpp32s intArr[10];
 
  833     clmemRpp8u ucharArr[10];
 
  834     clmemRpp8s charArr[10];
 
  835     cl_mem srcBatchIndex;
 
  836     cl_mem dstBatchIndex;
 
  850 #elif defined(HIP_COMPILE) 
RppiPad
RPPI Image pad type enum.
Definition: rppdefs.h:273
 
RppiFormat
RPPI Image format type enum.
Definition: rppdefs.h:282
 
unsigned int Rpp32u
32 bit unsigned int
Definition: rppdefs.h:62
 
RppConvertBitDepthMode
RPP BitDepth Conversion type enum.
Definition: rppdefs.h:169
 
int Rpp32s
32 bit signed int
Definition: rppdefs.h:64
 
signed char Rpp8s
8 bit signed char
Definition: rppdefs.h:56
 
RppiChnFormat
RPPI Image channel format type enum.
Definition: rppdefs.h:241
 
unsigned short Rpp16u
16 bit unsigned short
Definition: rppdefs.h:58
 
unsigned char Rpp8u
8 bit unsigned char
Definition: rppdefs.h:54
 
void * RppPtr_t
void pointer
Definition: rppdefs.h:74
 
RpptLayout
RPPT Tensor layout type enum.
Definition: rppdefs.h:351
 
RppiBlur
RPPI Image blur type enum.
Definition: rppdefs.h:260
 
RppiAxis
RPP Image axis type enum.
Definition: rppdefs.h:250
 
RpptRoiType
RPPT Tensor 2D ROI type enum.
Definition: rppdefs.h:362
 
RpptDataType
RPPT Tensor datatype enum.
Definition: rppdefs.h:340
 
double Rpp64f
64 bit double
Definition: rppdefs.h:72
 
RpptAudioBorderType
RPPT Audio Border Type.
Definition: rppdefs.h:399
 
size_t RppSize_t
size_t
Definition: rppdefs.h:76
 
struct GenericFilter GenericFilter
RPPT Tensor GenericFilter type struct.
 
RppStatus
RPP RppStatus type enums.
Definition: rppdefs.h:82
 
RpptRoi3DType
RPPT Tensor subpixel layout type enum.
Definition: rppdefs.h:371
 
RppOp
RPP Operations type enum.
Definition: rppdefs.h:145
 
unsigned long long Rpp64u
64 bit unsigned long long
Definition: rppdefs.h:66
 
#define RPPT_MAX_DIMS
RPP maximum dimensions in tensor .
Definition: rppdefs.h:45
 
RpptInterpolationType
RPPT Tensor interpolation type enum.
Definition: rppdefs.h:386
 
short Rpp16s
16 bit signed short
Definition: rppdefs.h:60
 
RppiColorConvertMode
RPPI Image color convert mode type enum.
Definition: rppdefs.h:222
 
float Rpp32f
32 bit float
Definition: rppdefs.h:70
 
RppiFuzzyLevel
RPPI Image fuzzy level type enum.
Definition: rppdefs.h:231
 
long long Rpp64s
64 bit long long
Definition: rppdefs.h:68
 
rppStatus_t
RPP rppStatus_t type enums.
Definition: rppdefs.h:129
 
@ RPP_ERROR_NOT_IMPLEMENTED
Function variant requested is not implemented / unsupported.
Definition: rppdefs.h:96
 
@ RPP_ERROR_INVALID_DST_DATATYPE
Invalid dst tensor datatype. (Needs to adhere to function specification.)
Definition: rppdefs.h:108
 
@ RPP_ERROR_OUT_OF_BOUND_SRC_ROI
Out of bound source ROI.
Definition: rppdefs.h:118
 
@ RPP_ERROR_ZERO_DIVISION
Arguments provided will result in zero division error.
Definition: rppdefs.h:92
 
@ RPP_ERROR_INVALID_ARGUMENTS
One or more arguments invalid. (Needs to adhere to function specification.)
Definition: rppdefs.h:88
 
@ RPP_ERROR_INVALID_CHANNELS
Number of channels is invalid. (Needs to adhere to function specification.)
Definition: rppdefs.h:122
 
@ RPP_ERROR_INVALID_SRC_CHANNELS
Invalid src tensor number of channels. (Needs to adhere to function specification....
Definition: rppdefs.h:98
 
@ RPP_ERROR_INVALID_SRC_OR_DST_DATATYPE
Invalid src/dst tensor datatype. (Needs to adhere to function specification.)
Definition: rppdefs.h:110
 
@ RPP_ERROR_INVALID_PARAMETER_DATATYPE
Invalid datatype.
Definition: rppdefs.h:114
 
@ RPP_ERROR_NOT_ENOUGH_MEMORY
Not enough memory.
Definition: rppdefs.h:116
 
@ RPP_ERROR
Unspecified error.
Definition: rppdefs.h:86
 
@ RPP_ERROR_INVALID_DST_LAYOUT
Invalid dst tensor layout. (Needs to adhere to function specification.)
Definition: rppdefs.h:104
 
@ RPP_ERROR_INVALID_DST_CHANNELS
Invalid dst tensor number of channels. (Needs to adhere to function specification....
Definition: rppdefs.h:100
 
@ RPP_ERROR_INVALID_SRC_DATATYPE
Invalid src tensor datatype. (Needs to adhere to function specification.)
Definition: rppdefs.h:106
 
@ RPP_ERROR_INVALID_SRC_LAYOUT
Invalid src tensor layout. (Needs to adhere to function specification.)
Definition: rppdefs.h:102
 
@ RPP_ERROR_SRC_DST_LAYOUT_MISMATCH
src and dst layout mismatch
Definition: rppdefs.h:120
 
@ RPP_ERROR_HIGH_SRC_DIMENSION
Src tensor / src ROI dimension too high. (Needs to adhere to function specification....
Definition: rppdefs.h:94
 
@ RPP_SUCCESS
No error.
Definition: rppdefs.h:84
 
@ RPP_ERROR_INSUFFICIENT_DST_BUFFER_LENGTH
Insufficient dst buffer length provided. (Needs to adhere to function specification....
Definition: rppdefs.h:112
 
@ RPP_ERROR_LOW_OFFSET
Low tensor offsetInBytes provided for src/dst tensor.
Definition: rppdefs.h:90
 
RPPT Tensor GenericFilter type struct.
Definition: rppdefs.h:588
 
RPP initialize handle.
Definition: rppdefs.h:985
 
RPP 24 float vector.
Definition: rppdefs.h:212
 
RPP 6 float vector.
Definition: rppdefs.h:196
 
RPP 24 signed int vector.
Definition: rppdefs.h:204
 
RPP layout params.
Definition: rppdefs.h:187
 
RPP polar point.
Definition: rppdefs.h:178
 
RPPI Image 2D Rectangle (XYWH format) type struct.
Definition: rppdefs.h:309
 
RPPI Image 2D cartesian point type struct.
Definition: rppdefs.h:300
 
RPPI Image 2D ROI (XYWH format) type struct.
Definition: rppdefs.h:327
 
Definition: rppdefs.h:316
 
RPPI Image size(Width/Height dimensions) type struct.
Definition: rppdefs.h:291
 
RPPT Tensor 2D bilinear neighborhood 32-bit signed int 8-length-vectors type struct.
Definition: rppdefs.h:566
 
RPPT Tensor 2D bilinear neighborhood 32-bit float 8-length-vectors type struct.
Definition: rppdefs.h:577
 
RPPT Tensor descriptor type struct.
Definition: rppdefs.h:478
 
RPPT Tensor 32-bit float RGB type struct.
Definition: rppdefs.h:511
 
RPPT Tensor 2D 32-bit float vector type struct.
Definition: rppdefs.h:530
 
RPPT Tensor 8-bit uchar RGB type struct.
Definition: rppdefs.h:491
 
RPPT Tensor 2D image patch dimensions type struct.
Definition: rppdefs.h:539
 
Definition: rppdefs.h:501
 
RPPT Tensor 3D ROI LTFRBB struct.
Definition: rppdefs.h:418
 
RPPT Tensor 2D ROI LTRB struct.
Definition: rppdefs.h:409
 
RPPT Tensor 2D ROI XYWH struct.
Definition: rppdefs.h:427
 
RPPT Tensor 3D ROI XYZWHD struct.
Definition: rppdefs.h:437
 
RPPT Tensor strides type struct.
Definition: rppdefs.h:467
 
RPPT Tensor 2D 32-bit uint vector type struct.
Definition: rppdefs.h:521
 
RPPT Tensor random number generator state (xorwow box muller state) type struct.
Definition: rppdefs.h:556
 
RPPT Tensor random number generator state (xorwow state) type struct.
Definition: rppdefs.h:548
 
RPP HIP 2D ROI memory.
Definition: rppdefs.h:923
 
RPP HIP 32-bit float memory.
Definition: rppdefs.h:858
 
RPP HIP 32-bit signed int memory.
Definition: rppdefs.h:882
 
RPP HIP 32-bit unsigned int memory.
Definition: rppdefs.h:874
 
RPP HIP 64-bit double memory.
Definition: rppdefs.h:866
 
RPP HIP 8-bit signed char memory.
Definition: rppdefs.h:898
 
RPP HIP 8-bit unsigned char memory.
Definition: rppdefs.h:890
 
RPP HIP RGB memory.
Definition: rppdefs.h:906
 
RPP HIP 2D dimensions memory.
Definition: rppdefs.h:914
 
RPP HOST memory type struct.
Definition: rppdefs.h:722
 
RPP OCL memory management type struct.
Definition: rppdefs.h:934
 
RPP HIP-HOST memory management.
Definition: rppdefs.h:964
 
RPP HOST 2D ROI memory.
Definition: rppdefs.h:712
 
RPP HOST 32-bit float memory.
Definition: rppdefs.h:647
 
RPP HOST 32-bit signed int memory.
Definition: rppdefs.h:671
 
RPP HOST 32-bit unsigned int memory.
Definition: rppdefs.h:663
 
RPP HOST 64-bit double memory.
Definition: rppdefs.h:655
 
RPP HOST 8-bit signed char memory.
Definition: rppdefs.h:687
 
RPP HOST 8-bit unsigned char memory.
Definition: rppdefs.h:679
 
RPP HOST RGB memory.
Definition: rppdefs.h:695
 
RPP HOST 2D dimensions memory.
Definition: rppdefs.h:703
 
RPPT Tensor 3D ROI union.
Definition: rppdefs.h:457
 
RPPT Tensor 2D ROI union.
Definition: rppdefs.h:447