Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.14.77 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    Image.h File Reference

    Detailed Description

    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  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
     

    Enumerations

    enum  dwImageFormat {
      DW_IMAGE_FORMAT_UNKNOWN = 0 ,
      DW_IMAGE_FORMAT_R_INT16 = 900 ,
      DW_IMAGE_FORMAT_R_UINT8 = 1000 ,
      DW_IMAGE_FORMAT_R_UINT16 ,
      DW_IMAGE_FORMAT_R_UINT32 ,
      DW_IMAGE_FORMAT_R_FLOAT16 ,
      DW_IMAGE_FORMAT_R_FLOAT32 ,
      DW_IMAGE_FORMAT_RG_INT16 ,
      DW_IMAGE_FORMAT_RG_UINT8 ,
      DW_IMAGE_FORMAT_RG_FLOAT32 ,
      DW_IMAGE_FORMAT_RGB_UINT8 ,
      DW_IMAGE_FORMAT_RGB_UINT16 ,
      DW_IMAGE_FORMAT_RGB_FLOAT16 ,
      DW_IMAGE_FORMAT_RGB_FLOAT32 ,
      DW_IMAGE_FORMAT_RGBA_UINT8 ,
      DW_IMAGE_FORMAT_RGBA_UINT16 ,
      DW_IMAGE_FORMAT_RGBA_FLOAT16 ,
      DW_IMAGE_FORMAT_RGBA_FLOAT32 ,
      DW_IMAGE_FORMAT_RGBX_FLOAT16 = 1200 ,
      DW_IMAGE_FORMAT_VUYX_UINT8 ,
      DW_IMAGE_FORMAT_VUYX_UINT16 ,
      DW_IMAGE_FORMAT_RGB_UINT8_PLANAR = 2000 ,
      DW_IMAGE_FORMAT_RGB_UINT16_PLANAR ,
      DW_IMAGE_FORMAT_RGB_FLOAT16_PLANAR ,
      DW_IMAGE_FORMAT_RGB_FLOAT32_PLANAR ,
      DW_IMAGE_FORMAT_RCB_FLOAT16_PLANAR ,
      DW_IMAGE_FORMAT_RCB_FLOAT32_PLANAR ,
      DW_IMAGE_FORMAT_RCC_FLOAT16_PLANAR ,
      DW_IMAGE_FORMAT_RCC_FLOAT32_PLANAR ,
      DW_IMAGE_FORMAT_YUV420_UINT8_PLANAR = 3000 ,
      DW_IMAGE_FORMAT_YUV420_UINT8_SEMIPLANAR ,
      DW_IMAGE_FORMAT_YUV420_UINT16_SEMIPLANAR ,
      DW_IMAGE_FORMAT_YUV422_UINT8_SEMIPLANAR = 3100 ,
      DW_IMAGE_FORMAT_YUV_UINT8_PLANAR ,
      DW_IMAGE_FORMAT_YUV_UINT16_PLANAR ,
      DW_IMAGE_FORMAT_YUV422_UINT8_PACKED = 3200 ,
      DW_IMAGE_FORMAT_RAW_UINT16 = 4000 ,
      DW_IMAGE_FORMAT_RAW_FLOAT16
    }
     Format of the image represented as DW_IMAGE_FORMAT_COLORSPACE(_PIXELTYPE)(_PIXELORDER) More...
     
    enum  dwImageMemoryType {
      DW_IMAGE_MEMORY_TYPE_DEFAULT = 0 ,
      DW_IMAGE_MEMORY_TYPE_PITCH = 1 ,
      DW_IMAGE_MEMORY_TYPE_BLOCK = 2
    }
     Specifies memory type layout. More...
     
    enum  dwImageMetaDataFlags {
      DW_IMAGE_FLAGS_EMBEDDED_LINES = (1 << 2) ,
      DW_IMAGE_FLAGS_SENSOR_SETTINGS = (1 << 3) ,
      DW_IMAGE_FLAGS_FRAME_SEQUENCE_NUMBER = (1 << 4) ,
      DW_IMAGE_FLAGS_SYSMEM = (1 << 5) ,
      DW_IMAGE_FLAGS_HAS_RAW_ORDER_DESCRIPTOR = (1 << 6) ,
      DW_IMAGE_FLAGS_CONTROLINFO = (1 << 7) ,
      DW_IMAGE_FLAGS_LUMINANCE_CALIBRATED = (1 << 8) ,
      DW_IMAGE_FLAGS_TOTAL_WHITE_BALANCE_GAIN = (1 << 9) ,
      DW_IMAGE_FLAGS_GTM_SPLINE_INFO = (1 << 10) ,
      DW_IMAGE_FLAGS_SENSOR_TEMPERATURE = (1 << 11) ,
      DW_IMAGE_FLAGS_NVSCI_SURF_ATTR = (1 << 12) ,
      DW_IMAGE_FLAGS_MAPS_CUPVA = (1 << 13)
    }
     Flags defining the meta information available in an image. More...
     
    enum  dwImageType {
      DW_IMAGE_CPU = 0 ,
      DW_IMAGE_CUDA = 2 ,
      DW_IMAGE_NVMEDIA = 3 ,
      DW_IMAGE_GL = 0xFF
    }
     Specifies the image type. More...
     
    enum  dwSyncType {
      DW_SYNC_TYPE_WAITER ,
      DW_SYNC_TYPE_SIGNALER
    }
     Enum representing a sync type. More...
     

    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...
     
    人人超碰97caoporen国产