[PATCH] v4l2: add decoding for VIDIOC_S_CROP's arg.

Philippe De Muyter phdm at macqel.be
Wed May 20 15:50:21 UTC 2015


* v4l2.c (v4l2_ioctl): Add decoding for VIDIOC_S_CROP's arg.
---
 v4l2.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/v4l2.c b/v4l2.c
index bbea458..6201ddc 100644
--- a/v4l2.c
+++ b/v4l2.c
@@ -568,6 +568,17 @@ v4l2_ioctl(struct tcb *tcp, const unsigned int code, long arg)
 		return 1;
 	}
 
+	case VIDIOC_S_CROP: {
+		struct v4l2_crop c;
+
+		if (exiting(tcp) || umove(tcp, arg, &c) < 0)
+			return 0;
+		tprints(", {type=");
+		printxval(v4l2_buf_types, c.type, "V4L2_BUF_TYPE_???");
+		tprintf(", c=" FMT_RECT "}", ARGS_RECT(c.c));
+		return 1;
+	}
+
 	case VIDIOC_G_FBUF:
 	case VIDIOC_S_FBUF: {
 		struct v4l2_framebuffer b;
-- 
1.8.4.5





More information about the Strace-devel mailing list