30#ifndef LV_VGLITE_UTILS_H
31#define LV_VGLITE_UTILS_H
42#if LV_USE_GPU_NXP_VG_LITE
51#ifndef LV_GPU_NXP_VG_LITE_LOG_ERRORS
53#define LV_GPU_NXP_VG_LITE_LOG_ERRORS 1
56#ifndef LV_GPU_NXP_VG_LITE_LOG_TRACES
58#define LV_GPU_NXP_VG_LITE_LOG_TRACES 0
65#define BEZIER_OPTIM_CIRCLE 0.551915024494f
68#define BEZIER_DBG_CONTROL_POINTS 0
89lv_res_t lv_vglite_premult_and_swizzle(vg_lite_color_t * vg_col32,
lv_color32_t lv_col32, lv_opa_t opa,
90 vg_lite_buffer_format_t vg_col_format);
99vg_lite_blend_t lv_vglite_get_blend_mode(lv_blend_mode_t lv_blend_mode);
107lv_res_t lv_vglite_run(
void);
113#define VG_LITE_COND_STOP(cond, txt) \
116 LV_LOG_ERROR("%s. STOP!", txt); \
121#if LV_GPU_NXP_VG_LITE_LOG_ERRORS
122#define VG_LITE_ERR_RETURN_INV(err, fmt, ...) \
124 if(err != VG_LITE_SUCCESS) { \
125 LV_LOG_ERROR(fmt" (err = %d)", \
126 err, ##__VA_ARGS__); \
131#define VG_LITE_ERR_RETURN_INV(err, fmt, ...) \
133 if(err != VG_LITE_SUCCESS) { \
139#if LV_GPU_NXP_VG_LITE_LOG_TRACES
140#define VG_LITE_LOG_TRACE(fmt, ...) \
142 LV_LOG(fmt, ##__VA_ARGS__); \
145#define VG_LITE_RETURN_INV(fmt, ...) \
147 LV_LOG_ERROR(fmt, ##__VA_ARGS__); \
151#define VG_LITE_LOG_TRACE(fmt, ...) \
154#define VG_LITE_RETURN_INV(fmt, ...) \
Definition lv_color.h:224