24#if VSF_USE_UI == ENABLED
29#if defined(__VSF_DISP_CLASS_IMPLEMENT)
30# define __VSF_CLASS_IMPLEMENT__
31#elif defined(__VSF_DISP_CLASS_INHERIT__)
32# define __VSF_CLASS_INHERIT__
43#define VSF_DISP_COLOR_IDX_DEF(__NAME) \
44 VSF_DISP_COLOR_IDX_##__NAME
50#define VSF_DISP_COLOR_VALUE(__INDEX, __BITLEN, __BYTELEN, __HAS_ALPHA) \
52 | ((((__BITLEN) - 1) & 0x1F) << 8) \
53 | ((((__BYTELEN) - 1) & 0x03) << 13) \
54 | ((__HAS_ALPHA) ? 1 << 15 : 0) \
57#define VSF_DISP_COLOR_DEF(__NAME, __BITLEN, __BYTELEN, __HAS_ALPHA) \
58 VSF_DISP_COLOR_##__NAME = VSF_DISP_COLOR_VALUE( \
59 (VSF_DISP_COLOR_IDX_##__NAME), __BITLEN, __BYTELEN, __HAS_ALPHA)
61#define vsf_disp_get_pixel_format_bytesize(__color_format) \
62 ((((__color_format) >> 13) & 0x03) + 1)
63#define vsf_disp_get_pixel_format_bitsize(__color_format) \
64 ((((__color_format) >> 8) & 0x1F) + 1)
65#define vsf_disp_get_pixel_format_has_alpha(__color_format) \
66 ((__color_format) & (1 << 15))
68#define vsf_disp_get_pixel_format(__disp) \
69 ((vk_disp_t *)(__disp))->param.color
71#define vsf_disp_get_width(__disp) ((__disp)->param.width)
72#define vsf_disp_get_height(__disp) ((__disp)->param.height)
73#define vsf_disp_get_pixel_bitsize(__disp) \
74 vsf_disp_get_pixel_format_bitsize(vsf_disp_get_pixel_format(__disp))
75#define vsf_disp_get_pixel_bytesize(__disp) \
76 vsf_disp_get_pixel_format_bytesize(vsf_disp_get_pixel_format(__disp))
77#define vsf_disp_get_has_alpha(__disp) \
78 vsf_disp_get_pixel_format_has_alpha(vsf_disp_get_pixel_format(__disp))
79#define vsf_disp_get_pitch(__disp) \
80 ((__disp)->param.width * vsf_disp_get_pixel_bytesize(__disp))
81#define vsf_disp_get_frame_size(__disp) \
82 ((__disp)->param.height * vsf_disp_get_pitch(__disp))
84#ifndef vk_disp_coord_t
86# define vk_disp_coord_t int16_t
88#ifndef vk_disp_fast_coord_t
89# define vk_disp_fast_coord_t uint_fast16_t
155#if VSF_DISP_USE_GPU == ENABLED
183#if VSF_KERNEL_CFG_SUPPORT_SYNC == ENABLED
207#if VSF_KERNEL_CFG_SUPPORT_SYNC == ENABLED
216#ifdef __VSF_DISP_CLASS_INHERIT__
235#if VSF_DISP_USE_WINGDI == ENABLED && defined(__WIN__)
239#undef __VSF_DISP_CLASS_IMPLEMENT
240#undef __VSF_DISP_CLASS_INHERIT__
vsf_err_t
Definition __type.h:42
Definition vsf_disp.h:149
Definition vsf_disp.h:173
Definition vsf_disp.h:186
unsigned short uint16_t
Definition lvgl.h:41
#define vsf_dcl_class
Definition ooc_class.h:46
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned int uint_fast32_t
Definition stdint.h:27
#define INT16_MAX
Definition stdint.h:50
#define INT16_MIN
Definition stdint.h:45
Definition vsf_disp.h:144
vk_disp_point_t pos
Definition vsf_disp.h:145
vk_disp_point_t size
Definition vsf_disp.h:146
Definition vsf_disp.h:164
uint16_t width
Definition vsf_disp.h:166
uint16_t height
Definition vsf_disp.h:167
const vk_disp_drv_t * drv
Definition vsf_disp.h:165
vk_disp_color_type_t color
Definition vsf_disp.h:168
Definition vsf_disp.h:139
vk_disp_coord_t x
Definition vsf_disp.h:140
vk_disp_coord_t y
Definition vsf_disp.h:141
void vk_disp_on_ready(vk_disp_t *pthis)
Definition vsf_disp.c:62
vsf_err_t vk_disp_init(vk_disp_t *pthis)
Definition vsf_disp.c:69
#define VSF_DISP_COLOR_DEF(__NAME, __BITLEN, __BYTELEN, __HAS_ALPHA)
Definition vsf_disp.h:57
#define VSF_DISP_COLOR_IDX_DEF(__NAME)
Definition vsf_disp.h:43
vk_disp_color_type_t
Definition vsf_disp.h:117
@ __VSF_DISP_COLOR_LEAST_MAX
Definition vsf_disp.h:119
@ __VSF_DISP_COLOR_LEAST_MIN
Definition vsf_disp.h:120
const vk_disp_drv_t vk_reentrant_disp_drv
Definition vsf_disp.c:53
#define vk_disp_coord_t
Definition vsf_disp.h:86
#define vk_disp_fast_coord_t
Definition vsf_disp.h:89
vsf_err_t vk_disp_refresh(vk_disp_t *pthis, vk_disp_area_t *area, void *disp_buff)
Definition vsf_disp.c:83
void(* vk_disp_on_ready_t)(vk_disp_t *disp)
Definition vsf_disp.h:171
vk_disp_color_idx_t
Definition vsf_disp.h:98