vidioc-g-jpegcomp.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <refentry id="vidioc-g-jpegcomp">
  2. <refmeta>
  3. <refentrytitle>ioctl VIDIOC_G_JPEGCOMP, VIDIOC_S_JPEGCOMP</refentrytitle>
  4. &manvol;
  5. </refmeta>
  6. <refnamediv>
  7. <refname>VIDIOC_G_JPEGCOMP</refname>
  8. <refname>VIDIOC_S_JPEGCOMP</refname>
  9. <refpurpose></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_jpegcompression *<parameter>argp</parameter></paramdef>
  18. </funcprototype>
  19. </funcsynopsis>
  20. <funcsynopsis>
  21. <funcprototype>
  22. <funcdef>int <function>ioctl</function></funcdef>
  23. <paramdef>int <parameter>fd</parameter></paramdef>
  24. <paramdef>int <parameter>request</parameter></paramdef>
  25. <paramdef>const v4l2_jpegcompression *<parameter>argp</parameter></paramdef>
  26. </funcprototype>
  27. </funcsynopsis>
  28. </refsynopsisdiv>
  29. <refsect1>
  30. <title>Arguments</title>
  31. <variablelist>
  32. <varlistentry>
  33. <term><parameter>fd</parameter></term>
  34. <listitem>
  35. <para>&fd;</para>
  36. </listitem>
  37. </varlistentry>
  38. <varlistentry>
  39. <term><parameter>request</parameter></term>
  40. <listitem>
  41. <para>VIDIOC_G_JPEGCOMP, VIDIOC_S_JPEGCOMP</para>
  42. </listitem>
  43. </varlistentry>
  44. <varlistentry>
  45. <term><parameter>argp</parameter></term>
  46. <listitem>
  47. <para></para>
  48. </listitem>
  49. </varlistentry>
  50. </variablelist>
  51. </refsect1>
  52. <refsect1>
  53. <title>Description</title>
  54. <para>[to do]</para>
  55. <para>Ronald Bultje elaborates:</para>
  56. <!-- See video4linux-list@redhat.com on 16 Oct 2002, subject
  57. "Re: [V4L] Re: v4l2 api / Zoran v4l2_jpegcompression" -->
  58. <para>APP is some application-specific information. The
  59. application can set it itself, and it'll be stored in the JPEG-encoded
  60. fields (eg; interlacing information for in an AVI or so). COM is the
  61. same, but it's comments, like 'encoded by me' or so.</para>
  62. <para>jpeg_markers describes whether the huffman tables,
  63. quantization tables and the restart interval information (all
  64. JPEG-specific stuff) should be stored in the JPEG-encoded fields.
  65. These define how the JPEG field is encoded. If you omit them,
  66. applications assume you've used standard encoding. You usually do want
  67. to add them.</para>
  68. <!-- NB VIDIOC_S_JPEGCOMP is w/o. -->
  69. <table pgwide="1" frame="none" id="v4l2-jpegcompression">
  70. <title>struct <structname>v4l2_jpegcompression</structname></title>
  71. <tgroup cols="3">
  72. &cs-str;
  73. <tbody valign="top">
  74. <row>
  75. <entry>int</entry>
  76. <entry><structfield>quality</structfield></entry>
  77. <entry></entry>
  78. </row>
  79. <row>
  80. <entry>int</entry>
  81. <entry><structfield>APPn</structfield></entry>
  82. <entry></entry>
  83. </row>
  84. <row>
  85. <entry>int</entry>
  86. <entry><structfield>APP_len</structfield></entry>
  87. <entry></entry>
  88. </row>
  89. <row>
  90. <entry>char</entry>
  91. <entry><structfield>APP_data</structfield>[60]</entry>
  92. <entry></entry>
  93. </row>
  94. <row>
  95. <entry>int</entry>
  96. <entry><structfield>COM_len</structfield></entry>
  97. <entry></entry>
  98. </row>
  99. <row>
  100. <entry>char</entry>
  101. <entry><structfield>COM_data</structfield>[60]</entry>
  102. <entry></entry>
  103. </row>
  104. <row>
  105. <entry>__u32</entry>
  106. <entry><structfield>jpeg_markers</structfield></entry>
  107. <entry>See <xref linkend="jpeg-markers" />.</entry>
  108. </row>
  109. </tbody>
  110. </tgroup>
  111. </table>
  112. <table pgwide="1" frame="none" id="jpeg-markers">
  113. <title>JPEG Markers Flags</title>
  114. <tgroup cols="3">
  115. &cs-def;
  116. <tbody valign="top">
  117. <row>
  118. <entry><constant>V4L2_JPEG_MARKER_DHT</constant></entry>
  119. <entry>(1&lt;&lt;3)</entry>
  120. <entry>Define Huffman Tables</entry>
  121. </row>
  122. <row>
  123. <entry><constant>V4L2_JPEG_MARKER_DQT</constant></entry>
  124. <entry>(1&lt;&lt;4)</entry>
  125. <entry>Define Quantization Tables</entry>
  126. </row>
  127. <row>
  128. <entry><constant>V4L2_JPEG_MARKER_DRI</constant></entry>
  129. <entry>(1&lt;&lt;5)</entry>
  130. <entry>Define Restart Interval</entry>
  131. </row>
  132. <row>
  133. <entry><constant>V4L2_JPEG_MARKER_COM</constant></entry>
  134. <entry>(1&lt;&lt;6)</entry>
  135. <entry>Comment segment</entry>
  136. </row>
  137. <row>
  138. <entry><constant>V4L2_JPEG_MARKER_APP</constant></entry>
  139. <entry>(1&lt;&lt;7)</entry>
  140. <entry>App segment, driver will always use APP0</entry>
  141. </row>
  142. </tbody>
  143. </tgroup>
  144. </table>
  145. </refsect1>
  146. <refsect1>
  147. &return-value;
  148. <variablelist>
  149. <varlistentry>
  150. <term><errorcode>EINVAL</errorcode></term>
  151. <listitem>
  152. <para>This ioctl is not supported.</para>
  153. </listitem>
  154. </varlistentry>
  155. </variablelist>
  156. </refsect1>
  157. </refentry>
  158. <!--
  159. Local Variables:
  160. mode: sgml
  161. sgml-parent-document: "v4l2.sgml"
  162. indent-tabs-mode: nil
  163. End:
  164. -->