NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
ImageTransformation.h File Reference

Detailed Description

NVIDIA DriveWorks API: Image Transformation Methods

Description: This file defines image transformation methods.

Definition in file ImageTransformation.h.

Go to the source code of this file.

Data Structures

struct  dwImageTransformationParameters
 

Typedefs

typedef struct dwImageTransformationParameters dwImageTransformationParameters
 
typedef struct dwImageTransformationObject * dwImageTransformationHandle_t
 The image transformation handle. More...
 

Functions

DW_API_PUBLIC dwStatus dwImageTransformation_initialize (dwImageTransformationHandle_t *handle, dwImageTransformationParameters params, dwContextHandle_t context)
 Initializes an Image Transformation Engine with the given parameters. More...
 
DW_API_PUBLIC dwStatus dwImageTransformation_reset (dwImageTransformationHandle_t handle)
 Resets an Image Transformation Engine. More...
 
DW_API_PUBLIC dwStatus dwImageTransformation_release (dwImageTransformationHandle_t handle)
 Releases the passed Transformation Engine, deallocating all the resources used. More...
 
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 dwImageTransformation_copy,. More...
 
DW_API_PUBLIC dwStatus dwImageTransformation_registerImages (dwImagePool imagePool, dwImageTransformationHandle_t handle)
 Register all images that the transformation engine has to work with. More...
 
DW_API_PUBLIC dwStatus dwImageTransformation_setCUDAStream (cudaStream_t stream, dwImageTransformationHandle_t handle)
 Sets the cuda stream used by the APIs of Image Transformation. More...
 
DW_API_PUBLIC dwStatus dwImageTransformation_getCUDAStream (cudaStream_t *stream, dwImageTransformationHandle_t handle)
 Gets the cuda stream used by the APIs of Image Transformation. More...
 
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, in a specified subregion, of the same type (CUDA or NvMedia) and format (any) Note that when the images are NvMedia, synchronization with NvMedia2D (VIC unit) will be handled automatically through the cudaStream set (see dwImageTransformation_setCUDAStream) when in non safety environment. More...
 
DW_API_PUBLIC dwStatus dwImageTransformation_fillNvSciSyncAttrs (NvSciSyncAttrList syncAttrList, dwSyncType syncType, dwImageTransformationHandle_t handle)
 Fill the sync attributes for the imagetransformation to signal EOF fences. More...
 
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. More...
 
DW_API_PUBLIC dwStatus dwImageTransformation_getEOFFence (NvSciSyncFence *syncFence, dwImageTransformationHandle_t handle)
 Get EOF fence of the current operation. More...
 
DW_API_PUBLIC dwStatus dwImageTransformation_addPrefenceWait (const NvSciSyncFence *syncFence, dwImageTransformationHandle_t handle)
 Add prefence for NvMedia2D to wait. More...