NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
Description: This file defines methods for image conversion.
Definition in file Image.h.
Go to the source code of this file.
| Data Structures | |
| struct | dwExposureDuration | 
| struct | dwImageCPU | 
| Defines a CPU-based image.  More... | |
| struct | dwImageCUDA | 
| Defines a CUDA image.  More... | |
| struct | dwImageDataLines | 
| Container for data lines from the camera.  More... | |
| struct | dwImageMetaData | 
| Additional meta information stored with each image.  More... | |
| struct | dwImageNvMedia | 
| Defines an NvMedia image.  More... | |
| struct | dwImagePool | 
| Specifies a pool of images.  More... | |
| struct | dwImageProperties | 
| Defines the properties of the image.  More... | |
| struct | dwImageRawProperties | 
| struct | dwImageSensorStatistics | 
| Sensor statistics associated with the image.  More... | |
| struct | dwImageSplineControlPoint | 
| struct | dwImageTimestamps | 
| Image timestamps.  More... | |
| struct | dwSensorTemperature | 
| Macros | |
| #define | DW_DEVBLK_CDI_MAX_EXPOSURES 4 | 
| #define | DW_IMAGE_NUM_SPLINE_COMPONENTS 18U | 
| #define | DW_ISP_MAX_COLOR_COMPONENT (4U) | 
| #define | DW_LUMINANCE_CALIB_MATRIX_SIZE 4 | 
| Defines the length(M) of a MxM luminance calibration matrix.  More... | |
| #define | DW_MAX_IMAGE_PLANES 3 | 
| #define | DW_MAX_NUM_TEMPERATURES 4 | 
| should be the same as the DEVBLK_CDI_MAX_NUM_TEMPERATURES in NvSIPLCDICommon.h of NvSIPL  More... | |
| Typedefs | |
| typedef struct dwImageObject const * | dwConstImageHandle_t | 
| typedef struct dwImageAllocationAttrList * | dwImageAllocationAttrListHandle_t | 
| dwImage Allocation Attributes List  More... | |
| typedef struct dwImageObject * | dwImageHandle_t | 
| Functions | |
| DW_API_PUBLIC dwStatus | dwImage_copyConvert (dwImageHandle_t const output, dwConstImageHandle_t const input, dwContextHandle_t const context) | 
| Converts CUDA or NvMedia images by copying into an output image, following the properties in the output image.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_copyConvertAsync (dwImageHandle_t const output, dwConstImageHandle_t const input, cudaStream_t const stream, dwContextHandle_t const context) | 
| Converts CUDA or NvMedia images by copying into an output image, following the properties in the output image.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_create (dwImageHandle_t *const image, dwImageProperties properties, dwContextHandle_t const ctx) | 
| Creates and allocates resources for a dwImageHandle_t based on the properties passed as input.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_createAndBindBuffer (dwImageHandle_t *const image, dwImageProperties properties, void *const buffersIn[DW_MAX_IMAGE_PLANES], size_t const pitches[DW_MAX_IMAGE_PLANES], size_t const bufferCount, dwContextHandle_t const ctx) | 
| Creates a dwImageHandle_t based on the properties passed and binds a memory buffer provided by the application.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_createAndBindCUDAArray (dwImageHandle_t *const image, dwImageProperties properties, cudaArray_t const buffers[DW_MAX_IMAGE_PLANES], size_t const bufferCount, dwContextHandle_t const ctx) | 
| Creates a dwImageHandle_t based on the properties passed and binds a cudaArray_t to it.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_destroy (dwImageHandle_t const image) | 
| Destroys the image handle and frees any memory created by dwImage_create().  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getCPU (dwImageCPU **const imageCPU, dwImageHandle_t const image) | 
| Retrieves the dwImageCPU of a dwImageHandle_t.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getCUDA (dwImageCUDA **const imageCUDA, dwImageHandle_t const image) | 
| Retrieves the dwImageCUDA of a dwImageHandle_t.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getDataLayout (size_t *const elementSize, size_t *const planeCount, uint32_t planeChannelCount[DW_MAX_IMAGE_PLANES], dwVector2ui planeSize[DW_MAX_IMAGE_PLANES], dwImageProperties const *const prop) | 
| Returns the expected data layout of an image given its properties.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getMetaData (dwImageMetaData *const metaData, dwConstImageHandle_t const image) | 
| Retrieves the metadata of a dwImageHandle_t.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getNvMedia (dwImageNvMedia **imageNvMedia, dwImageHandle_t image) | 
| Retrieves the dwImageNvMedia of a dwImageHandle_t.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getPixelType (dwTrivialDataType *const type, dwImageFormat const format) | 
| Retrieves dwTrivialDataType associated with a specific format.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getPlaneCount (size_t *const planeCount, dwImageFormat const format) | 
| Retrieves number of planes of the image format.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getProperties (dwImageProperties *const properties, dwConstImageHandle_t const image) | 
| Retrieves the properties of a dwImageHandle_t.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_getTimestamp (dwTime_t *const timestamp, dwConstImageHandle_t const image) | 
| Retrieves the timestamp of acquisition of a dwImageHandle_t.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_setMetaData (dwImageMetaData const *const metaData, dwImageHandle_t const image) | 
| Sets the metadata of a dwImageHandle_t.  More... | |
| DW_API_PUBLIC dwStatus | dwImage_setTimestamp (dwTime_t const timestamp, dwImageHandle_t const image) | 
| Sets the timestamp of a dwImageHandle_t.  More... | |
| DW_API_PUBLIC dwStatus | dwImageCUDA_getPlaneAsImage (dwImageCUDA *const planeImage, dwImageCUDA const *const srcImage, uint32_t const planeIdx) | 
| Returns a specific plane of a CUDA image as its own single-plane CUDA image.  More... | |
| DW_API_PUBLIC dwStatus | dwImageCUDA_mapToROI (dwImageCUDA *const dstImg, dwImageCUDA const *const srcImg, dwRect const roi) | 
| Returns a dwImageCUDA that is mapped to a region of interest in the data of the srcImg.  More... | |