History

media: uapi: Add generic serial metadata mbus formats

Add generic serial metadata mbus formats. These formats describe data width and packing but not the content itself. The reason for specifying such formats is that the formats as such are fairly device specific but they are still handled by CSI-2 receiver drivers that should not be aware of device specific formats. What makes generic metadata formats possible is that these formats are parsed by software only, after capturing the data to system memory. Also add a definition for "Data Unit" to cover what is essentially a pixel but is not image data.

Sakari Ailus committed 3 years ago

Commit f28bdda1 parent 7ba432f3 files · +270 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/media-bus-format.h+9−0
@@ -174,4 +174,13 @@ · 173 unmodified lines
174174 */
175175 #define MEDIA_BUS_FMT_METADATA_FIXED 0x7001
176176
177+/* Generic line based metadata formats for serial buses. Next is 0x8008. */
178+#define MEDIA_BUS_FMT_META_8 0x8001
179+#define MEDIA_BUS_FMT_META_10 0x8002
180+#define MEDIA_BUS_FMT_META_12 0x8003
181+#define MEDIA_BUS_FMT_META_14 0x8004
182+#define MEDIA_BUS_FMT_META_16 0x8005
183+#define MEDIA_BUS_FMT_META_20 0x8006
184+#define MEDIA_BUS_FMT_META_24 0x8007
185+
177186 #endif /* __LINUX_MEDIA_BUS_FORMAT_H */