[libcamera-devel] [RFC 0/2] cam: make the --format option take arguments

Niklas Söderlund niklas.soderlund at ragnatech.se
Fri Jan 25 22:21:52 CET 2019


Hi,

This is a RFC to how the cam tool could be extended to take a list of 
key=value pairs to specify how to configure a camera before starting a 
capture. This series depends on [1].

Let me know what you all think and if this is a good path to take for 
how to handle format descriptions for the tool. The format is inspired 
from v4l2-ctl, I though a familiar format would be good when bringing in 
a new tool :-)

If this series gets out of RFC before [1] is merged, or if all but the 
cam tool patch (7/7) from [1] is merged this series 2/2 should be merged 
with that patch.

1. [PATCH v2 0/7] libcamera: add basic support for Streams and format 
   configuration

Niklas Söderlund (2):
  cam: options: add parser for suboptions
  cam: make the --format option take arguments

 src/cam/main.cpp    | 71 ++++++++++++++++++++++++++++++++++++++++-----
 src/cam/options.cpp | 68 +++++++++++++++++++++++++++++++++++++++++++
 src/cam/options.h   | 24 +++++++++++++++
 3 files changed, 155 insertions(+), 8 deletions(-)

-- 
2.20.1



More information about the libcamera-devel mailing list