mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-21 03:28:55 +00:00
v1.1.0
This commit is contained in:
65
packages/artinchip/lvgl-ui/lvgl_v8/lv_drivers/lv_fbdev.h
Normal file
65
packages/artinchip/lvgl-ui/lvgl_v8/lv_drivers/lv_fbdev.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LV_FBDEV_H
|
||||
#define LV_FBDEV_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "mpp_types.h"
|
||||
|
||||
/*
|
||||
1. if define USE_DRAW_BUF, lvgl will alloc draw buffer instead of sharing framebuffer
|
||||
2. draw with/height can be different with framebuffer
|
||||
3. draw buffer can be scaled/rotated and output to framebuffer
|
||||
4. draw buffer can be rotated 0/90/180/270 degree
|
||||
(1) the default rotation of your display when it is initialized can be using the rotated flag.
|
||||
the avaliable options are LV_DISP_ROT_NONE,LV_DISP_ROT_90,LV_DISP_ROT_180 or LV_DISP_ROT_270
|
||||
(2) display rotaiton can alse be changed at runtime using lv_disp_set_rotation(disp, rot) API.
|
||||
|
||||
*/
|
||||
|
||||
// #define USE_DRAW_BUF
|
||||
#define DRAW_BUF_WIDTH 1024
|
||||
#define DRAW_BUF_HEIGHT 600
|
||||
|
||||
#define MAX_FRAME_NUM 2
|
||||
|
||||
extern char *g_frame_buf[MAX_FRAME_NUM];
|
||||
extern char *g_draw_buf[2];
|
||||
|
||||
int fbdev_open(void);
|
||||
|
||||
void fbdev_close(void);
|
||||
|
||||
int fbdev_get_size(int *width, int *height);
|
||||
|
||||
enum mpp_pixel_format fbdev_get_fmt(void);
|
||||
|
||||
int fbdev_get_bpp(void);
|
||||
|
||||
int fbdev_get_pitch(void);
|
||||
|
||||
int draw_buf_size(int *width, int *height);
|
||||
|
||||
enum mpp_pixel_format draw_buf_fmt(void);
|
||||
|
||||
int draw_buf_bpp(void);
|
||||
|
||||
int draw_buf_pitch(void);
|
||||
|
||||
int draw_buf_len(void);
|
||||
|
||||
void ge_open(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /*LV_FBDEV_H*/
|
||||
Reference in New Issue
Block a user