hi_rgn_overlayex_attr

Description

Defines the attributes of an OverlayEx region.

Prototype

typedef struct {
    hi_pixel_format   pixel_format;
    hi_u32            bg_color;
    hi_size           size;
    hi_u32            canvas_num;
    hi_u32            clut[HI_RGN_CLUT_NUM];
} hi_rgn_overlayex_attr;

Members

Member

Description

pixel_format

Pixel format

The options are as follows:

HI_PIXEL_FORMAT_ARGB_1555 = 33;

HI_PIXEL_FORMAT_ARGB_4444 = 25;

HI_PIXEL_FORMAT_ARGB_8888 = 14;

HI_PIXEL_FORMAT_ARGB_CLUT2 = 41;

HI_PIXEL_FORMAT_ARGB_CLUT4 = 42.

bg_color

Region background color

Value range when the pixel format is HI_PIXEL_FORMAT_ARGB_1555 = 33: [0, 0xffff].

Value range when the pixel format is HI_PIXEL_FORMAT_ARGB_4444 = 25: [0, 0xffff].

Value range when the pixel format is HI_PIXEL_FORMAT_ARGB_8888 = 14: [0, 0xffffffff].

Value range when the pixel format is HI_PIXEL_FORMAT_ARGB_CLUT2 = 41: [0, 0x3].

Value range when the pixel format is HI_PIXEL_FORMAT_ARGB_CLUT4 = 42: [0,0xf].

size

Region width and height

The options are as follows:

Width: [2, 8192], 2-pixel aligned

Height: [2, 8192], 2-pixel aligned.

canvas_num

Number of region buffers

Value range: [1, 2]

clut

RGB color value HI_RGN_CLUT_NUM defines the number of RGB color LUTs. The current value is 16.

Range of the color value: [0x0, 0xffffffff].

The parameter range is checked only when HI_PIXEL_FORMAT_ARGB_CLUT2 = 41 or HI_PIXEL_FORMAT_ARGB_CLUT4 = 42.