Home
last modified time | relevance | path

Searched refs:cropcap (Results 1 – 5 of 5) 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 …]
/external/autotest/client/site_tests/camera_V4L2/src/
Dmedia_v4l2_unittest.cc135 v4l2_cropcap cropcap; in TestSetCrop() local
136 memset(&cropcap, 0, sizeof(cropcap)); in TestSetCrop()
137 if (v4l2_dev.GetCropCap(&cropcap)) { in TestSetCrop()
141 crop.c = cropcap.defrect; in TestSetCrop()
Dmedia_v4l2_device.cc95 v4l2_cropcap cropcap; in InitDevice() local
96 memset(&cropcap, 0, sizeof(cropcap)); in InitDevice()
97 if (GetCropCap(&cropcap)) { in InitDevice()
102 crop.c = cropcap.defrect; in InitDevice()
900 bool V4L2Device::GetCropCap(v4l2_cropcap* cropcap) { in GetCropCap() argument
901 if (-1 == DoIoctl(VIDIOC_CROPCAP, cropcap)) { in GetCropCap()
Dmedia_v4l2_device.h79 bool GetCropCap(v4l2_cropcap* cropcap);