From: Philippe De M. <ph...@ma...> - 2015-05-20 15:50:39
|
* 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 |