RPPT Tensor Operations - Bitwise Operations.#
RPPT Tensor Operations - Bitwise Operations. More...
Functions | |
| RppStatus | rppt_bitwise_and_host (RppPtr_t srcPtr1, RppPtr_t srcPtr2, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptROIPtr roiTensorPtrSrc, RpptRoiType roiType, rppHandle_t rppHandle) | 
| Bitwise AND computation on HOST backend for a NCHW/NHWC layout tensor.  More... | |
| RppStatus | rppt_bitwise_and_gpu (RppPtr_t srcPtr1, RppPtr_t srcPtr2, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptROIPtr roiTensorPtrSrc, RpptRoiType roiType, rppHandle_t rppHandle) | 
| Bitwise AND computation on HIP backend for a NCHW/NHWC layout tensor.  More... | |
| RppStatus | rppt_bitwise_xor_host (RppPtr_t srcPtr1, RppPtr_t srcPtr2, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptROIPtr roiTensorPtrSrc, RpptRoiType roiType, rppHandle_t rppHandle) | 
| Bitwise XOR computation on HOST backend for a NCHW/NHWC layout tensor.  More... | |
| RppStatus | rppt_bitwise_xor_gpu (RppPtr_t srcPtr1, RppPtr_t srcPtr2, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptROIPtr roiTensorPtrSrc, RpptRoiType roiType, rppHandle_t rppHandle) | 
| Bitwise XOR computation on HIP backend for a NCHW/NHWC layout tensor.  More... | |
| RppStatus | rppt_bitwise_or_host (RppPtr_t srcPtr1, RppPtr_t srcPtr2, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptROIPtr roiTensorPtrSrc, RpptRoiType roiType, rppHandle_t rppHandle) | 
| Bitwise OR computation on HOST backend for a NCHW/NHWC layout tensor.  More... | |
| RppStatus | rppt_bitwise_or_gpu (RppPtr_t srcPtr1, RppPtr_t srcPtr2, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptROIPtr roiTensorPtrSrc, RpptRoiType roiType, rppHandle_t rppHandle) | 
| Bitwise OR computation on HIP backend for a NCHW/NHWC layout tensor.  More... | |
| RppStatus | rppt_bitwise_not_host (RppPtr_t srcPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptROIPtr roiTensorPtrSrc, RpptRoiType roiType, rppHandle_t rppHandle) | 
| Bitwise NOT computation on HOST backend for a NCHW/NHWC layout tensor.  More... | |
| RppStatus | rppt_bitwise_not_gpu (RppPtr_t srcPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptROIPtr roiTensorPtrSrc, RpptRoiType roiType, rppHandle_t rppHandle) | 
| Bitwise NOT computation on HIP backend for a NCHW/NHWC layout tensor.  More... | |
Detailed Description
RPPT Tensor Operations - Bitwise Operations.
Function Documentation
◆ rppt_bitwise_and_gpu()
| RppStatus rppt_bitwise_and_gpu | ( | RppPtr_t | srcPtr1, | 
| RppPtr_t | srcPtr2, | ||
| RpptDescPtr | srcDescPtr, | ||
| RppPtr_t | dstPtr, | ||
| RpptDescPtr | dstDescPtr, | ||
| RpptROIPtr | roiTensorPtrSrc, | ||
| RpptRoiType | roiType, | ||
| rppHandle_t | rppHandle | ||
| ) | 
Bitwise AND computation on HIP backend for a NCHW/NHWC layout tensor.
This function computes bitwise AND of corresponding pixels for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.
 srcPtr depth ranges - Rpp8u (0 to 255). dstPtr depth ranges - Will be same depth as srcPtr. 
- Parameters
 - 
  
[in] srcPtr1 source1 tensor in HIP memory [in] srcPtr2 source2 tensor in HIP memory [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = 1/3) [out] dstPtr destination tensor in HIP memory [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = same as that of srcDescPtr) [in] roiTensorPtrSrc ROI data in HIP memory, for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y)) [in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB) [in] rppHandle RPP HIP handle created with rppCreate() 
- Returns
 - A 
RppStatusenumeration. 
- Return values
 - 
  
RPP_SUCCESS Successful completion. RPP_ERROR* Unsuccessful completion.  
◆ rppt_bitwise_and_host()
| RppStatus rppt_bitwise_and_host | ( | RppPtr_t | srcPtr1, | 
| RppPtr_t | srcPtr2, | ||
| RpptDescPtr | srcDescPtr, | ||
| RppPtr_t | dstPtr, | ||
| RpptDescPtr | dstDescPtr, | ||
| RpptROIPtr | roiTensorPtrSrc, | ||
| RpptRoiType | roiType, | ||
| rppHandle_t | rppHandle | ||
| ) | 
Bitwise AND computation on HOST backend for a NCHW/NHWC layout tensor.
This function computes bitwise AND of corresponding pixels for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.
 srcPtr depth ranges - Rpp8u (0 to 255). dstPtr depth ranges - Will be same depth as srcPtr. 
- Parameters
 - 
  
[in] srcPtr1 source1 tensor in HOST memory [in] srcPtr2 source2 tensor in HOST memory [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = 1/3) [out] dstPtr destination tensor in HOST memory [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = same as that of srcDescPtr) [in] roiTensorPtrSrc ROI data in HOST memory, for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y)) [in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB) [in] rppHandle RPP HOST handle created with rppCreate() 
- Returns
 - A 
RppStatusenumeration. 
- Return values
 - 
  
RPP_SUCCESS Successful completion. RPP_ERROR* Unsuccessful completion.  
◆ rppt_bitwise_not_gpu()
| RppStatus rppt_bitwise_not_gpu | ( | RppPtr_t | srcPtr, | 
| RpptDescPtr | srcDescPtr, | ||
| RppPtr_t | dstPtr, | ||
| RpptDescPtr | dstDescPtr, | ||
| RpptROIPtr | roiTensorPtrSrc, | ||
| RpptRoiType | roiType, | ||
| rppHandle_t | rppHandle | ||
| ) | 
Bitwise NOT computation on HIP backend for a NCHW/NHWC layout tensor.
This function computes bitwise NOT of corresponding pixels for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.
 srcPtr depth ranges - Rpp8u (0 to 255). dstPtr depth ranges - Will be same depth as srcPtr. 
- Parameters
 - 
  
[in] srcPtr source tensor in HIP memory [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = 1/3) [out] dstPtr destination tensor in HIP memory [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = same as that of srcDescPtr) [in] roiTensorPtrSrc ROI data in HIP memory, for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y)) [in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB) [in] rppHandle RPP HIP handle created with rppCreateWithStreamAndBatchSize() 
- Returns
 - A 
RppStatusenumeration. 
- Return values
 - 
  
RPP_SUCCESS Successful completion. RPP_ERROR* Unsuccessful completion.  
◆ rppt_bitwise_not_host()
| RppStatus rppt_bitwise_not_host | ( | RppPtr_t | srcPtr, | 
| RpptDescPtr | srcDescPtr, | ||
| RppPtr_t | dstPtr, | ||
| RpptDescPtr | dstDescPtr, | ||
| RpptROIPtr | roiTensorPtrSrc, | ||
| RpptRoiType | roiType, | ||
| rppHandle_t | rppHandle | ||
| ) | 
Bitwise NOT computation on HOST backend for a NCHW/NHWC layout tensor.
This function computes bitwise NOT of corresponding pixels for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.
 srcPtr depth ranges - Rpp8u (0 to 255). dstPtr depth ranges - Will be same depth as srcPtr. 
- Parameters
 - 
  
[in] srcPtr source tensor in HOST memory [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = 1/3) [out] dstPtr destination tensor in HOST memory [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = same as that of srcDescPtr) [in] roiTensorPtrSrc ROI data in HOST memory, for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y)) [in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB) [in] rppHandle RPP HOST handle created with rppCreateWithBatchSize() 
- Returns
 - A 
RppStatusenumeration. 
- Return values
 - 
  
RPP_SUCCESS Successful completion. RPP_ERROR* Unsuccessful completion.  
◆ rppt_bitwise_or_gpu()
| RppStatus rppt_bitwise_or_gpu | ( | RppPtr_t | srcPtr1, | 
| RppPtr_t | srcPtr2, | ||
| RpptDescPtr | srcDescPtr, | ||
| RppPtr_t | dstPtr, | ||
| RpptDescPtr | dstDescPtr, | ||
| RpptROIPtr | roiTensorPtrSrc, | ||
| RpptRoiType | roiType, | ||
| rppHandle_t | rppHandle | ||
| ) | 
Bitwise OR computation on HIP backend for a NCHW/NHWC layout tensor.
This function computes bitwise OR of corresponding pixels for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.
 srcPtr depth ranges - Rpp8u (0 to 255). dstPtr depth ranges - Will be same depth as srcPtr. 
- Parameters
 - 
  
[in] srcPtr1 source1 tensor in HIP memory [in] srcPtr2 source2 tensor in HIP memory [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = 1/3) [out] dstPtr destination tensor in HIP memory [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = same as that of srcDescPtr) [in] roiTensorPtrSrc ROI data in HIP memory, for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y)) [in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB) [in] rppHandle RPP HIP handle created with rppCreate() 
- Returns
 - A 
RppStatusenumeration. 
- Return values
 - 
  
RPP_SUCCESS Successful completion. RPP_ERROR* Unsuccessful completion.  
◆ rppt_bitwise_or_host()
| RppStatus rppt_bitwise_or_host | ( | RppPtr_t | srcPtr1, | 
| RppPtr_t | srcPtr2, | ||
| RpptDescPtr | srcDescPtr, | ||
| RppPtr_t | dstPtr, | ||
| RpptDescPtr | dstDescPtr, | ||
| RpptROIPtr | roiTensorPtrSrc, | ||
| RpptRoiType | roiType, | ||
| rppHandle_t | rppHandle | ||
| ) | 
Bitwise OR computation on HOST backend for a NCHW/NHWC layout tensor.
This function computes bitwise OR of corresponding pixels for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.
 srcPtr depth ranges - Rpp8u (0 to 255). dstPtr depth ranges - Will be same depth as srcPtr. 
- Parameters
 - 
  
[in] srcPtr1 source1 tensor in HOST memory [in] srcPtr2 source2 tensor in HOST memory [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = 1/3) [out] dstPtr destination tensor in HOST memory [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = same as that of srcDescPtr) [in] roiTensorPtrSrc ROI data in HOST memory, for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y)) [in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB) [in] rppHandle RPP HOST handle created with rppCreate() 
- Returns
 - A 
RppStatusenumeration. 
- Return values
 - 
  
RPP_SUCCESS Successful completion. RPP_ERROR* Unsuccessful completion.  
◆ rppt_bitwise_xor_gpu()
| RppStatus rppt_bitwise_xor_gpu | ( | RppPtr_t | srcPtr1, | 
| RppPtr_t | srcPtr2, | ||
| RpptDescPtr | srcDescPtr, | ||
| RppPtr_t | dstPtr, | ||
| RpptDescPtr | dstDescPtr, | ||
| RpptROIPtr | roiTensorPtrSrc, | ||
| RpptRoiType | roiType, | ||
| rppHandle_t | rppHandle | ||
| ) | 
Bitwise XOR computation on HIP backend for a NCHW/NHWC layout tensor.
This function computes bitwise XOR of corresponding pixels for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.
 srcPtr depth ranges - Rpp8u (0 to 255). dstPtr depth ranges - Will be same depth as srcPtr. 
- Parameters
 - 
  
[in] srcPtr1 source1 tensor in HIP memory [in] srcPtr2 source2 tensor in HIP memory [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = 1/3) [out] dstPtr destination tensor in HIP memory [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = same as that of srcDescPtr) [in] roiTensorPtrSrc ROI data in HIP memory, for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y)) [in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB) [in] rppHandle RPP HIP handle created with rppCreateWithStreamAndBatchSize() 
- Returns
 - A 
RppStatusenumeration. 
- Return values
 - 
  
RPP_SUCCESS Successful completion. RPP_ERROR* Unsuccessful completion.  
◆ rppt_bitwise_xor_host()
| RppStatus rppt_bitwise_xor_host | ( | RppPtr_t | srcPtr1, | 
| RppPtr_t | srcPtr2, | ||
| RpptDescPtr | srcDescPtr, | ||
| RppPtr_t | dstPtr, | ||
| RpptDescPtr | dstDescPtr, | ||
| RpptROIPtr | roiTensorPtrSrc, | ||
| RpptRoiType | roiType, | ||
| rppHandle_t | rppHandle | ||
| ) | 
Bitwise XOR computation on HOST backend for a NCHW/NHWC layout tensor.
This function computes bitwise XOR of corresponding pixels for a batch of RGB(3 channel) / greyscale(1 channel) images with an NHWC/NCHW tensor layout.
 srcPtr depth ranges - Rpp8u (0 to 255). dstPtr depth ranges - Will be same depth as srcPtr. 
- Parameters
 - 
  
[in] srcPtr1 source1 tensor in HOST memory [in] srcPtr2 source2 tensor in HOST memory [in] srcDescPtr source tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = 1/3) [out] dstPtr destination tensor in HOST memory [in] dstDescPtr destination tensor descriptor (Restrictions - numDims = 4, offsetInBytes >= 0, dataType = U8, layout = NCHW/NHWC, c = same as that of srcDescPtr) [in] roiTensorPtrSrc ROI data in HOST memory, for each image in source tensor (2D tensor of size batchSize * 4, in either format - XYWH(xy.x, xy.y, roiWidth, roiHeight) or LTRB(lt.x, lt.y, rb.x, rb.y)) [in] roiType ROI type used (RpptRoiType::XYWH or RpptRoiType::LTRB) [in] rppHandle RPP HOST handle created with rppCreateWithBatchSize() 
- Returns
 - A 
RppStatusenumeration. 
- Return values
 - 
  
RPP_SUCCESS Successful completion. RPP_ERROR* Unsuccessful completion.