Lines Matching refs:crop
299 struct v4l2_crop crop; in gst_v4l2sink_sync_crop_fields() local
301 memset (&crop, 0x00, sizeof (struct v4l2_crop)); in gst_v4l2sink_sync_crop_fields()
302 crop.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in gst_v4l2sink_sync_crop_fields()
304 if (obj->ioctl (obj->video_fd, VIDIOC_G_CROP, &crop) < 0) { in gst_v4l2sink_sync_crop_fields()
312 v4l2sink->crop.top, v4l2sink->crop.left, in gst_v4l2sink_sync_crop_fields()
313 v4l2sink->crop.width, v4l2sink->crop.height); in gst_v4l2sink_sync_crop_fields()
316 crop.c.top = v4l2sink->crop.top; in gst_v4l2sink_sync_crop_fields()
318 crop.c.left = v4l2sink->crop.left; in gst_v4l2sink_sync_crop_fields()
320 crop.c.width = v4l2sink->crop.width; in gst_v4l2sink_sync_crop_fields()
322 crop.c.height = v4l2sink->crop.height; in gst_v4l2sink_sync_crop_fields()
324 if (obj->ioctl (obj->video_fd, VIDIOC_S_CROP, &crop) < 0) { in gst_v4l2sink_sync_crop_fields()
329 if (obj->ioctl (obj->video_fd, VIDIOC_G_CROP, &crop) < 0) { in gst_v4l2sink_sync_crop_fields()
335 v4l2sink->crop = crop.c; in gst_v4l2sink_sync_crop_fields()
370 v4l2sink->crop.top = g_value_get_int (value); in gst_v4l2sink_set_property()
375 v4l2sink->crop.left = g_value_get_int (value); in gst_v4l2sink_set_property()
380 v4l2sink->crop.width = g_value_get_uint (value); in gst_v4l2sink_set_property()
385 v4l2sink->crop.height = g_value_get_uint (value); in gst_v4l2sink_set_property()
419 g_value_set_int (value, v4l2sink->crop.top); in gst_v4l2sink_get_property()
422 g_value_set_int (value, v4l2sink->crop.left); in gst_v4l2sink_get_property()
425 g_value_set_uint (value, v4l2sink->crop.width); in gst_v4l2sink_get_property()
428 g_value_set_uint (value, v4l2sink->crop.height); in gst_v4l2sink_get_property()