mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
video: add V4L2_PIX_FMT_RGB565X pixel format support
Add big-endian RGB565 (RGB565X) pixel format throughout the V4L2 video pipeline: - IMGDATA_PIX_FMT_RGB565X in imgdata.h - IMGSENSOR_PIX_FMT_RGB565X in imgsensor.h - Format conversion and buffer size handling in v4l2_cap.c This is needed by 8-bit DVP camera sensors that output RGB565 in big-endian byte order (high byte first on the data bus). Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
committed by
Alan C. Assis
parent
3305badbd7
commit
a07a6a00f4
@@ -48,6 +48,7 @@
|
||||
#define IMGDATA_PIX_FMT_YUYV (6)
|
||||
#define IMGDATA_PIX_FMT_YUV420P (7)
|
||||
#define IMGDATA_PIX_FMT_NV12 (8)
|
||||
#define IMGDATA_PIX_FMT_RGB565X (9)
|
||||
|
||||
/* Method access helper macros */
|
||||
|
||||
|
||||
@@ -124,6 +124,7 @@
|
||||
#define IMGSENSOR_PIX_FMT_YUYV (6)
|
||||
#define IMGSENSOR_PIX_FMT_YUV420P (7)
|
||||
#define IMGSENSOR_PIX_FMT_NV12 (8)
|
||||
#define IMGSENSOR_PIX_FMT_RGB565X (9)
|
||||
|
||||
/* Method access helper macros */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user