The generic metadata pixel formats (V4L2_META_FMT_GENERIC_*) are meant to be used in conjunction with device-specific media bus codes. Those codes are work in progress and not available in the upstream kernel yet. To make sure the generic metadata pixel formats won't be used by userspace until we have the full infrastructure in place, keep their definition private to the kernel for now.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -841,6 +841,7 @@ struct v4l2_pix_format { · 840 unmodified lines | |||
| 841 | #define V4L2_META_FMT_RK_ISP1_PARAMS v4l2_fourcc('R', 'K', '1', 'P') /* Rockchip ISP1 3A Parameters */ | 841 | #define V4L2_META_FMT_RK_ISP1_PARAMS v4l2_fourcc('R', 'K', '1', 'P') /* Rockchip ISP1 3A Parameters */ |
| 842 | #define V4L2_META_FMT_RK_ISP1_STAT_3A v4l2_fourcc('R', 'K', '1', 'S') /* Rockchip ISP1 3A Statistics */ | 842 | #define V4L2_META_FMT_RK_ISP1_STAT_3A v4l2_fourcc('R', 'K', '1', 'S') /* Rockchip ISP1 3A Statistics */ |
| 843 | 843 | ||
| 844 | #ifdef __KERNEL__ | ||
| 844 | /* | 845 | /* |
| 845 | * Line-based metadata formats. Remember to update v4l_fill_fmtdesc() when | 846 | * Line-based metadata formats. Remember to update v4l_fill_fmtdesc() when |
| 846 | * adding new ones! | 847 | * adding new ones! |
| @@ -852,6 +853,7 @@ struct v4l2_pix_format { · 5 unmodified lines | |||
| 852 | #define V4L2_META_FMT_GENERIC_CSI2_16 v4l2_fourcc('M', 'C', '1', 'G') /* 16-bit CSI-2 packed 8-bit metadata */ | 853 | #define V4L2_META_FMT_GENERIC_CSI2_16 v4l2_fourcc('M', 'C', '1', 'G') /* 16-bit CSI-2 packed 8-bit metadata */ |
| 853 | #define V4L2_META_FMT_GENERIC_CSI2_20 v4l2_fourcc('M', 'C', '1', 'K') /* 20-bit CSI-2 packed 8-bit metadata */ | 854 | #define V4L2_META_FMT_GENERIC_CSI2_20 v4l2_fourcc('M', 'C', '1', 'K') /* 20-bit CSI-2 packed 8-bit metadata */ |
| 854 | #define V4L2_META_FMT_GENERIC_CSI2_24 v4l2_fourcc('M', 'C', '1', 'O') /* 24-bit CSI-2 packed 8-bit metadata */ | 855 | #define V4L2_META_FMT_GENERIC_CSI2_24 v4l2_fourcc('M', 'C', '1', 'O') /* 24-bit CSI-2 packed 8-bit metadata */ |
| 856 | #endif | ||
| 855 | 857 | ||
| 856 | /* priv field value to indicates that subsequent fields are valid. */ | 858 | /* priv field value to indicates that subsequent fields are valid. */ |
| 857 | #define V4L2_PIX_FMT_PRIV_MAGIC 0xfeedcafe | 859 | #define V4L2_PIX_FMT_PRIV_MAGIC 0xfeedcafe |