NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
NvMedia2DLdcMaskMapParameters Struct Reference

Detailed Description

Holds the LDC Mask Map information.

With the destination rectangle, this mask map surface defines the region of interest in the destination image. The dstRect argument passed to NvMedia2DSetSrcGeometry() defines the destination rectangle.

See also
NvMedia2DFillLdcMaskMap()

Definition at line 855 of file nvmedia_2d.h.

Data Fields

uint32_t width
 Holds the width in pixels of the mask map surface, which must be equal to the width of the destination rectangle. More...
 
uint32_t height
 Holds the height in pixels of the mask map surface, which must be equal to the height of the destination rectangle. More...
 
bool useMaskColor
 Indicates whether to fill the masked pixel with the mask color. More...
 
float maskColorY
 Holds the Y channel value of the mask color. More...
 
float maskColorU
 Holds the U channel value of the mask color. More...
 
float maskColorV
 Holds the V channel value of the mask color. More...
 
const bool * pixelMasks
 Holds the value for the Mask Map surface. More...
 

Field Documentation

◆ height

uint32_t NvMedia2DLdcMaskMapParameters::height

Holds the height in pixels of the mask map surface, which must be equal to the height of the destination rectangle.

Definition at line 863 of file nvmedia_2d.h.

◆ maskColorU

float NvMedia2DLdcMaskMapParameters::maskColorU

Holds the U channel value of the mask color.

If used, must be in range [0, 1].

Definition at line 879 of file nvmedia_2d.h.

◆ maskColorV

float NvMedia2DLdcMaskMapParameters::maskColorV

Holds the V channel value of the mask color.

If used, must be in range [0, 1].

Definition at line 885 of file nvmedia_2d.h.

◆ maskColorY

float NvMedia2DLdcMaskMapParameters::maskColorY

Holds the Y channel value of the mask color.

If used, must be in range [0, 1].

Definition at line 873 of file nvmedia_2d.h.

◆ pixelMasks

const bool* NvMedia2DLdcMaskMapParameters::pixelMasks

Holds the value for the Mask Map surface.

The Mask Map surface is stored row by row. Each stored bool value is used to indicate whether this pixel has been masked or not. A true value means that the pixel is not to be masked. The buffer needs to hold width * height bool objects.

Definition at line 893 of file nvmedia_2d.h.

◆ useMaskColor

bool NvMedia2DLdcMaskMapParameters::useMaskColor

Indicates whether to fill the masked pixel with the mask color.

Definition at line 867 of file nvmedia_2d.h.

◆ width

uint32_t NvMedia2DLdcMaskMapParameters::width

Holds the width in pixels of the mask map surface, which must be equal to the width of the destination rectangle.

Definition at line 859 of file nvmedia_2d.h.


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