From 9e60436a359239c2c94801315a7b89b313dfd3da Mon Sep 17 00:00:00 2001 From: tth Date: Sun, 28 Jul 2019 00:28:22 +0200 Subject: [PATCH] ready for prime time ? --- v4l2/v4l2_pr_structs.c | 2 +- v4l2/video-infos.c | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/v4l2/v4l2_pr_structs.c b/v4l2/v4l2_pr_structs.c index 4803ad2..efda876 100644 --- a/v4l2/v4l2_pr_structs.c +++ b/v4l2/v4l2_pr_structs.c @@ -255,7 +255,7 @@ return "???"; void pr_ctrl_id(uint32_t id) { -if (verbosity) fprintf(FP, "%08x : ", id); +if (verbosity>1) fprintf(FP, "%08x : ", id); fprintf(FP, "%x %03x %04x", (id>>28)&0xf, V4L2_CTRL_ID2CLASS(id)>>16, id&0xffff); diff --git a/v4l2/video-infos.c b/v4l2/video-infos.c index f910481..39b9569 100644 --- a/v4l2/video-infos.c +++ b/v4l2/video-infos.c @@ -44,7 +44,11 @@ for (;;) { break; } } - pr_v4l2_fmtdesc(__func__, &fmtd); + + // pr_v4l2_fmtdesc(__func__, &fmtd); + printf(" %2d %-10s 0x%02x %s %-32s \n", + fmtd.index, str_buf_type(fmtd.type), fmtd.flags, + str_fourcc(fmtd.pixelformat), fmtd.description); idx++; } @@ -97,7 +101,7 @@ for (idx=V4L2_CID_BASE; idx1) printf(" id %d ", idx); if (0 == ioctl (fd, VIDIOC_QUERYCTRL, &qctrl)) { if (qctrl.flags & V4L2_CTRL_FLAG_DISABLED) { @@ -112,7 +116,7 @@ for (idx=V4L2_CID_BASE; idx