mbox series

[v4,0/4] v4l2-compliance: Add tests for DELETE_BUFS

Message ID 20231027084732.17528-1-benjamin.gaignard@collabora.com (mailing list archive)
Headers show
Series v4l2-compliance: Add tests for DELETE_BUFS | expand

Message

Benjamin Gaignard Oct. 27, 2023, 8:47 a.m. UTC
Before being able to add VIDIOC_DELETE_BUFS ioctl, it was needed
to change how v4l2 queues store buffers and how many of them they
can store. That led to add max_num_buffers field into 
v4l2_create_buffers struct.
This series add tests for this new field and VIDIOC_DELETE_BUFS ioctl.

Benjamin Gaignard (4):
  v4l-utils: Add max_num_buffers field to v4l2_create_buffers struct
  v4l2-compliance: Test queue maximum buffers allocation
  v4l2-utils: Add VIDIOC_DELETE_BUFS ioctl
  v4l2-compliance: Add a test for DELETE_BUFS ioctl

 include/linux/videodev2.h                   |  23 +++-
 utils/common/cv4l-helpers.h                 |   5 +
 utils/common/v4l-helpers.h                  |  22 ++++
 utils/common/v4l2-info.cpp                  |   1 +
 utils/v4l2-compliance/v4l2-compliance.cpp   |   2 +
 utils/v4l2-compliance/v4l2-compliance.h     |   2 +
 utils/v4l2-compliance/v4l2-test-buffers.cpp | 133 +++++++++++++++++++-
 7 files changed, 186 insertions(+), 2 deletions(-)