This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new c898461ca5 video/fb: add xres and yres for fb overlay
c898461ca5 is described below
commit c898461ca562738004afee5988fd38bea2cf848d
Author: rongyichang <[email protected]>
AuthorDate: Fri Aug 4 15:23:31 2023 +0800
video/fb: add xres and yres for fb overlay
xres and yres of video overlay buffer may not same as primay framebuffer.
so add it to check the framebuffer count of overlay
Signed-off-by: rongyichang <[email protected]>
---
include/nuttx/video/fb.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/nuttx/video/fb.h b/include/nuttx/video/fb.h
index 4a2650b9c6..cf8684f2bd 100644
--- a/include/nuttx/video/fb.h
+++ b/include/nuttx/video/fb.h
@@ -546,6 +546,8 @@ struct fb_overlayinfo_s
fb_coord_t stride; /* Length of a line in bytes */
uint8_t overlay; /* Overlay number */
uint8_t bpp; /* Bits per pixel */
+ uint32_t xres; /* Horizontal resolution in pixel columns */
+ uint32_t yres; /* Vertical resolution in pixel rows */
uint32_t xres_virtual; /* Virtual Horizontal resolution in pixel
columns */
uint32_t yres_virtual; /* Virtual Vertical resolution in pixel rows */
uint32_t xoffset; /* Offset from virtual to visible resolution */