NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access 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 
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 
154 
171 
192 
229  const dwRect* outputROI, const dwRect* inputROI,
231 
251 
270 
288 
306 #ifdef __cplusplus
307 }
308 #endif
309 
310 #endif // DW_IMAGEPROCESSING_H_
dwImageTransformation_reset
DW_API_PUBLIC dwStatus dwImageTransformation_reset(dwImageTransformationHandle_t handle)
Resets an Image Transformation Engine.
Types.h
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...
Image.h
dwImageTransformation_release
DW_API_PUBLIC dwStatus dwImageTransformation_release(dwImageTransformationHandle_t handle)
Releases the passed Transformation Engine, deallocating all the resources used.
NvSciSyncAttrList
struct NvSciSyncAttrListRec * NvSciSyncAttrList
A container constituting an NvSciSyncAttrList which contains:
Definition: nvscisync.h:327
nvscisync.h
NVIDIA Software Communications Interface (SCI) : NvSciSync
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.
dwSyncType
dwSyncType
Enum representing a sync type.
Definition: image/Image.h:69
dwRect
Defines a rectangle.
Definition: GeometricTypes.h:53
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
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
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.
dwImageHandle_t
struct dwImageObject * dwImageHandle_t
Handle to an image object.
Definition: image/Image.h:99
dwImageProperties
Defines the properties of the image.
Definition: image/Image.h:523
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
NvSciSyncFence
Defines the opaque NvSciSyncFence.
Definition: nvscisync.h:253
dwImageTransformationHandle_t
struct dwImageTransformationObject * dwImageTransformationHandle_t
The image transformation handle.
Definition: ImageTransformation.h:51
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
dwImagePool
Specifies a pool of images.
Definition: image/Image.h:109
handle
const WFDCommitType const WFDHandle handle
Definition: wfdext.h:532
dwImageTransformation_getEOFFence
DW_API_PUBLIC dwStatus dwImageTransformation_getEOFFence(NvSciSyncFence *syncFence, dwImageTransformationHandle_t handle)
Get EOF fence of the current operation.
dwImageTransformation_copy
DW_API_PUBLIC dwStatus dwImageTransformation_copy(dwImageHandle_t outputImage, const dwImageHandle_t inputImage, const dwRect *outputROI, const dwRect *inputROI, dwImageTransformationHandle_t handle)
@req{GID-AV_REQ-6774505} @req{GID-AV_REQ-6774506} @req{GID-AV_REQ-6774507} @req{GID-AV_REQ-6774508} @...
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: core/base/Exports.h:57
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.
NvSciSyncObj
struct NvSciSyncObjRec * NvSciSyncObj
A Synchronization Object is a container holding the reconciled NvSciSyncAttrList defining constraints...
Definition: nvscisync.h:308
dwImageTransformation_registerImages
DW_API_PUBLIC dwStatus dwImageTransformation_registerImages(dwImagePool imagePool, dwImageTransformationHandle_t handle)
@req{GID-AV_REQ-6774504}
Context.h
dwImageTransformationParameters
struct dwImageTransformationParameters dwImageTransformationParameters