The camera model is in the core 301 p
Development board is tiny6410
Program the following
If (0==ioctl (fd, VIDIOC_CROPCAP, & amp; Cropcap))//an error here, errors of parameter
{
CLEAR (crop);
Crop. Type=V4L2_BUF_TYPE_VIDEO_CAPTURE;
Crop. C=cropcap. Defrect;
If (1==ioctl (fd, VIDIOC_S_CROP, & amp; Crop))
{
If (EINVAL==errno)
{
Emit display_error (tr (" VIDIOC_S_CROP not supported "));
}
The else
{
Emit display_error (tr (" VIDIOC_S_CROP: % 1 "). Arg (QString (strerror (errno))));
return -1;
}
}
}
The else
{
Emit display_error (tr (" VIDIOC_CROPCAP: % 1 "). Arg (QString (strerror (errno))));
return -1;
}
This code the first ioctl return value has been wrong, leads to the else, error error parameters, excuse me everybody is what problem?
CodePudding user response:
Problem has been solved, there is doubt can I private chat,CodePudding user response:
The building Lord, please teach,CodePudding user response: