api/rppi_legacy_augmentations.h Source File

api/rppi_legacy_augmentations.h Source File#

RPP: api/rppi_legacy_augmentations.h Source File
rppi_legacy_augmentations.h
1 /*
2 MIT License
3 
4 Copyright (c) 2019 - 2025 Advanced Micro Devices, Inc.
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12 
13 The above copyright notice and this permission notice shall be included in all
14 copies or substantial portions of the Software.
15 
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 SOFTWARE.
23 */
24 
25 #include "rppdefs.h"
26 #include "rpp.h"
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif // cpusplus
31 
32 
33 /******************** fisheye ********************/
34 
35 // Performs a fisheye transformation for a batch of images
36 
37 // *param[in] srcPtr Input image batch
38 // *param[in] srcSize Array containing an RppiSize for each image in the batch
39 // *param[in] maxSrcSize A single RppiSize which is the maxWidth and maxHeight for all images in the batch
40 // *param[out] dstPtr Output image batch
41 // *param[in] nbatchSize Batch size or the number of images in the batch
42 // *param[in] rppHandle OpenCL-handle/HIP-handle for "_gpu" variants and Host-handle for "_host" variants
43 // *returns a RppStatus enumeration.
44 // *retval RPP_SUCCESS : No error, Succesful completion
45 // *retval RPP_ERROR : Error
46 
47 RppStatus rppi_fisheye_u8_pln1_batchPD_host(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32u nbatchSize, rppHandle_t rppHandle);
48 RppStatus rppi_fisheye_u8_pkd3_batchPD_host(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32u nbatchSize, rppHandle_t rppHandle);
49 #ifdef GPU_SUPPORT
50 RppStatus rppi_fisheye_u8_pln1_batchPD_gpu(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32u nbatchSize, rppHandle_t rppHandle);
51 RppStatus rppi_fisheye_u8_pkd3_batchPD_gpu(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32u nbatchSize, rppHandle_t rppHandle);
52 #endif // GPU_SUPPORT
53 
54 /******************** snow ********************/
55 
56 // Adds a snowfall overlay for a batch of images
57 
58 // *param[in] srcPtr Input image batch
59 // *param[in] srcSize Array containing an RppiSize for each image in the batch
60 // *param[in] maxSrcSize A single RppiSize which is the maxWidth and maxHeight for all images in the batch
61 // *param[out] dstPtr Output image batch
62 // *param[in] snowValue Array containing an Rpp32f snow-value for each image in the batch (0 <= snowValue <= 1)
63 // *param[in] nbatchSize Batch size or the number of images in the batch
64 // *param[in] rppHandle OpenCL-handle/HIP-handle for "_gpu" variants and Host-handle for "_host" variants
65 // *returns a RppStatus enumeration.
66 // *retval RPP_SUCCESS : No error, Succesful completion
67 // *retval RPP_ERROR : Error
68 
69 RppStatus rppi_snow_u8_pln1_batchPD_host(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32f *snowValue, Rpp32u nbatchSize, rppHandle_t rppHandle);
70 RppStatus rppi_snow_u8_pkd3_batchPD_host(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32f *snowValue, Rpp32u nbatchSize, rppHandle_t rppHandle);
71 #ifdef GPU_SUPPORT
72 RppStatus rppi_snow_u8_pln1_batchPD_gpu(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32f *snowValue, Rpp32u nbatchSize, rppHandle_t rppHandle);
73 RppStatus rppi_snow_u8_pkd3_batchPD_gpu(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32f *snowValue, Rpp32u nbatchSize, rppHandle_t rppHandle);
74 #endif // GPU_SUPPORT
75 
76 /******************** hue ********************/
77 
78 // Adjusts hue of a batch of images
79 
80 // *param[in] srcPtr Input image batch
81 // *param[in] srcSize Array containing an RppiSize for each image in the batch
82 // *param[in] maxSrcSize A single RppiSize which is the maxWidth and maxHeight for all images in the batch
83 // *param[out] dstPtr Output image batch
84 // *param[in] hueShift Array containing an Rpp32f hue shift angle inn degrees for each image in the batch (hueShift[n] >= 0)
85 // *param[in] nbatchSize Batch size or the number of images in the batch
86 // *param[in] rppHandle OpenCL-handle/HIP-handle for "_gpu" variants and Host-handle for "_host" variants
87 // *returns a RppStatus enumeration.
88 // *retval RPP_SUCCESS : No error, Succesful completion
89 // *retval RPP_ERROR : Error
90 
91 RppStatus rppi_hueRGB_u8_pkd3_batchPD_host(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32f *hueShift, Rpp32u nbatchSize, rppHandle_t rppHandle);
92 #ifdef GPU_SUPPORT
93 RppStatus rppi_hueRGB_u8_pkd3_batchPD_gpu(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32f *hueShift, Rpp32u nbatchSize, rppHandle_t rppHandle);
94 #endif // GPU_SUPPORT
95 
96 /******************** saturation ********************/
97 
98 // Adjusts saturation of a batch of images
99 
100 // *param[in] srcPtr Input image batch
101 // *param[in] srcSize Array containing an RppiSize for each image in the batch
102 // *param[in] maxSrcSize A single RppiSize which is the maxWidth and maxHeight for all images in the batch
103 // *param[out] dstPtr Output image batch
104 // *param[in] saturationFactor Array containing an Rpp32f saturation factor for each image in the batch (saturationFactor[n] >= 0)
105 // *param[in] nbatchSize Batch size or the number of images in the batch
106 // *param[in] rppHandle OpenCL-handle/HIP-handle for "_gpu" variants and Host-handle for "_host" variants
107 // *returns a RppStatus enumeration.
108 // *retval RPP_SUCCESS : No error, Succesful completion
109 // *retval RPP_ERROR : Error
110 
111 RppStatus rppi_saturationRGB_u8_pkd3_batchPD_host(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32f *saturationFactor, Rpp32u nbatchSize, rppHandle_t rppHandle);
112 #ifdef GPU_SUPPORT
113 RppStatus rppi_saturationRGB_u8_pkd3_batchPD_gpu(RppPtr_t srcPtr, RppiSize *srcSize, RppiSize maxSrcSize, RppPtr_t dstPtr, Rpp32f *saturationFactor, Rpp32u nbatchSize, rppHandle_t rppHandle);
114 #endif // GPU_SUPPORT
115 
116 #ifdef __cplusplus
117 }
118 #endif // cpusplus
unsigned int Rpp32u
32 bit unsigned int
Definition: rppdefs.h:97
void * RppPtr_t
void pointer
Definition: rppdefs.h:109
RppStatus
RPP RppStatus type enums.
Definition: rppdefs.h:117
float Rpp32f
32 bit float
Definition: rppdefs.h:105
RPP top-level header with RPP handle API.
RPP common HOST/GPU typedef, enum and structure definitions.
RPPI Image size(Width/Height dimensions) type struct.
Definition: rppdefs.h:373