Blit structures

This section provides details about blit structures.

vg_lite_buffer_t structure

Defined under the “Pixel buffer structures” section (see vg_lite_buffer_t structure).

Parent topic:Blit structures

vg_lite_color_key_t structure

A “color key” have two sections, where each section contains R,G,B channels, which are noted as high_rgb and low_rgb respectively. (from April 2022)

When the enable value is true, the color key specified is effective and the alpha value is used to replace the alpha channel of the destination pixel when its RGB channels are in range [low_rgb, high_rgb]. After the color key is used in the current frame, if the color key is not needed for the next frame, it should be disabled before the next frame.

Used in structure: vg_lite_color_key4_t

vg_lite_color_key_t members

Type

Description

enable

vg_lite_uint8_t

When set (true), this color key is enabled

low_r

vg_lite_uint8_t

The R channel of low_rgb

low_g

vg_lite_uint8_t

The G channel of low_rgb

low_b

vg_lite_uint8_t

The B channel of low_rgb

alpha

vg_lite_uint8_t

The alpha value to replace the destination pixel alpha channel value with

high_r

vg_lite_uint8_t

The R channel of high_rgb

high g

vg_lite_uint8_t

The G channel of high_rgb

high_b

vg_lite_uint8_t

The B channel of high_rgb

Parent topic:Blit structures

vg_lite_color_key4_t structure

The priority order is: color_key_0 > color_key_1 > color_key_2 > color_key_3. (from April 2022)

Used in blit function: vg_lite_set_color_key

vg_lite_color_key4_t members

Type

Description

color_key_0

high_rgb_0, low_rgb_0, alpha_0, enable_0

color_key_1

high_rgb_1, low_rgb_1, alpha_1, enable_1

color_key_2

high_rgb_2, low_rgb_2, alpha_2, enable_2

color_key_3

high_rgb_3, low_rgb_3, alpha_3, enable_3

Parent topic:Blit structures

vg_lite_matrix_t structure

Defined under the “Matrix control structures” section (see vg_lite_matrix_t structure).

Parent topic:Blit structures

vg_lite_path_t structure

Defined under the “Vector path structures” section (see vg_lite_path_t structure).

Parent topic:Blit structures

vg_lite_rectangle_t structure

This structure defines a rectangle by using coordinates.

Used in blit function: vg_lite_clear.

vg_lite_rectangle_t member

Type

Description

x

vg_lite_int32_t

X origin of rectangle, left coordinate in pixels

y

vg_lite_int32_t

Y origin of rectangle, top coordinate in pixels

width

vg_lite_int32_t

X Width of rectangle in pixels

height

vg_lite_int32_t

Y Height of rectangle in pixels

Parent topic:Blit structures

vg_lite_point_t structure

This structure defines a 2D point (from March 2021).

Used in structure: vg_lite_point4_t.

vg_lite_point_t member

Type

Description

X

vg_lite_int32_t

X value of coordinate

Y

vg_lite_int32_t

Y value of coordinate

Parent topic:Blit structures

vg_lite_point4_t structure

This structure defines four 2D points that form a polygon. The points are defined by structure vg_lite_point_t. (from March 2021)

vg_lite_point4_t member

Type

Description

vg_lite_point_t[4]

vg_lite_int32_t each

a set of four points

Parent topic:Blit structures

vg_lite_float_point_t structure

This structure defines a 2D float point (from March 2024).

Used in structure: vg_lite_float_point4_t.

vg_lite_float_point_t members

Type

Description

x

vg_lite_float_t

X value of coordinate

y

vg_lite_float_t

Y value of coordinate

Parent topic:Blit structures

vg_lite_float_point4_t structure

This structure defines four 2D float points that form a polygon. The points are defined by structure vg_lite_float_point_t. (from March 2024)

Used in blit function: vg_lite_get_transform_matrix.

vg_lite_float_point4_t members

Type

Description

vg_lite_float_point[4]

vg_lite_float_t each

a set of four points

Parent topic:Blit structures

Parent topic:Blits for compositing and blending