History

[media] v4l: add stream format for SDR receiver

Add new V4L2 stream format definition, V4L2_BUF_TYPE_SDR_CAPTURE, for SDR receiver.

Antti Palosaari committed 12 years ago

Commit 6f3073b1 parent 67f9a113 files · +13 −0Browse files

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

Unified · Split

include/uapi/linux/videodev2.h+11−0
@@ -139,6 +139,7 @@ enum v4l2_buf_type { · 138 unmodified lines
139139 #endif
140140 V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE = 9,
141141 V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE = 10,
142+ V4L2_BUF_TYPE_SDR_CAPTURE = 11,
142143 /* Deprecated, do not use */
143144 V4L2_BUF_TYPE_PRIVATE = 0x80,
144145 };
@@ -1694,6 +1695,15 @@ struct v4l2_pix_format_mplane { · 1549 unmodified lines
16941695 __u8 reserved[11];
16951696 } __attribute__ ((packed));
16961697
1698+/**
1699+ * struct v4l2_format_sdr - SDR format definition
1700+ * @pixelformat: little endian four character code (fourcc)
1701+ */
1702+struct v4l2_format_sdr {
1703+ __u32 pixelformat;
1704+ __u8 reserved[28];
1705+} __attribute__ ((packed));
1706+
16971707 /**
16981708 * struct v4l2_format - stream data format
16991709 * @type: enum v4l2_buf_type; type of the data stream
@@ -1712,6 +1722,7 @@ struct v4l2_format { · 12 unmodified lines
17121722 struct v4l2_window win; /* V4L2_BUF_TYPE_VIDEO_OVERLAY */
17131723 struct v4l2_vbi_format vbi; /* V4L2_BUF_TYPE_VBI_CAPTURE */
17141724 struct v4l2_sliced_vbi_format sliced; /* V4L2_BUF_TYPE_SLICED_VBI_CAPTURE */
1725+ struct v4l2_format_sdr sdr; /* V4L2_BUF_TYPE_SDR_CAPTURE */
17151726 __u8 raw_data[200]; /* user-defined */
17161727 } fmt;
17171728 };