NVIDIA DRIVE OS Linux SDK API Reference

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

This structure defines the layout of the control points in the destination image.

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

This is an example of defining regions in the image:

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

This is an example of defining control points in one region:

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

Restrictions

Definition at line 302 of file nvmedia_ldc.h.

Data Fields

uint8_t numHorRegion
 Holds the number of horizontal regions. More...
 
uint8_t numVerRegion
 Holds the number of vertical regions. More...
 
uint16_t horRegionWidth [NVMEDIA_LDC_MAX_HOR_REGION]
 Holds the width of regions. More...
 
uint16_t verRegionHeight [NVMEDIA_LDC_MAX_VER_REGION]
 Holds the height of regions. More...
 
uint16_t log2horSpace [NVMEDIA_LDC_MAX_HOR_REGION]
 Holds the horizontal interval between the control points in each region in log2 space. More...
 
uint16_t log2verSpace [NVMEDIA_LDC_MAX_VER_REGION]
 Holds 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]

Holds the width of regions.

Definition at line 312 of file nvmedia_ldc.h.

uint16_t NvMediaLDCRegionConfig::log2horSpace[NVMEDIA_LDC_MAX_HOR_REGION]

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

Definition at line 319 of file nvmedia_ldc.h.

uint16_t NvMediaLDCRegionConfig::log2verSpace[NVMEDIA_LDC_MAX_VER_REGION]

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

Definition at line 323 of file nvmedia_ldc.h.

uint8_t NvMediaLDCRegionConfig::numHorRegion

Holds the number of horizontal regions.

Allowed values are [1, 4], inclusive.

Definition at line 305 of file nvmedia_ldc.h.

uint8_t NvMediaLDCRegionConfig::numVerRegion

Holds the number of vertical regions.

Allowed values are [1, 4], inclusive.

Definition at line 309 of file nvmedia_ldc.h.

uint16_t NvMediaLDCRegionConfig::verRegionHeight[NVMEDIA_LDC_MAX_VER_REGION]

Holds the height of regions.

Definition at line 315 of file nvmedia_ldc.h.


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