Lines Matching full:selection
124 struct v4l2_selection selection; in v4l2_get_selection() local
128 selection.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in v4l2_get_selection()
129 selection.target = V4L2_SEL_TGT_CROP; in v4l2_get_selection()
132 selection.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in v4l2_get_selection()
133 selection.target = V4L2_SEL_TGT_COMPOSE; in v4l2_get_selection()
138 r = ioctl(fd, VIDIOC_G_SELECTION, &selection); in v4l2_get_selection()
141 left = selection.r.left; in v4l2_get_selection()
142 top = selection.r.top; in v4l2_get_selection()
143 width = selection.r.width; in v4l2_get_selection()
144 height = selection.r.height; in v4l2_get_selection()
150 struct v4l2_selection selection; in v4l2_set_selection() local
154 selection.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in v4l2_set_selection()
155 selection.target = V4L2_SEL_TGT_CROP; in v4l2_set_selection()
158 selection.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in v4l2_set_selection()
159 selection.target = V4L2_SEL_TGT_COMPOSE; in v4l2_set_selection()
164 selection.r.left = left; in v4l2_set_selection()
165 selection.r.top = top; in v4l2_set_selection()
166 selection.r.width = width; in v4l2_set_selection()
167 selection.r.height = height; in v4l2_set_selection()
169 r = ioctl(fd, VIDIOC_S_SELECTION, &selection); in v4l2_set_selection()
172 left = selection.r.left; in v4l2_set_selection()
173 top = selection.r.top; in v4l2_set_selection()
174 width = selection.r.width; in v4l2_set_selection()
175 height = selection.r.height; in v4l2_set_selection()