lv_vglite_utils.h
Defines
-
ENUM_TO_STRING(e)
Copyright 2022-2024 NXP
SPDX-License-Identifier: MIT
-
VGLITE_ASSERT(expr)
-
VGLITE_ASSERT_MSG(expr, msg)
-
VGLITE_CHECK_ERROR(function)
Functions
-
static inline void vglite_set_scissor(const lv_area_t *clip_area)
Set the clipping box.
- 参数:
clip_area -- [in] Clip area with relative coordinates of destination buffer
-
const char *vglite_error_to_string(vg_lite_error_t error)
-
void vglite_run(void)
Flush command to VG-Lite.
-
vg_lite_color_t vglite_get_color(lv_color32_t lv_col32, bool gradient)
Wait for VG-Lite finish. Get vglite color. Premultiplies (if not hw already) and swizzles the given LVGL 32bit color to obtain vglite color.
- 参数:
lv_col32 -- [in] The initial LVGL 32bit color
gradient -- [in] True for gradient color
- 返回值:
The -- vglite 32-bit color value:
-
vg_lite_blend_t vglite_get_blend_mode(lv_blend_mode_t lv_blend_mode)
Get vglite blend mode.
- 参数:
lv_blend_mode -- [in] The LVGL blend mode
- 返回值:
The -- vglite blend mode
-
vg_lite_buffer_format_t vglite_get_buf_format(lv_color_format_t cf)
Get vglite buffer format.
- 参数:
cf -- [in] Color format
- 返回值:
The -- vglite buffer format
-
uint8_t vglite_get_stride_alignment(lv_color_format_t cf)
Get vglite stride alignment.
- 参数:
cf -- [in] Color format
- 返回值:
Alignment -- requirement in bytes
-
bool vglite_src_buf_aligned(const void *buf, uint32_t stride, lv_color_format_t cf)
Check source start address and stride alignment.
- 参数:
buf -- [in] Buffer address
stride -- [in] Stride of buffer in bytes
cf -- [in] Color format - to calculate the expected alignment
- 返回值:
true -- Alignment OK