Home
last modified time | relevance | path

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

/third_party/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 …]
/third_party/ffmpeg/libavcodec/
Dv4l2_context.c69 struct v4l2_cropcap cropcap; in v4l2_get_sar() local
72 memset(&cropcap, 0, sizeof(cropcap)); in v4l2_get_sar()
73 cropcap.type = ctx->type; in v4l2_get_sar()
75 ret = ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_CROPCAP, &cropcap); in v4l2_get_sar()
79 sar.num = cropcap.pixelaspect.numerator; in v4l2_get_sar()
80 sar.den = cropcap.pixelaspect.denominator; in v4l2_get_sar()
/third_party/gstreamer/gstplugins_good/sys/v4l2/
Dgstv4l2object.c4517 struct v4l2_cropcap cropcap; in gst_v4l2_object_probe_caps() local
4519 memset (&cropcap, 0, sizeof (cropcap)); in gst_v4l2_object_probe_caps()
4521 cropcap.type = v4l2object->type; in gst_v4l2_object_probe_caps()
4522 if (v4l2object->ioctl (v4l2object->video_fd, VIDIOC_CROPCAP, &cropcap) < 0) { in gst_v4l2_object_probe_caps()
4527 } else if (cropcap.pixelaspect.numerator && cropcap.pixelaspect.denominator) { in gst_v4l2_object_probe_caps()
4530 gst_value_set_fraction (v4l2object->par, cropcap.pixelaspect.numerator, in gst_v4l2_object_probe_caps()
4531 cropcap.pixelaspect.denominator); in gst_v4l2_object_probe_caps()