videoio: modify data type of v4l2_buffer from uint32_t to uint16_t

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
shizhenghui 2024-04-18 20:29:13 +08:00 committed by Xiang Xiao
parent fecf2039d8
commit 03c756dd74

View file

@ -777,15 +777,15 @@ typedef struct v4l2_plane v4l2_plane_t;
struct v4l2_buffer
{
uint16_t index; /* Buffer id */
uint16_t type; /* enum #v4l2_buf_type */
uint32_t index; /* Buffer id */
uint32_t type; /* enum #v4l2_buf_type */
uint32_t bytesused; /* Driver sets the image size */
uint16_t flags; /* Buffer flags. */
uint16_t field; /* The field order of the image */
uint32_t flags; /* Buffer flags. */
uint32_t field; /* The field order of the image */
struct timeval timestamp; /* Frame timestamp */
struct v4l2_timecode timecode; /* Frame timecode */
uint16_t sequence; /* Frame sequence number */
uint16_t memory; /* enum #v4l2_memory */
uint32_t sequence; /* Frame sequence number */
uint32_t memory; /* enum #v4l2_memory */
union
{
uint32_t offset;