vidioc-g-dv-preset.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <refentry id="vidioc-g-dv-preset">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_G_DV_PRESET</refname>
  8. <refname>VIDIOC_S_DV_PRESET</refname>
  9. <refpurpose>Query or select the DV preset of the current input or output</refpurpose>
  10. </refnamediv>
  11. <refsynopsisdiv>
  12. <funcsynopsis>
  13. <funcprototype>
  14. <funcdef>int <function>ioctl</function></funcdef>
  15. <paramdef>int <parameter>fd</parameter></paramdef>
  16. <paramdef>int <parameter>request</parameter></paramdef>
  17. <paramdef>&v4l2-dv-preset;
  18. *<parameter>argp</parameter></paramdef>
  19. </funcprototype>
  20. </funcsynopsis>
  21. </refsynopsisdiv>
  22. <refsect1>
  23. <title>Arguments</title>
  24. <variablelist>
  25. <varlistentry>
  26. <term><parameter>fd</parameter></term>
  27. <listitem>
  28. <para>&fd;</para>
  29. </listitem>
  30. </varlistentry>
  31. <varlistentry>
  32. <term><parameter>request</parameter></term>
  33. <listitem>
  34. <para>VIDIOC_G_DV_PRESET, VIDIOC_S_DV_PRESET</para>
  35. </listitem>
  36. </varlistentry>
  37. <varlistentry>
  38. <term><parameter>argp</parameter></term>
  39. <listitem>
  40. <para></para>
  41. </listitem>
  42. </varlistentry>
  43. </variablelist>
  44. </refsect1>
  45. <refsect1>
  46. <title>Description</title>
  47. <para>To query and select the current DV preset, applications
  48. use the <constant>VIDIOC_G_DV_PRESET</constant> and <constant>VIDIOC_S_DV_PRESET</constant>
  49. ioctls which take a pointer to a &v4l2-dv-preset; type as argument.
  50. Applications must zero the reserved array in &v4l2-dv-preset;.
  51. <constant>VIDIOC_G_DV_PRESET</constant> returns a dv preset in the field
  52. <structfield>preset</structfield> of &v4l2-dv-preset;.</para>
  53. <para><constant>VIDIOC_S_DV_PRESET</constant> accepts a pointer to a &v4l2-dv-preset;
  54. that has the preset value to be set. Applications must zero the reserved array in &v4l2-dv-preset;.
  55. If the preset is not supported, it returns an &EINVAL; </para>
  56. </refsect1>
  57. <refsect1>
  58. &return-value;
  59. <variablelist>
  60. <varlistentry>
  61. <term><errorcode>EINVAL</errorcode></term>
  62. <listitem>
  63. <para>This ioctl is not supported, or the
  64. <constant>VIDIOC_S_DV_PRESET</constant>,<constant>VIDIOC_S_DV_PRESET</constant> parameter was unsuitable.</para>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry>
  68. <term><errorcode>EBUSY</errorcode></term>
  69. <listitem>
  70. <para>The device is busy and therefore can not change the preset.</para>
  71. </listitem>
  72. </varlistentry>
  73. </variablelist>
  74. <table pgwide="1" frame="none" id="v4l2-dv-preset">
  75. <title>struct <structname>v4l2_dv_preset</structname></title>
  76. <tgroup cols="3">
  77. &cs-str;
  78. <tbody valign="top">
  79. <row>
  80. <entry>__u32</entry>
  81. <entry><structfield>preset</structfield></entry>
  82. <entry>Preset value to represent the digital video timings</entry>
  83. </row>
  84. <row>
  85. <entry>__u32</entry>
  86. <entry><structfield>reserved[4]</structfield></entry>
  87. <entry>Reserved fields for future use</entry>
  88. </row>
  89. </tbody>
  90. </tgroup>
  91. </table>
  92. </refsect1>
  93. </refentry>
  94. <!--
  95. Local Variables:
  96. mode: sgml
  97. sgml-parent-document: "v4l2.sgml"
  98. indent-tabs-mode: nil
  99. End:
  100. -->