DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

ImageTransformation.h
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2015-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is 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#include <nvscisync.h>
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
60typedef struct dwImageTransformationObject* dwImageTransformationHandle_t;
61
74 dwContextHandle_t context);
75
86
97
126
141
152DW_DEPRECATED("dwImageTransformation_setBorderMode is deprecated, only 0 edge border mode is available by default.")
155
166DW_DEPRECATED("dwImageTransformation_setInterpolationMode is deprecated, only linear interpolation is available by default.")
169
182
196
213 const dwRect* outputROI, const dwRect* inputROI,
215
232
248
264
279
293
307#ifdef __cplusplus
308}
309#endif
311#endif // DW_IMAGEPROCESSING_H_
NVIDIA DriveWorks API: Core Methods
dwStatus
Status definition.
Definition: ErrorDefs.h:44
NVIDIA DriveWorks API: Image Transformation Methods
NVIDIA DriveWorks API: Core Types
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:86
#define DW_DEPRECATED(msg)
Definition: Exports.h:68
#define DW_API_PUBLIC
Definition: Exports.h:56
struct dwImageObject * dwImageHandle_t
Definition: Image.h:105
dwSyncType
Enum representing a sync type.
Definition: Image.h:84
Specifies a pool of images.
Definition: Image.h:113
Defines the properties of the image.
Definition: Image.h:492
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,...
DW_API_PUBLIC dwStatus dwImageTransformation_getCUDAStream(cudaStream_t *stream, dwImageTransformationHandle_t handle)
Gets the cuda stream used by the APIs of Image Transformation.
DW_API_PUBLIC dwStatus dwImageTransformation_getEOFFence(NvSciSyncFence *syncFence, dwImageTransformationHandle_t handle)
Get EOF fence of the current operation.
DW_API_PUBLIC dwStatus dwImageTransformation_initialize(dwImageTransformationHandle_t *handle, dwImageTransformationParameters params, dwContextHandle_t context)
Initializes an Image Transformation Engine with the given parameters.
DW_API_PUBLIC dwStatus dwImageTransformation_copyFullImage(dwImageHandle_t const outputImage, dwImageHandle_t const inputImage, dwImageTransformationHandle_t const handle)
Resizes the input image and copies the result into the previously allocated output image,...
DW_API_PUBLIC dwStatus dwImageTransformation_registerImages(dwImagePool imagePool, dwImageTransformationHandle_t handle)
All (both input and output) images that the transformation engine has to work with (NvMedia2D VIC mod...
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.
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...
struct dwImageTransformationObject * dwImageTransformationHandle_t
The image transformation handle.
DW_API_PUBLIC dwStatus dwImageTransformation_release(dwImageTransformationHandle_t handle)
Releases the passed Transformation Engine, deallocating all the resources used.
DW_API_PUBLIC dwStatus dwImageTransformation_setInterpolationMode(dwImageProcessingInterpolation mode, dwImageTransformationHandle_t handle)
Sets the interpolation mode used by the APIs of Image Transformation.
DW_API_PUBLIC dwStatus dwImageTransformation_addPrefenceWait(const NvSciSyncFence *syncFence, dwImageTransformationHandle_t handle)
Add prefence for NvMedia2D to wait.
DW_API_PUBLIC dwStatus dwImageTransformation_setCUDAStream(cudaStream_t stream, dwImageTransformationHandle_t handle)
Sets the cuda stream used by the APIs of Image Transformation.
dwImageProcessingBorderMode
Border mode (valid for DW_IMAGE_CUDA types)
DW_API_PUBLIC dwStatus dwImageTransformation_copySubImage(dwImageHandle_t const outputImage, dwImageHandle_t const inputImage, dwRect const inputROI, dwImageTransformationHandle_t const handle)
Resizes the input image sub region and copies the result into the previously allocated output image,...
DW_API_PUBLIC dwStatus dwImageTransformation_reset(dwImageTransformationHandle_t handle)
Resets an Image Transformation Engine.
dwImageProcessingInterpolation
Interpolation mode.
DW_API_PUBLIC dwStatus dwImageTransformation_fillNvSciSyncAttrs(NvSciSyncAttrList syncAttrList, dwSyncType syncType, dwImageTransformationHandle_t handle)
Fill the sync attributes for the imagetransformation to signal EOF fences.
DW_API_PUBLIC dwStatus dwImageTransformation_setBorderMode(dwImageProcessingBorderMode mode, dwImageTransformationHandle_t handle)
Sets the border mode used by the APIs of Image Transformation.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
Defines a rectangle.