diff --git a/v4l2/v4l2_pr_structs.c b/v4l2/v4l2_pr_structs.c index 4803ad27..efda876f 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 f910481a..39b95696 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