In function:Capture_detectVideoStd
goto this:
/* Display available video standards */
Dmai_dbg0("Available video standard:\n");
for (index=0;; index++) {
std.frameperiod.numerator = 1;
std.frameperiod.denominator = 0;
std.index = index;
if (ioctl(fd, VIDIOC_ENUMSTD, &std) < 0) {
printf("Capture_detectVideoStd emum fail 0\n");
if (errno == EINVAL || errno == ENOTTY)
{
printf("Capture_detectVideoStd emum fail\n");
break;
}
}
printf ("Current video standard: %d-%s\n", std.name, std.index);
...
}
....
/* Set the video standard */
if (ioctl(fd, VIDIOC_S_STD, &id) < 0) {
...
}
will cause error:
Failed to detect capture video standard
VIDIOC_ENUMSTD VIDIOC_G_STD VIDIOC_S_STD for ioctl is FAIL! Is these command is different with different CHIP(I using 9900)?
Who can help me to resolv this problem?
Thanks very much!