Texas Instruments OMAP35 Series User Manual page 186

Evm linux psp
Hide thumbs Also See for OMAP35 Series:
Table of Contents

Advertisement

particular standard. In this case, the decoder driver auto detect function is
disabled. Auto detect can be enabled again only by closing and re-opening the
driver.
Example:
v4l2_std_id std = V4L2_STD_NTSC;
ret = ioctl(fd, VIDIOC_S_STD, &std);
if (ret < 0) {
}
while(1) {
}
9.3.2.10. Get Standard
This IOCTL is used to get the current standard in the current decoder.
Ioctl: VIDIOC_G_STD
It takes a pointer to v4l2_std_id instance as an output argument.
Standard IDs are defined in the V4L2 header files
Example:
v4l2_std_id std;
ret = ioctl(fd, VIDIOC_G_STD, &std);
if (ret < 0) {
}
while(1) {
164
perror("S_STD\n");
close(fd);
return -1;
standard.index = i;
ret = ioctl(fd, VIDIOC_ENUMSTD, &standard);
if (ret < 0)
break;
if (standard.std & std) {
printf("%s standard is selected\n");
break;
}
i++;
perror("G_STD\n");
close(fd);
return -1;
standard.index = i;
ret = ioctl(fd, VIDIOC_ENUMSTD, &standard);
if (ret < 0)
Platform Support Products
Capture Driver
Software Design Interfaces
Version 02.01.01.08

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omap3515Omap3525Omap3530

Table of Contents