nxcamera: Add logic to convert to rgb565

Since the current fb display format of vela qemu is rgb565, it is necessary to convert the frame obtained by v4l2 to rgb565

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
This commit is contained in:
yangsen5 2023-08-03 15:22:41 +08:00 committed by Xiang Xiao
parent 105fd2aac5
commit 4d2fb8a6cf
2 changed files with 98 additions and 18 deletions

View file

@ -57,6 +57,7 @@ struct nxcamera_s
* display device */
char displaydev[CONFIG_NAME_MAX]; /* Display framebuffer device */
struct fb_planeinfo_s display_pinfo; /* Display plane info */
struct fb_videoinfo_s display_vinfo; /* Display video controller info */
char videopath[CONFIG_NAME_MAX]; /* Output video file path */
char imagepath[CONFIG_NAME_MAX]; /* Output image file path */
int crefs; /* Number of references */