hi_fb_alpha

Function

Defines the HiFB alpha structure.

Definition

typedef struct {
    hi_bool alpha_en;
    hi_bool alpha_chn_en;
    hi_u8 alpha0;
    hi_u8 alpha1;
    hi_u8 global_alpha;
    hi_u8 reserved;
} hi_fb_alpha;

For details about basic data types hi_bool and hi_u8, see Basic Data Types.

Members

Member

Description

alpha_en

Whether to enable alpha overlay.

alpha_chn_en

Whether to enable alpha channel overlay.

alpha0

Alpha value selected when the alpha channel 0 is used. Not supported in the current version.

alpha1

Alpha value selected when the alpha channel 1 is used. Not supported in the current version.

global_alpha

Global alpha value. The value ranges from 0 to 255. Default value: 255. It takes effect when the alpha channel is enabled.

reserved

Reserved and not supported by the current version.