NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
ImageTransformation.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2015-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
29 #ifndef DW_IMAGEPROCESSING_GEOMETRY_IMAGETRANSFORMATION_H_
30 #define DW_IMAGEPROCESSING_GEOMETRY_IMAGETRANSFORMATION_H_
31 
32 #include <dw/core/context/Context.h>
33 #include <dw/core/base/Types.h>
34 #include <dw/image/Image.h>
35 #include <nvscisync.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
42 {
47  uint8_t useNvMedia;
49 
51 typedef struct dwImageTransformationObject* dwImageTransformationHandle_t;
52 
69  dwContextHandle_t context);
70 
85 
100 
132 
152 
169 
190 
217  const dwRect* outputROI, const dwRect* inputROI,
219 
239 
258 
276 
294 #ifdef __cplusplus
295 }
296 #endif
297 
298 #endif // DW_IMAGEPROCESSING_H_
NvSciSyncObj
struct NvSciSyncObjRec * NvSciSyncObj
Definition: wfdext.h:86
dwImageTransformation_reset
DW_API_PUBLIC dwStatus dwImageTransformation_reset(dwImageTransformationHandle_t handle)
Resets an Image Transformation Engine.
dwImageTransformation_appendAllocationAttributes
DW_API_PUBLIC dwStatus dwImageTransformation_appendAllocationAttributes(dwImageProperties *const imgProps, dwImageTransformationHandle_t handle)
Append the allocation attribute such that the images created of type DW_IMAGE_NVMEDIA can be fed to d...
dwImageTransformation_release
DW_API_PUBLIC dwStatus dwImageTransformation_release(dwImageTransformationHandle_t handle)
Releases the passed Transformation Engine, deallocating all the resources used.
nvscisync.h
NVIDIA Software Communications Interface (SCI) : NvSciSync
handle
const WFDCommitType const WFDHandle handle
Definition: wfdext.h:124
dwImageTransformation_fillNvSciSyncAttrs
DW_API_PUBLIC dwStatus dwImageTransformation_fillNvSciSyncAttrs(NvSciSyncAttrList syncAttrList, dwSyncType syncType, dwImageTransformationHandle_t handle)
Fill the sync attributes for the imagetransformation to signal EOF fences.
dwRect
Defines a rectangle.
Definition: GeometricTypes.h:47
dwImageTransformation_setNvSciSyncObj
DW_API_PUBLIC dwStatus dwImageTransformation_setNvSciSyncObj(NvSciSyncObj syncObj, dwSyncType syncType, dwImageTransformationHandle_t handle)
Set the sync obj to which the imagetransformation will signal EOF fences.
dwImageTransformationParameters
Definition: ImageTransformation.h:41
dwImageTransformation_getCUDAStream
DW_API_PUBLIC dwStatus dwImageTransformation_getCUDAStream(cudaStream_t *stream, dwImageTransformationHandle_t handle)
Gets the cuda stream used by the APIs of Image Transformation.
dwImageTransformation_addPrefenceWait
DW_API_PUBLIC dwStatus dwImageTransformation_addPrefenceWait(const NvSciSyncFence *syncFence, dwImageTransformationHandle_t handle)
Add prefence for NvMedia2D to wait.
dwImageProperties
Defines the properties of the image.
Definition: Image.h:477
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:74
NvSciSyncFence
Defines the opaque NvSciSyncFence.
Definition: nvscisync.h:256
dwImageTransformationHandle_t
struct dwImageTransformationObject * dwImageTransformationHandle_t
The image transformation handle.
Definition: ImageTransformation.h:51
dwImageHandle_t
struct dwImageObject * dwImageHandle_t
Definition: Image.h:88
dwImageTransformationParameters::useNvMedia
uint8_t useNvMedia
Boolean indicating whether to use NvMedia (>0) or not (0). Default is 1.
Definition: ImageTransformation.h:47
dwImageTransformationParameters::ignoreAspectRatio
uint8_t ignoreAspectRatio
Boolean indicating whether the aspect ratio of the input image should be kept (0) or the image should...
Definition: ImageTransformation.h:45
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
dwImagePool
Specifies a pool of images.
Definition: Image.h:95
dwImageTransformation_getEOFFence
DW_API_PUBLIC dwStatus dwImageTransformation_getEOFFence(NvSciSyncFence *syncFence, dwImageTransformationHandle_t handle)
Get EOF fence of the current operation.
NvSciSyncAttrList
struct NvSciSyncAttrListRec * NvSciSyncAttrList
Definition: wfdext.h:88
dwImageTransformation_copy
DW_API_PUBLIC dwStatus dwImageTransformation_copy(dwImageHandle_t outputImage, const dwImageHandle_t inputImage, const dwRect *outputROI, const dwRect *inputROI, dwImageTransformationHandle_t handle)
Resizes the input image subregion and copies the result into the previously allocated output image,...
params
DW_API_PUBLIC dwPointCloudRangeImageCreatorParams const *const params
Definition: PointCloudRangeImageCreator.h:292
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: Exports.h:38
dwSyncType
dwSyncType
Enum representing a sync type.
Definition: Image.h:67
dwImageTransformation_initialize
DW_API_PUBLIC dwStatus dwImageTransformation_initialize(dwImageTransformationHandle_t *handle, dwImageTransformationParameters params, dwContextHandle_t context)
Initializes an Image Transformation Engine with the given parameters.
dwImageTransformation_setCUDAStream
DW_API_PUBLIC dwStatus dwImageTransformation_setCUDAStream(cudaStream_t stream, dwImageTransformationHandle_t handle)
Sets the cuda stream used by the APIs of Image Transformation.
dwImageTransformation_registerImages
DW_API_PUBLIC dwStatus dwImageTransformation_registerImages(dwImagePool imagePool, dwImageTransformationHandle_t handle)
Register all images that the transformation engine has to work with.
dwImageTransformationParameters
struct dwImageTransformationParameters dwImageTransformationParameters