vidioc-g-jpegcomp.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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>These ioctls are <emphasis role="bold">deprecated</emphasis>.
  55. New drivers and applications should use <link linkend="jpeg-controls">
  56. JPEG class controls</link> for image quality and JPEG markers control.
  57. </para>
  58. <para>[to do]</para>
  59. <para>Ronald Bultje elaborates:</para>
  60. <!-- See video4linux-list@redhat.com on 16 Oct 2002, subject
  61. "Re: [V4L] Re: v4l2 api / Zoran v4l2_jpegcompression" -->
  62. <para>APP is some application-specific information. The
  63. application can set it itself, and it'll be stored in the JPEG-encoded
  64. fields (eg; interlacing information for in an AVI or so). COM is the
  65. same, but it's comments, like 'encoded by me' or so.</para>
  66. <para>jpeg_markers describes whether the huffman tables,
  67. quantization tables and the restart interval information (all
  68. JPEG-specific stuff) should be stored in the JPEG-encoded fields.
  69. These define how the JPEG field is encoded. If you omit them,
  70. applications assume you've used standard encoding. You usually do want
  71. to add them.</para>
  72. <!-- NB VIDIOC_S_JPEGCOMP is w/o. -->
  73. <table pgwide="1" frame="none" id="v4l2-jpegcompression">
  74. <title>struct <structname>v4l2_jpegcompression</structname></title>
  75. <tgroup cols="3">
  76. &cs-str;
  77. <tbody valign="top">
  78. <row>
  79. <entry>int</entry>
  80. <entry><structfield>quality</structfield></entry>
  81. <entry>Deprecated. If <link linkend="jpeg-quality-control"><constant>
  82. V4L2_CID_JPEG_COMPRESSION_QUALITY</constant></link> control is exposed
  83. by a driver applications should use it instead and ignore this field.
  84. </entry>
  85. </row>
  86. <row>
  87. <entry>int</entry>
  88. <entry><structfield>APPn</structfield></entry>
  89. <entry></entry>
  90. </row>
  91. <row>
  92. <entry>int</entry>
  93. <entry><structfield>APP_len</structfield></entry>
  94. <entry></entry>
  95. </row>
  96. <row>
  97. <entry>char</entry>
  98. <entry><structfield>APP_data</structfield>[60]</entry>
  99. <entry></entry>
  100. </row>
  101. <row>
  102. <entry>int</entry>
  103. <entry><structfield>COM_len</structfield></entry>
  104. <entry></entry>
  105. </row>
  106. <row>
  107. <entry>char</entry>
  108. <entry><structfield>COM_data</structfield>[60]</entry>
  109. <entry></entry>
  110. </row>
  111. <row>
  112. <entry>__u32</entry>
  113. <entry><structfield>jpeg_markers</structfield></entry>
  114. <entry>See <xref linkend="jpeg-markers"/>. Deprecated.
  115. If <link linkend="jpeg-active-marker-control"><constant>
  116. V4L2_CID_JPEG_ACTIVE_MARKER</constant></link> control
  117. is exposed by a driver applications should use it instead
  118. and ignore this field.</entry>
  119. </row>
  120. </tbody>
  121. </tgroup>
  122. </table>
  123. <table pgwide="1" frame="none" id="jpeg-markers">
  124. <title>JPEG Markers Flags</title>
  125. <tgroup cols="3">
  126. &cs-def;
  127. <tbody valign="top">
  128. <row>
  129. <entry><constant>V4L2_JPEG_MARKER_DHT</constant></entry>
  130. <entry>(1&lt;&lt;3)</entry>
  131. <entry>Define Huffman Tables</entry>
  132. </row>
  133. <row>
  134. <entry><constant>V4L2_JPEG_MARKER_DQT</constant></entry>
  135. <entry>(1&lt;&lt;4)</entry>
  136. <entry>Define Quantization Tables</entry>
  137. </row>
  138. <row>
  139. <entry><constant>V4L2_JPEG_MARKER_DRI</constant></entry>
  140. <entry>(1&lt;&lt;5)</entry>
  141. <entry>Define Restart Interval</entry>
  142. </row>
  143. <row>
  144. <entry><constant>V4L2_JPEG_MARKER_COM</constant></entry>
  145. <entry>(1&lt;&lt;6)</entry>
  146. <entry>Comment segment</entry>
  147. </row>
  148. <row>
  149. <entry><constant>V4L2_JPEG_MARKER_APP</constant></entry>
  150. <entry>(1&lt;&lt;7)</entry>
  151. <entry>App segment, driver will always use APP0</entry>
  152. </row>
  153. </tbody>
  154. </tgroup>
  155. </table>
  156. </refsect1>
  157. <refsect1>
  158. &return-value;
  159. </refsect1>
  160. </refentry>