Skip to content

RFC v4l2-ctl: list controls values in a machine-readable format

Antonio Ospite linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5v4l2-ctl: list controls with menus when OptAll is specifiedutils/v4l2-ctl/v4l2-ctl.cpp+1 -10 replies
2/5v4l2-ctl: list once when both OptListCtrls and OptListCtrlsMenus are thereutils/v4l2-ctl/v4l2-ctl-common.cpp+2 -60 replies
3/5v4l2-ctl: use a dedicated function to print the control class nameutils/v4l2-ctl/v4l2-ctl-common.cpp+6 -10 replies
4/5v4l2-ctl: abstract the mechanism used to print the list of controlsutils/v4l2-ctl/v4l2-ctl-common.cpp+22 -100 replies
5/5v4l2-ctl: add an option to list controls in a machine-readable formatutils/v4l2-ctl/v4l2-ctl-common.cpp utils/v4l2-ctl/v4l2-ctl.1.in utils/v4l2-ctl/v4l2-ctl.cpp +1 more+69 -93 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/5] v4l2-ctl: list controls values in a machine-readable format

Hi,

here is an experiment about listing controls values with v4l2-ctl in a way that makes it more easy to reload them, I would use something like that for https://git.ao2.it/v4l2-persistent-settings.git/

Patches 1 and 2 are just warm-up patches to get me familiar again with the v4l2-ctrl codebase, patch 2 is a small preparatory cleanup, and patches 4 and 5 showcase the idea.

Thanks,
Antonio

Antonio Ospite (5):
v4l2-ctl: list controls with menus when OptAll is specified
v4l2-ctl: list once when both OptListCtrls and OptListCtrlsMenus are
there
v4l2-ctl: use a dedicated function to print the control class name
v4l2-ctl: abstract the mechanism used to print the list of controls
v4l2-ctl: add an option to list controls in a machine-readable format

 utils/v4l2-ctl/v4l2-ctl-common.cpp | 95 +++++++++++++++++++++++++-----
 utils/v4l2-ctl/v4l2-ctl.1.in       |  4 ++
 utils/v4l2-ctl/v4l2-ctl.cpp        |  3 +-
 utils/v4l2-ctl/v4l2-ctl.h          |  1 +
 4 files changed, 88 insertions(+), 15 deletions(-)
Signature · 7 lines
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?