Commit aaa968b6 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] v4l: videodev2: add buffer size to SDR format

Add buffer size field to struct v4l2_sdr_format. It is used for
negotiate streaming buffer size between application and driver.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 1140540d
...@@ -1783,10 +1783,12 @@ struct v4l2_pix_format_mplane { ...@@ -1783,10 +1783,12 @@ struct v4l2_pix_format_mplane {
/** /**
* struct v4l2_sdr_format - SDR format definition * struct v4l2_sdr_format - SDR format definition
* @pixelformat: little endian four character code (fourcc) * @pixelformat: little endian four character code (fourcc)
* @buffersize: maximum size in bytes required for data
*/ */
struct v4l2_sdr_format { struct v4l2_sdr_format {
__u32 pixelformat; __u32 pixelformat;
__u8 reserved[28]; __u32 buffersize;
__u8 reserved[24];
} __attribute__ ((packed)); } __attribute__ ((packed));
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment