aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-12 11:27:13 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-12 11:27:13 (GMT)
commit32cf495ff5da24df54936fae3bf0eb91fba77f3a (patch)
tree24b7d9880dd48938f31822c91391cf350109f61b
parent979a8fe38a801647bf809ffcfe496bcc9b015a5d (diff)
v4l2-ctl: improve selection output
Don't show crop info when using --all, only show the selection info (crop doesn't add any useful information). Also show the buffer type for which the selection info is shown. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-ctl/v4l2-ctl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl.cpp b/utils/v4l2-ctl/v4l2-ctl.cpp
index 6cacc57..7396439 100644
--- a/utils/v4l2-ctl/v4l2-ctl.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl.cpp
@@ -845,8 +845,8 @@ int parse_selection_flags(const char *s)
void print_selection(const struct v4l2_selection &sel)
{
- printf("Selection: %s, Left %d, Top %d, Width %d, Height %d, Flags: %s\n",
- seltarget2s(sel.target).c_str(),
+ printf("Selection %s: %s, Left %d, Top %d, Width %d, Height %d, Flags: %s\n",
+ buftype2s(sel.type).c_str(), seltarget2s(sel.target).c_str(),
sel.r.left, sel.r.top, sel.r.width, sel.r.height,
selflags2s(sel.flags).c_str());
}
@@ -1368,7 +1368,6 @@ int main(int argc, char **argv)
if (options[OptAll]) {
options[OptGetVideoFormat] = 1;
- options[OptGetCrop] = 1;
options[OptGetVideoOutFormat] = 1;
options[OptGetDriverInfo] = 1;
options[OptGetInput] = 1;

Privacy Policy