DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

ImageTransformation.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2015-2019 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
48 #ifndef DW_IMAGEPROCESSING_GEOMETRY_IMAGETRANSFORMATION_H_
49 #define DW_IMAGEPROCESSING_GEOMETRY_IMAGETRANSFORMATION_H_
50 
51 #include <dw/core/Context.h>
52 #include <dw/core/Types.h>
53 #include <dw/image/Image.h>
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59 
60 typedef struct dwImageTransformationObject* dwImageTransformationHandle_t;
61 
63 {
68 
80 dwStatus dwImageTransformation_initialize(dwImageTransformationHandle_t* handle, dwImageTransformationParameters params,
81  dwContextHandle_t context);
82 
91 dwStatus dwImageTransformation_reset(dwImageTransformationHandle_t obj);
92 
102 dwStatus dwImageTransformation_release(dwImageTransformationHandle_t handle);
103 
114  dwImageTransformationHandle_t obj);
115 
126  dwImageTransformationHandle_t obj);
127 
138 dwStatus dwImageTransformation_setCUDAStream(cudaStream_t stream, dwImageTransformationHandle_t obj);
139 
151 dwStatus dwImageTransformation_getCUDAStream(cudaStream_t* stream, dwImageTransformationHandle_t obj);
152 
168  const dwRect* outputROI, const dwRect* inputROI,
169  dwImageTransformationHandle_t obj);
170 
185  dwRect inputROI, dwImageTransformationHandle_t obj);
186 
200  dwImageTransformationHandle_t obj);
201 
202 #ifdef __cplusplus
203 }
204 #endif
205 
206 #endif // DW_IMAGEPROCESSING_H_
DW_API_PUBLIC dwStatus dwImageTransformation_copy(dwImageHandle_t outputImage, const dwImageHandle_t inputImage, const dwRect *outputROI, const dwRect *inputROI, dwImageTransformationHandle_t obj)
Resizes the input image subregion and copies the result into the previously allocated output image...
DW_API_PUBLIC dwStatus dwImageTransformation_reset(dwImageTransformationHandle_t obj)
Resets an Image Transformation Engine.
NVIDIA DriveWorks API: Core Types
struct dwImageObject * dwImageHandle_t
Definition: Image.h:99
DW_API_PUBLIC dwStatus dwImageTransformation_release(dwImageTransformationHandle_t handle)
Releases an Image Transformation Engine.
Defines a rectangle.
Definition: Types.h:189
DW_API_PUBLIC dwStatus dwImageTransformation_getCUDAStream(cudaStream_t *stream, dwImageTransformationHandle_t obj)
Gets the cuda stream used by the APIs of Image Transformation.
dwImageProcessingBorderMode
border mode (valid for DW_IMAGE_CUDA types)
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwImageTransformation_setCUDAStream(cudaStream_t stream, dwImageTransformationHandle_t obj)
Sets the cuda stream used by the APIs of Image Transformation.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwStatus
Status definition.
Definition: Status.h:178
DW_API_PUBLIC dwStatus dwImageTransformation_initialize(dwImageTransformationHandle_t *handle, dwImageTransformationParameters params, dwContextHandle_t context)
Initializes an Image Transformation Engine.
NVIDIA DriveWorks API: Image Transformation Methods
dwImageProcessingInterpolation
interpolation mode
DW_API_PUBLIC dwStatus dwImageTransformation_setBorderMode(dwImageProcessingBorderMode mode, dwImageTransformationHandle_t obj)
Sets the border mode used by the APIs of Image Transformation.
DW_API_PUBLIC dwStatus dwImageTransformation_copySubImage(dwImageHandle_t outputImage, const dwImageHandle_t inputImage, dwRect inputROI, dwImageTransformationHandle_t obj)
Resizes the input image sub region and copies the result into the previously allocated output image...
DW_API_PUBLIC dwStatus dwImageTransformation_setInterpolationMode(dwImageProcessingInterpolation mode, dwImageTransformationHandle_t obj)
Sets the interpolation mode used by the APIs of Image Transformation.
bool ignoreAspectRatio
Boolean indicating whether the aspect ratio of the input image should be kept (false) or the image sh...
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
struct dwImageTransformationObject * dwImageTransformationHandle_t
DW_API_PUBLIC dwStatus dwImageTransformation_copyFullImage(dwImageHandle_t outputImage, const dwImageHandle_t inputImage, dwImageTransformationHandle_t obj)
Resizes the input image and copies the result into the previously allocated output image...
#define DW_API_PUBLIC
Definition: Exports.h:56