1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

feat(vg_lite): add ARGB8565 support (#5592)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech 2024-02-05 15:29:49 +08:00 committed by GitHub
parent c23b9bc5ce
commit 973a6f062a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -309,6 +309,7 @@ bool lv_vg_lite_is_dest_cf_supported(lv_color_format_t cf)
case LV_COLOR_FORMAT_XRGB8888:
return true;
case LV_COLOR_FORMAT_ARGB8565:
case LV_COLOR_FORMAT_RGB888:
return vg_lite_query_feature(gcFEATURE_BIT_VG_24BIT) ? true : false;
@ -335,6 +336,7 @@ bool lv_vg_lite_is_src_cf_supported(lv_color_format_t cf)
case LV_COLOR_FORMAT_I8:
return vg_lite_query_feature(gcFEATURE_BIT_VG_IM_INDEX_FORMAT) ? true : false;
case LV_COLOR_FORMAT_ARGB8565:
case LV_COLOR_FORMAT_RGB888:
return vg_lite_query_feature(gcFEATURE_BIT_VG_24BIT) ? true : false;
@ -375,6 +377,9 @@ vg_lite_buffer_format_t lv_vg_lite_vg_fmt(lv_color_format_t cf)
case LV_COLOR_FORMAT_RGB565:
return VG_LITE_BGR565;
case LV_COLOR_FORMAT_ARGB8565:
return VG_LITE_BGRA5658;
case LV_COLOR_FORMAT_RGB888:
return VG_LITE_BGR888;