hi_rgn_overlayex_chn_attr
Description
Defines the channel display attributes of an OverlayEx region.
Prototype
typedef struct {
hi_point point;
hi_u32 fg_alpha;
hi_u32 bg_alpha;
hi_u32 layer;
} hi_rgn_overlayex_chn_attr;
Members
Member |
Description |
|---|---|
point |
Region position This is a dynamic attribute. Region location value range (coordinates): X: [0, 16382], 2-pixel aligned. Y: [0, 16382], 2-pixel aligned. |
fg_alpha |
Transparency of the pixel whose alpha bit is 1, which is called foreground alpha. This is a dynamic attribute. Value range: [0, 255] A smaller value indicates higher transparency. This parameter is mandatory only when the OSD image format is HI_PIXEL_FORMAT_ARGB_1555. |
bg_alpha |
Transparency of the pixel whose alpha bit is 0, which is called background alpha. This is a dynamic attribute. Value range: [0, 255] A smaller value indicates higher transparency. This parameter is mandatory only when the OSD image format is HI_PIXEL_FORMAT_ARGB_1555. |
layer |
Region layer. This is a dynamic attribute. Value range: [0, Maximum number of supported OverlayEx regions – 1], that is, the value range depends on the maximum number of OverlayEx regions supported by each module. A larger value indicates a higher region layer. |