Other Parts Discussed in Thread: TVP5150, TVP7002
Tool/software: Linux
Hi,
Could anyone confirm me about cropping ability of V4L2 capture driver.
I capture frame (720x576) from /dev/video0 and want to crop a region 640x480.
struct v4l2_crop crop; crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; crop.c.left = 0; crop.c.top = 0; crop.c.width = 640; crop.c.height = 480; ret = ioctl(fd, VIDIOC_S_CROP, &crop);
VIDIOC_S_CROP return -1. In ti81xxvin_main.c, function vidioc_s_crop failed because interlaced format is not supported.
static int vidioc_s_crop(struct file *file, void *priv, struct v4l2_crop *crop) { //.................. if (params->interlaced) { mutex_unlock(&buf_obj->buf_lock); return -EINVAL; // FUNCTION RETURNS AT HERE } }
I think V4L2 capture driver in EZSDK doesn't support cropping and scaling.
I want to cropping frame and do some image processing. Could anybody suggest me some tips !
Many thanks !