Texas Instruments OMAP35 Series User Manual page 184

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

Advertisement

}
printf("name of the input = %s\n", input.name);
9.3.2.7. Standard Enumeration
This IOCTL is used to enumerate the information regarding video standards.
This IOCTL is used to enumerate all the standards supported by the registered
decoder.
Ioctl: VIDIOC_ENUMSTD
This IOCTL takes a pointer to v4l2_standard structure. Application provides the
index of the standard to be enumerated in the index member of this structure.
It provides information like standard name, standard ID defined at V4L2 header
files (few new standards are included in the respective decoder header files,
which were not available in standard V4L2 header files), and numerator and
denominator values for frame period and frame lines.
It takes index as an argument as a part of v4l2_standard structure.
Index with value zero provides information for the first standard among all the
standards of all the registered decoders.
If the index value exceeds the number of supported standards, it returns an
error.
Example:
struct v4l2_standard standard;
i = 0;
while(1) {
}
9.3.2.8. Standard Detection
This IOCTL is used to detect the current video standard set in the current
decoder.
162
standard.index = i;
ret = ioctl(fd, VIDIOC_ENUMSTD, &standard);
if (ret < 0)
break;
printf("name = %s\n", std.name);
printf("framelines = %d\n", std.framelines);
printf("numerator = %d\n",
std.frameperiod.numerator);
printf("denominator = %d\n",
std.frameperiod.denominator);
i++;
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