1 .. -*- coding: utf-8; mode: rst -*-
5 ******************************************
6 ioctl VIDIOC_G_JPEGCOMP, VIDIOC_S_JPEGCOMP
7 ******************************************
12 VIDIOC_G_JPEGCOMP - VIDIOC_S_JPEGCOMP
18 .. c:function:: int ioctl( int fd, VIDIOC_G_JPEGCOMP, v4l2_jpegcompression *argp )
19 :name: VIDIOC_G_JPEGCOMP
21 .. c:function:: int ioctl( int fd, VIDIOC_S_JPEGCOMP, const v4l2_jpegcompression *argp )
22 :name: VIDIOC_S_JPEGCOMP
29 File descriptor returned by :ref:`open() <func-open>`.
37 These ioctls are **deprecated**. New drivers and applications should use
38 :ref:`JPEG class controls <jpeg-controls>` for image quality and JPEG
43 Ronald Bultje elaborates:
45 APP is some application-specific information. The application can set it
46 itself, and it'll be stored in the JPEG-encoded fields (eg; interlacing
47 information for in an AVI or so). COM is the same, but it's comments,
48 like 'encoded by me' or so.
50 jpeg_markers describes whether the huffman tables, quantization tables
51 and the restart interval information (all JPEG-specific stuff) should be
52 stored in the JPEG-encoded fields. These define how the JPEG field is
53 encoded. If you omit them, applications assume you've used standard
54 encoding. You usually do want to add them.
57 .. tabularcolumns:: |p{1.2cm}|p{3.0cm}|p{13.3cm}|
59 .. c:type:: v4l2_jpegcompression
61 .. flat-table:: struct v4l2_jpegcompression
69 :ref:`V4L2_CID_JPEG_COMPRESSION_QUALITY <jpeg-quality-control>`
70 control is exposed by a driver applications should use it instead
71 and ignore this field.
89 - See :ref:`jpeg-markers`. Deprecated. If
90 :ref:`V4L2_CID_JPEG_ACTIVE_MARKER <jpeg-active-marker-control>`
91 control is exposed by a driver applications should use it instead
92 and ignore this field.
95 .. tabularcolumns:: |p{6.6cm}|p{2.2cm}|p{8.7cm}|
99 .. flat-table:: JPEG Markers Flags
104 * - ``V4L2_JPEG_MARKER_DHT``
106 - Define Huffman Tables
107 * - ``V4L2_JPEG_MARKER_DQT``
109 - Define Quantization Tables
110 * - ``V4L2_JPEG_MARKER_DRI``
112 - Define Restart Interval
113 * - ``V4L2_JPEG_MARKER_COM``
116 * - ``V4L2_JPEG_MARKER_APP``
118 - App segment, driver will always use APP0
124 On success 0 is returned, on error -1 and the ``errno`` variable is set
125 appropriately. The generic error codes are described at the
126 :ref:`Generic Error Codes <gen-errors>` chapter.