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

Message ID 20190125212154.26950-1-niklas.soderlund@ragnatech.se
Headers show
Series
  • cam: make the --format option take arguments
Related show

Message

Niklas Söderlund Jan. 25, 2019, 9:21 p.m. UTC
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(-)