NVIDIA DRIVE OS Linux API Reference

5.1.0.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NvMediaLDCRegionConfig Struct Reference

Detailed Description

Holds the NvMedia LDC region configuration.

The NvMediaLDCRegionConfig defines the layout of the control points in the destination image.

The control points will be used as the basis for geometric transformation from source image to the destination image. The remaining points will be transformed based on the interpolation. So the density of the control points will control the quality of the geometric transformation.

Example of defining regions in the image

(dstRect->x1 - dstRect->x0)
/ \
/ \
/ \
/ \ / \
|-------| |--------|
-------------------------------------- \
|******** ******** ... ******** |-- \
|* + + * * * ... * * | \ \
|* + + * * * * * | verRegionHeight[0] \
|* + + * * * * * | / \
|******** ******** ******** |-- \
|.. .. | \
|.. .. |
|.. .. | (dstRect->y1 - dstRect->y0)
| |
| | /
|******** ********... ******** |-- /
|* * * *... * * | \ /
|* * * * * * | verRegionHeight[numVerRegion -1] /
|* * * * * * | / /
|******** ******** ******** |-- /
--------------------------------------

Example of defining control points in one region

*********
* + + *-- \
* * (1 << log2verSpace)
* + + *-- /
* *
*********
|--|
(1 << log2horSpace)

Restrictions

  • numHorRegion cannot exceed NVMEDIA_LDC_MAX_HOR_REGION
  • numVerRegion cannot exceed NVMEDIA_LDC_MAX_VER_REGION
  • Alignment restrictions:
    • horRegionWidth[0] to horRegionWidth[numHorRegion-2] must be greater than and aligned to NVMEDIA_LDC_MIN_REGION_WIDTH. horRegionWidth[numHorRegion-1] must be greater than NVMEDIA_LDC_MIN_REGION_WIDTH.
    • verRegionHeight[0] to verRegionHeight[numVerRegion-2] must be greater than and aligned to NVMEDIA_LDC_MIN_REGION_HEIGHT. verRegionHeight[numVerRegion-1] must be greater than NVMEDIA_LDC_MIN_REGION_HEIGHT.
  • Region width/height restrictions:
    • The sum of horRegionWidth[] must be equal to the width of the dstRect argument passed to NvMediaLDCCreate().
    • The sum of verRegionHeight[] must be equal to the height of dstRect argument passed to NvMediaLDCCreate().

Definition at line 294 of file nvmedia_ldc.h.

Data Fields

uint8_t numHorRegion
 Specifies the number of horizontal regions. More...
 
uint8_t numVerRegion
 Specifies the number of vertical regions. More...
 
uint16_t horRegionWidth [NVMEDIA_LDC_MAX_HOR_REGION]
 Specifies the width of regions. More...
 
uint16_t verRegionHeight [NVMEDIA_LDC_MAX_VER_REGION]
 Specifies the height of regions. More...
 
uint16_t log2horSpace [NVMEDIA_LDC_MAX_HOR_REGION]
 Specifies the horizontal interval between the control points in each region in log2 space. More...
 
uint16_t log2verSpace [NVMEDIA_LDC_MAX_VER_REGION]
 Specifies the vertical interval between the control points in each region in log2 space. More...
 

Field Documentation

uint16_t NvMediaLDCRegionConfig::horRegionWidth[NVMEDIA_LDC_MAX_HOR_REGION]

Specifies the width of regions.

Definition at line 304 of file nvmedia_ldc.h.

uint16_t NvMediaLDCRegionConfig::log2horSpace[NVMEDIA_LDC_MAX_HOR_REGION]

Specifies the horizontal interval between the control points in each region in log2 space.

Definition at line 311 of file nvmedia_ldc.h.

uint16_t NvMediaLDCRegionConfig::log2verSpace[NVMEDIA_LDC_MAX_VER_REGION]

Specifies the vertical interval between the control points in each region in log2 space.

Definition at line 315 of file nvmedia_ldc.h.

uint8_t NvMediaLDCRegionConfig::numHorRegion

Specifies the number of horizontal regions.

Allowed values are [1, 4], inclusive.

Definition at line 297 of file nvmedia_ldc.h.

uint8_t NvMediaLDCRegionConfig::numVerRegion

Specifies the number of vertical regions.

Allowed values are [1, 4], inclusive.

Definition at line 301 of file nvmedia_ldc.h.

uint16_t NvMediaLDCRegionConfig::verRegionHeight[NVMEDIA_LDC_MAX_VER_REGION]

Specifies the height of regions.

Definition at line 307 of file nvmedia_ldc.h.


The documentation for this struct was generated from the following file: