From f662d092575c7c6cb88b927c0315d373b2dcf526 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Thu, 17 May 2007 12:29:57 +0200 Subject: Fix v4l2-ctl: comment out top/left usage From: Hans Verkuil The patch that broke the ABI was reverted. Also revert the changes in v4l2-ctl that used that new functionality. Signed-off-by: Hans Verkuil --- v4l2-apps/util/v4l2-ctl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'v4l2-apps/util') diff --git a/v4l2-apps/util/v4l2-ctl.cpp b/v4l2-apps/util/v4l2-ctl.cpp index 4493ab438..35d9f466b 100644 --- a/v4l2-apps/util/v4l2-ctl.cpp +++ b/v4l2-apps/util/v4l2-ctl.cpp @@ -686,11 +686,14 @@ static int printfmt(struct v4l2_format vfmt) printf("\tBytes per Line: %u\n", vfmt.fmt.pix.bytesperline); printf("\tSize Image : %u\n", vfmt.fmt.pix.sizeimage); printf("\tColorspace : %s\n", colorspace2s(vfmt.fmt.pix.colorspace).c_str()); +#if 0 + /* Comment out until ABI breakage is resolved */ if (vfmt.type == V4L2_BUF_TYPE_VIDEO_OUTPUT && (capabilities & V4L2_CAP_VIDEO_OUTPUT_POS)) { printf("\tLeft/Top : %d/%d\n", vfmt.fmt.pix.left, vfmt.fmt.pix.top); } +#endif if (vfmt.fmt.pix.priv) printf("\tCustom Info : %08x\n", vfmt.fmt.pix.priv); break; @@ -1155,6 +1158,8 @@ int main(int argc, char **argv) }; switch (parse_subopt(&subs, subopts, &value)) { +#if 0 + /* Comment out until ABI breakage is resolved */ case 0: vfmt_out.fmt.pix.top = strtol(value, 0L, 0); set_fmts_out |= FmtTop; @@ -1163,6 +1168,7 @@ int main(int argc, char **argv) vfmt_out.fmt.pix.left = strtol(value, 0L, 0); set_fmts_out |= FmtLeft; break; +#endif case 2: vfmt_out.fmt.pix.width = strtol(value, 0L, 0); set_fmts_out |= FmtWidth; @@ -1552,10 +1558,13 @@ int main(int argc, char **argv) if (ioctl(fd, VIDIOC_G_FMT, &in_vfmt) < 0) fprintf(stderr, "ioctl: VIDIOC_G_FMT failed\n"); else { +#if 0 + /* Comment out until ABI breakage is resolved */ if (set_fmts_out & FmtTop) in_vfmt.fmt.pix.top = vfmt_out.fmt.pix.top; if (set_fmts_out & FmtLeft) in_vfmt.fmt.pix.left = vfmt_out.fmt.pix.left; +#endif if (set_fmts_out & FmtWidth) in_vfmt.fmt.pix.width = vfmt_out.fmt.pix.width; if (set_fmts_out & FmtHeight) -- cgit v1.2.3