Home
last modified time | relevance | path

Searched refs:cropcap (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_CROPCAP.c40 struct v4l2_cropcap cropcap; in do_ioctl_VIDIOC_CROPCAP() local
43 memset(&cropcap, 0xff, sizeof(cropcap)); in do_ioctl_VIDIOC_CROPCAP()
44 cropcap.type = buf_type; in do_ioctl_VIDIOC_CROPCAP()
45 ret_cap = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in do_ioctl_VIDIOC_CROPCAP()
56 CU_ASSERT_EQUAL(cropcap.type, buf_type); in do_ioctl_VIDIOC_CROPCAP()
77 CU_ASSERT(cropcap.bounds.left <= cropcap.defrect.left); in do_ioctl_VIDIOC_CROPCAP()
78 CU_ASSERT(cropcap.bounds.top <= cropcap.defrect.top); in do_ioctl_VIDIOC_CROPCAP()
82 CU_ASSERT(cropcap.defrect.width <= cropcap.bounds.width); in do_ioctl_VIDIOC_CROPCAP()
83 CU_ASSERT(cropcap.defrect.height <= cropcap.bounds.height); in do_ioctl_VIDIOC_CROPCAP()
86 CU_ASSERT(cropcap.defrect.left + cropcap.defrect.width <= in do_ioctl_VIDIOC_CROPCAP()
[all …]
Dtest_VIDIOC_CROP.c157 struct v4l2_cropcap cropcap; in do_set_crop() local
172 memset(&cropcap, 0, sizeof(cropcap)); in do_set_crop()
173 cropcap.type = type; in do_set_crop()
174 ret_cap = ioctl(get_video_fd(), VIDIOC_CROPCAP, &cropcap); in do_set_crop()
182 __FILE__, __LINE__, ret_cap, errno_cap, cropcap.type, in do_set_crop()
183 cropcap.bounds.left, cropcap.bounds.top, cropcap.bounds.width, in do_set_crop()
184 cropcap.bounds.height, cropcap.defrect.left, cropcap.defrect.top, in do_set_crop()
185 cropcap.defrect.width, cropcap.defrect.height, in do_set_crop()
186 cropcap.pixelaspect.numerator, cropcap.pixelaspect.denominator); in do_set_crop()
190 crop.c = cropcap.bounds; in do_set_crop()
[all …]