| Related |
show
-
[libcamera-devel,v2,00/16] libcamera: Add support for format information and validation
-
[libcamera-devel,v2,01/16] libcamera: geometry: SizeRange: Add constructor for a single size
-
[libcamera-devel,v2,02/16] libcamera: geometry: SizeRange: Extend with step information
-
[libcamera-devel,v2,03/16] libcamera: geometry: SizeRange: Add toString()
-
[libcamera-devel,v2,04/16] libcamera: geometry: SizeRange: Add contains()
-
[libcamera-devel,v2,05/16] libcamera: formats: Add ImageFormats
-
[libcamera-devel,v2,06/16] libcamera: v4l2_subdevice: Breakout mbus code enumeration
-
[libcamera-devel,v2,07/16] libcamera: v4l2_subdevice: Rework enumPadSizes()
-
[libcamera-devel,v2,08/16] libcamera: v4l2_subdevice: Replace FormatEnum with ImageFormats
-
[libcamera-devel,v2,09/16] libcamera: v4l2_device: Add enumeration of pixelformats and frame sizes
-
[libcamera-devel,v2,10/16] libcamera: stream: Add StreamFormats
-
[libcamera-devel,v2,11/16] libcamera: stream: StreamConfiguration: Add StreamFormats information
-
[libcamera-devel,v2,12/16] test: stream: Add test for StreamFormat
-
[libcamera-devel,v2,13/16] cam: Move camera configuration preparation to CamApp
-
[libcamera-devel,v2,14/16] cam: Validate camera configuration
-
[libcamera-devel,v2,15/16] cam: Add --info option to print information about stream(s)
-
[libcamera-devel,v2,16/16] libcamera: pipeline: uvcvideo: Add format information and validation
|
Hi, This series aim to add support for format information exposed to applications and to ease format validation by allowing formats to be enumerate on v4l2 devices. The series also enhance the format enumeration of v4l2 subdevices. Further more it extends the cam utility to demonstrate the usage of how formats can examined and validated. One shortcoming of this series is that it only extends the uvcvideo pipeline with code to gather format information and perform validation. This however do not impact other existing pipeline handlers as they keep functioning as before this series. That is no format information can be retrieved and format validation is still supported all yet as simple as before this series. Niklas Söderlund (16): libcamera: geometry: SizeRange: Add constructor for a single size libcamera: geometry: SizeRange: Extend with step information libcamera: geometry: SizeRange: Add toString() libcamera: geometry: SizeRange: Add contains() libcamera: formats: Add ImageFormats libcamera: v4l2_subdevice: Breakout mbus code enumeration libcamera: v4l2_subdevice: Rework enumPadSizes() libcamera: v4l2_subdevice: Replace FormatEnum with ImageFormats libcamera: v4l2_device: Add enumeration of pixelformats and frame sizes libcamera: stream: Add StreamFormats libcamera: stream: StreamConfiguration: Add StreamFormats information test: stream: Add test for StreamFormat cam: Move camera configuration preparation to CamApp cam: Validate camera configuration cam: Add --info option to print information about stream(s) libcamera: pipeline: uvcvideo: Add format information and validation include/libcamera/geometry.h | 24 ++- include/libcamera/stream.h | 24 ++- src/cam/capture.cpp | 84 +------- src/cam/capture.h | 7 +- src/cam/info.cpp | 37 ++++ src/cam/info.h | 14 ++ src/cam/main.cpp | 93 ++++++++- src/cam/main.h | 1 + src/cam/meson.build | 1 + src/libcamera/camera_sensor.cpp | 14 +- src/libcamera/formats.cpp | 85 ++++++++- src/libcamera/geometry.cpp | 82 +++++++- src/libcamera/include/formats.h | 17 +- src/libcamera/include/v4l2_device.h | 5 + src/libcamera/include/v4l2_subdevice.h | 7 +- src/libcamera/pipeline/uvcvideo.cpp | 41 +++- src/libcamera/stream.cpp | 253 +++++++++++++++++++++++++ src/libcamera/v4l2_device.cpp | 110 +++++++++++ src/libcamera/v4l2_subdevice.cpp | 110 ++++++----- test/meson.build | 1 + test/stream/meson.build | 11 ++ test/stream/stream_formats.cpp | 101 ++++++++++ test/v4l2_subdevice/list_formats.cpp | 16 +- 23 files changed, 960 insertions(+), 178 deletions(-) create mode 100644 src/cam/info.cpp create mode 100644 src/cam/info.h create mode 100644 test/stream/meson.build create mode 100644 test/stream/stream_formats.cpp