DriveWorks SDK Reference
4.0.0 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 
46 #ifndef DW_IMAGEPROCESSING_GEOMETRY_IMAGETRANSFORMATION_H_
47 #define DW_IMAGEPROCESSING_GEOMETRY_IMAGETRANSFORMATION_H_
48 
50 #include <dw/core/base/Types.h>
51 #include <dw/image/Image.h>
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 typedef struct dwImageTransformationObject* dwImageTransformationHandle_t;
59 
61 {
66 
78 dwStatus dwImageTransformation_initialize(dwImageTransformationHandle_t* handle, dwImageTransformationParameters params,
79  dwContextHandle_t context);
80 
89 dwStatus dwImageTransformation_reset(dwImageTransformationHandle_t obj);
90 
100 dwStatus dwImageTransformation_release(dwImageTransformationHandle_t handle);
101 
112  dwImageTransformationHandle_t obj);
113 
124  dwImageTransformationHandle_t obj);
125 
136 dwStatus dwImageTransformation_setCUDAStream(cudaStream_t stream, dwImageTransformationHandle_t obj);
137 
149 dwStatus dwImageTransformation_getCUDAStream(cudaStream_t* stream, dwImageTransformationHandle_t obj);
150 
166  const dwRect* outputROI, const dwRect* inputROI,
167  dwImageTransformationHandle_t obj);
168 
183  dwRect inputROI, dwImageTransformationHandle_t obj);
184 
198  dwImageTransformationHandle_t obj);
199 
200 #ifdef __cplusplus
201 }
202 #endif
203 
204 #endif // DW_IMAGEPROCESSING_H_
NVIDIA DriveWorks API: Core Types
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.
struct dwImageObject * dwImageHandle_t
Definition: Image.h:100
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)
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:180
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:79
struct dwImageTransformationObject * dwImageTransformationHandle_t
NVIDIA DriveWorks API: Core Methods
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:54