sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget2/translations/zh_CN/userspace-api/media/v4l/buffermodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/zh_TW/userspace-api/media/v4l/buffermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/it_IT/userspace-api/media/v4l/buffermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/ja_JP/userspace-api/media/v4l/buffermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/ko_KR/userspace-api/media/v4l/buffermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/pt_BR/userspace-api/media/v4l/buffermodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/sp_SP/userspace-api/media/v4l/buffermodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-laterh]h8SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhL/var/lib/git/docbuild/linux/Documentation/userspace-api/media/v4l/buffer.rsthKubhtarget)}(h .. _buffer:h]h}(h]h ]h"]h$]h&]refidbufferuh1hhKhhhhhhubhsection)}(hhh](htitle)}(hBuffersh]hBuffers}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hX A buffer contains data exchanged by application and driver using one of the Streaming I/O methods. In the multi-planar API, the data is held in planes, while the buffer structure acts as a container for the planes. Only pointers to buffers (planes) are exchanged, the data itself is not copied. These pointers, together with meta-information like timestamps or field parity, are stored in a struct :c:type:`v4l2_buffer`, argument to the :ref:`VIDIOC_QUERYBUF`, :ref:`VIDIOC_QBUF ` and :ref:`VIDIOC_DQBUF ` ioctl. In the multi-planar API, some plane-specific members of struct :c:type:`v4l2_buffer`, such as pointers and sizes for each plane, are stored in struct :c:type:`v4l2_plane` instead. In that case, struct :c:type:`v4l2_buffer` contains an array of plane structures.h](hXA buffer contains data exchanged by application and driver using one of the Streaming I/O methods. In the multi-planar API, the data is held in planes, while the buffer structure acts as a container for the planes. Only pointers to buffers (planes) are exchanged, the data itself is not copied. These pointers, together with meta-information like timestamps or field parity, are stored in a struct }(hhhhhNhNubh)}(h:c:type:`v4l2_buffer`h]hliteral)}(hhh]h v4l2_buffer}(hhhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]refdocuserspace-api/media/v4l/buffer refdomainjreftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)} identifierV4LsbNasb reftarget v4l2_bufferuh1hhhhK hhubh, argument to the }(hhhhhNhNubh)}(h:ref:`VIDIOC_QUERYBUF`h]hinline)}(hj/h]hVIDIOC_QUERYBUF}(hj3hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj-ubah}(h]h ]h"]h$]h&]refdocj refdomainj=reftyperef refexplicitrefwarnj'vidioc_querybufuh1hhhhK hhubh, }(hhhhhNhNubh)}(h :ref:`VIDIOC_QBUF `h]j2)}(hjUh]h VIDIOC_QBUF}(hjWhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjSubah}(h]h ]h"]h$]h&]refdocj refdomainjareftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhK hhubh and }(hhhhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j2)}(hjyh]h VIDIOC_DQBUF}(hj{hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjwubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhK hhubhG ioctl. In the multi-planar API, some plane-specific members of struct }(hhhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhK hhubhB, such as pointers and sizes for each plane, are stored in struct }(hhhhhNhNubh)}(h:c:type:`v4l2_plane`h]h)}(hjh]h v4l2_plane}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_planeuh1hhhhK hhubh instead. In that case, struct }(hhhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhK hhubh' contains an array of plane structures.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hXDequeued video buffers come with timestamps. The driver decides at which part of the frame and with which clock the timestamp is taken. Please see flags in the masks ``V4L2_BUF_FLAG_TIMESTAMP_MASK`` and ``V4L2_BUF_FLAG_TSTAMP_SRC_MASK`` in :ref:`buffer-flags`. These flags are always valid and constant across all buffers during the whole video stream. Changes in these flags may take place as a side effect of :ref:`VIDIOC_S_INPUT ` or :ref:`VIDIOC_S_OUTPUT ` however. The ``V4L2_BUF_FLAG_TIMESTAMP_COPY`` timestamp type which is used by e.g. on mem-to-mem devices is an exception to the rule: the timestamp source flags are copied from the OUTPUT video buffer to the CAPTURE video buffer.h](hDequeued video buffers come with timestamps. The driver decides at which part of the frame and with which clock the timestamp is taken. Please see flags in the masks }(hj hhhNhNubh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_MASK``h]hV4L2_BUF_FLAG_TIMESTAMP_MASK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh and }(hj hhhNhNubh)}(h!``V4L2_BUF_FLAG_TSTAMP_SRC_MASK``h]hV4L2_BUF_FLAG_TSTAMP_SRC_MASK}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh in }(hj hhhNhNubh)}(h:ref:`buffer-flags`h]j2)}(hj8h]h buffer-flags}(hj:hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj6ubah}(h]h ]h"]h$]h&]refdocj refdomainjDreftyperef refexplicitrefwarnj' buffer-flagsuh1hhhhKhj ubh. These flags are always valid and constant across all buffers during the whole video stream. Changes in these flags may take place as a side effect of }(hj hhhNhNubh)}(h&:ref:`VIDIOC_S_INPUT `h]j2)}(hj\h]hVIDIOC_S_INPUT}(hj^hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjZubah}(h]h ]h"]h$]h&]refdocj refdomainjhreftyperef refexplicitrefwarnj'vidioc_g_inputuh1hhhhKhj ubh or }(hj hhhNhNubh)}(h(:ref:`VIDIOC_S_OUTPUT `h]j2)}(hjh]hVIDIOC_S_OUTPUT}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj~ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'vidioc_g_outputuh1hhhhKhj ubh however. The }(hj hhhNhNubh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_COPY``h]hV4L2_BUF_FLAG_TIMESTAMP_COPY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh timestamp type which is used by e.g. on mem-to-mem devices is an exception to the rule: the timestamp source flags are copied from the OUTPUT video buffer to the CAPTURE video buffer.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h2Interactions between formats, controls and buffersh]h2Interactions between formats, controls and buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK&ubh)}(hXV4L2 exposes parameters that influence the buffer size, or the way data is laid out in the buffer. Those parameters are exposed through both formats and controls. One example of such a control is the ``V4L2_CID_ROTATE`` control that modifies the direction in which pixels are stored in the buffer, as well as the buffer size when the selected format includes padding at the end of lines.h](hV4L2 exposes parameters that influence the buffer size, or the way data is laid out in the buffer. Those parameters are exposed through both formats and controls. One example of such a control is the }(hjhhhNhNubh)}(h``V4L2_CID_ROTATE``h]hV4L2_CID_ROTATE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh control that modifies the direction in which pixels are stored in the buffer, as well as the buffer size when the selected format includes padding at the end of lines.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK(hjhhubh)}(hThe set of information needed to interpret the content of a buffer (e.g. the pixel format, the line stride, the tiling orientation or the rotation) is collectively referred to in the rest of this section as the buffer layout.h]hThe set of information needed to interpret the content of a buffer (e.g. the pixel format, the line stride, the tiling orientation or the rotation) is collectively referred to in the rest of this section as the buffer layout.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjhhubh)}(h_Controls that can modify the buffer layout shall set the ``V4L2_CTRL_FLAG_MODIFY_LAYOUT`` flag.h](h9Controls that can modify the buffer layout shall set the }(hjhhhNhNubh)}(h ``V4L2_CTRL_FLAG_MODIFY_LAYOUT``h]hV4L2_CTRL_FLAG_MODIFY_LAYOUT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh flag.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK3hjhhubh)}(hXModifying formats or controls that influence the buffer size or layout require the stream to be stopped. Any attempt at such a modification while the stream is active shall cause the ioctl setting the format or the control to return the ``EBUSY`` error code. In that case drivers shall also set the ``V4L2_CTRL_FLAG_GRABBED`` flag when calling :c:func:`VIDIOC_QUERYCTRL` or :c:func:`VIDIOC_QUERY_EXT_CTRL` for such a control while the stream is active.h](hModifying formats or controls that influence the buffer size or layout require the stream to be stopped. Any attempt at such a modification while the stream is active shall cause the ioctl setting the format or the control to return the }(hjhhhNhNubh)}(h ``EBUSY``h]hEBUSY}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh5 error code. In that case drivers shall also set the }(hjhhhNhNubh)}(h``V4L2_CTRL_FLAG_GRABBED``h]hV4L2_CTRL_FLAG_GRABBED}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh flag when calling }(hjhhhNhNubh)}(h:c:func:`VIDIOC_QUERYCTRL`h]h)}(hjGh]hVIDIOC_QUERYCTRL()}(hjIhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_QUERYCTRLuh1hhhhK6hjubh or }(hjhhhNhNubh)}(h:c:func:`VIDIOC_QUERY_EXT_CTRL`h]h)}(hjjh]hVIDIOC_QUERY_EXT_CTRL()}(hjlhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_QUERY_EXT_CTRLuh1hhhhK6hjubh/ for such a control while the stream is active.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK6hjhhubhnote)}(hX3The :c:func:`VIDIOC_S_SELECTION` ioctl can, depending on the hardware (for instance if the device doesn't include a scaler), modify the format in addition to the selection rectangle. Similarly, the :c:func:`VIDIOC_S_INPUT`, :c:func:`VIDIOC_S_OUTPUT`, :c:func:`VIDIOC_S_STD` and :c:func:`VIDIOC_S_DV_TIMINGS` ioctls can also modify the format and selection rectangles. When those ioctls result in a buffer size or layout change, drivers shall handle that condition as they would handle it in the :c:func:`VIDIOC_S_FMT` ioctl in all cases described in this section.h]h)}(hX3The :c:func:`VIDIOC_S_SELECTION` ioctl can, depending on the hardware (for instance if the device doesn't include a scaler), modify the format in addition to the selection rectangle. Similarly, the :c:func:`VIDIOC_S_INPUT`, :c:func:`VIDIOC_S_OUTPUT`, :c:func:`VIDIOC_S_STD` and :c:func:`VIDIOC_S_DV_TIMINGS` ioctls can also modify the format and selection rectangles. When those ioctls result in a buffer size or layout change, drivers shall handle that condition as they would handle it in the :c:func:`VIDIOC_S_FMT` ioctl in all cases described in this section.h](hThe }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_SELECTION`h]h)}(hjh]hVIDIOC_S_SELECTION()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_S_SELECTIONuh1hhhhK@hjubh ioctl can, depending on the hardware (for instance if the device doesn’t include a scaler), modify the format in addition to the selection rectangle. Similarly, the }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_INPUT`h]h)}(hjh]hVIDIOC_S_INPUT()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_S_INPUTuh1hhhhK@hjubh, }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_OUTPUT`h]h)}(hjh]hVIDIOC_S_OUTPUT()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_S_OUTPUTuh1hhhhK@hjubh, }hjsbh)}(h:c:func:`VIDIOC_S_STD`h]h)}(hj h]hVIDIOC_S_STD()}(hj hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' VIDIOC_S_STDuh1hhhhK@hjubh and }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_DV_TIMINGS`h]h)}(hj-h]hVIDIOC_S_DV_TIMINGS()}(hj/hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_S_DV_TIMINGSuh1hhhhK@hjubh ioctls can also modify the format and selection rectangles. When those ioctls result in a buffer size or layout change, drivers shall handle that condition as they would handle it in the }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_FMT`h]h)}(hjPh]hVIDIOC_S_FMT()}(hjRhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' VIDIOC_S_FMTuh1hhhhK@hjubh. ioctl in all cases described in this section.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK@hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubh)}(hX1Controls that only influence the buffer layout can be modified at any time when the stream is stopped. As they don't influence the buffer size, no special handling is needed to synchronize those controls with buffer allocation and the ``V4L2_CTRL_FLAG_GRABBED`` flag is cleared once the stream is stopped.h](hControls that only influence the buffer layout can be modified at any time when the stream is stopped. As they don’t influence the buffer size, no special handling is needed to synchronize those controls with buffer allocation and the }(hj}hhhNhNubh)}(h``V4L2_CTRL_FLAG_GRABBED``h]hV4L2_CTRL_FLAG_GRABBED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubh, flag is cleared once the stream is stopped.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKIhjhhubh)}(hXFormats and controls that influence the buffer size interact with buffer allocation. The simplest way to handle this is for drivers to always require buffers to be reallocated in order to change those formats or controls. In that case, to perform such changes, userspace applications shall first stop the video stream with the :c:func:`VIDIOC_STREAMOFF` ioctl if it is running and free all buffers with the :c:func:`VIDIOC_REQBUFS` ioctl if they are allocated. After freeing all buffers the ``V4L2_CTRL_FLAG_GRABBED`` flag for controls is cleared. The format or controls can then be modified, and buffers shall then be reallocated and the stream restarted. A typical ioctl sequence ish](hXGFormats and controls that influence the buffer size interact with buffer allocation. The simplest way to handle this is for drivers to always require buffers to be reallocated in order to change those formats or controls. In that case, to perform such changes, userspace applications shall first stop the video stream with the }(hjhhhNhNubh)}(h:c:func:`VIDIOC_STREAMOFF`h]h)}(hjh]hVIDIOC_STREAMOFF()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_STREAMOFFuh1hhhhKOhjubh6 ioctl if it is running and free all buffers with the }(hjhhhNhNubh)}(h:c:func:`VIDIOC_REQBUFS`h]h)}(hjh]hVIDIOC_REQBUFS()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_REQBUFSuh1hhhhKOhjubh< ioctl if they are allocated. After freeing all buffers the }(hjhhhNhNubh)}(h``V4L2_CTRL_FLAG_GRABBED``h]hV4L2_CTRL_FLAG_GRABBED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh flag for controls is cleared. The format or controls can then be modified, and buffers shall then be reallocated and the stream restarted. A typical ioctl sequence is}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKOhjhhubh block_quote)}(h#. VIDIOC_STREAMOFF #. VIDIOC_REQBUFS(0) #. VIDIOC_S_EXT_CTRLS #. VIDIOC_S_FMT #. VIDIOC_REQBUFS(n) #. VIDIOC_QBUF #. VIDIOC_STREAMON h]henumerated_list)}(hhh](h list_item)}(hVIDIOC_STREAMOFFh]h)}(hjh]hVIDIOC_STREAMOFF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKZhjubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hVIDIOC_REQBUFS(0)h]h)}(hj)h]hVIDIOC_REQBUFS(0)}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK[hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hVIDIOC_S_EXT_CTRLSh]h)}(hj@h]hVIDIOC_S_EXT_CTRLS}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hj>ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h VIDIOC_S_FMTh]h)}(hjWh]h VIDIOC_S_FMT}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK]hjUubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hVIDIOC_REQBUFS(n)h]h)}(hjnh]hVIDIOC_REQBUFS(n)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK^hjlubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h VIDIOC_QBUFh]h)}(hjh]h VIDIOC_QBUF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK_hjubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hVIDIOC_STREAMON h]h)}(hVIDIOC_STREAMONh]hVIDIOC_STREAMON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK`hjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1j hjubah}(h]h ]h"]h$]h&]uh1jhhhKZhjhhubh)}(hThe second :c:func:`VIDIOC_REQBUFS` call will take the new format and control value into account to compute the buffer size to allocate. Applications can also retrieve the size by calling the :c:func:`VIDIOC_G_FMT` ioctl if needed.h](h The second }(hjhhhNhNubh)}(h:c:func:`VIDIOC_REQBUFS`h]h)}(hjh]hVIDIOC_REQBUFS()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_REQBUFSuh1hhhhKbhjubh call will take the new format and control value into account to compute the buffer size to allocate. Applications can also retrieve the size by calling the }(hjhhhNhNubh)}(h:c:func:`VIDIOC_G_FMT`h]h)}(hjh]hVIDIOC_G_FMT()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' VIDIOC_G_FMTuh1hhhhKbhjubh ioctl if needed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKbhjhhubj)}(hXGThe API doesn't mandate the above order for control (3.) and format (4.) changes. Format and controls can be set in a different order, or even interleaved, depending on the device and use case. For instance some controls might behave differently for different pixel formats, in which case the format might need to be set first.h]h)}(hXGThe API doesn't mandate the above order for control (3.) and format (4.) changes. Format and controls can be set in a different order, or even interleaved, depending on the device and use case. For instance some controls might behave differently for different pixel formats, in which case the format might need to be set first.h]hXIThe API doesn’t mandate the above order for control (3.) and format (4.) changes. Format and controls can be set in a different order, or even interleaved, depending on the device and use case. For instance some controls might behave differently for different pixel formats, in which case the format might need to be set first.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubh)}(hXcWhen reallocation is required, any attempt to modify format or controls that influences the buffer size while buffers are allocated shall cause the format or control set ioctl to return the ``EBUSY`` error. Any attempt to queue a buffer too small for the current format or controls shall cause the :c:func:`VIDIOC_QBUF` ioctl to return a ``EINVAL`` error.h](hWhen reallocation is required, any attempt to modify format or controls that influences the buffer size while buffers are allocated shall cause the format or control set ioctl to return the }(hj/hhhNhNubh)}(h ``EBUSY``h]hEBUSY}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubhc error. Any attempt to queue a buffer too small for the current format or controls shall cause the }(hj/hhhNhNubh)}(h:c:func:`VIDIOC_QBUF`h]h)}(hjKh]h VIDIOC_QBUF()}(hjMhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' VIDIOC_QBUFuh1hhhhKnhj/ubh ioctl to return a }(hj/hhhNhNubh)}(h ``EINVAL``h]hEINVAL}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubh error.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKnhjhhubh)}(hX Buffer reallocation is an expensive operation. To avoid that cost, drivers can (and are encouraged to) allow format or controls that influence the buffer size to be changed with buffers allocated. In that case, a typical ioctl sequence to modify format and controls ish]hX Buffer reallocation is an expensive operation. To avoid that cost, drivers can (and are encouraged to) allow format or controls that influence the buffer size to be changed with buffers allocated. In that case, a typical ioctl sequence to modify format and controls is}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKthjhhubj)}(h\#. VIDIOC_STREAMOFF #. VIDIOC_S_EXT_CTRLS #. VIDIOC_S_FMT #. VIDIOC_QBUF #. VIDIOC_STREAMON h]j )}(hhh](j)}(hVIDIOC_STREAMOFFh]h)}(hjh]hVIDIOC_STREAMOFF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKyhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVIDIOC_S_EXT_CTRLSh]h)}(hjh]hVIDIOC_S_EXT_CTRLS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h VIDIOC_S_FMTh]h)}(hjh]h VIDIOC_S_FMT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK{hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h VIDIOC_QBUFh]h)}(hjh]h VIDIOC_QBUF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK|hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVIDIOC_STREAMON h]h)}(hVIDIOC_STREAMONh]hVIDIOC_STREAMON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjjhjjuh1j hjubah}(h]h ]h"]h$]h&]uh1jhhhKyhjhhubh)}(hXFor this sequence to operate correctly, queued buffers need to be large enough for the new format or controls. Drivers shall return a ``ENOSPC`` error in response to format change (:c:func:`VIDIOC_S_FMT`) or control changes (:c:func:`VIDIOC_S_CTRL` or :c:func:`VIDIOC_S_EXT_CTRLS`) if buffers too small for the new format are currently queued. As a simplification, drivers are allowed to return a ``EBUSY`` error from these ioctls if any buffer is currently queued, without checking the queued buffers sizes.h](hFor this sequence to operate correctly, queued buffers need to be large enough for the new format or controls. Drivers shall return a }(hjhhhNhNubh)}(h ``ENOSPC``h]hENOSPC}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh% error in response to format change (}(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_FMT`h]h)}(hj5h]hVIDIOC_S_FMT()}(hj7hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' VIDIOC_S_FMTuh1hhhhKhjubh) or control changes (}(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_CTRL`h]h)}(hjXh]hVIDIOC_S_CTRL()}(hjZhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' VIDIOC_S_CTRLuh1hhhhKhjubh or }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_EXT_CTRLS`h]h)}(hj{h]hVIDIOC_S_EXT_CTRLS()}(hj}hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_S_EXT_CTRLSuh1hhhhKhjubhu) if buffers too small for the new format are currently queued. As a simplification, drivers are allowed to return a }(hjhhhNhNubh)}(h ``EBUSY``h]hEBUSY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubhf error from these ioctls if any buffer is currently queued, without checking the queued buffers sizes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hX"Additionally, drivers shall return a ``EINVAL`` error from the :c:func:`VIDIOC_QBUF` ioctl if the buffer being queued is too small for the current format or controls. Together, these requirements ensure that queued buffers will always be large enough for the configured format and controls.h](h%Additionally, drivers shall return a }(hjhhhNhNubh)}(h ``EINVAL``h]hEINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh error from the }(hjhhhNhNubh)}(h:c:func:`VIDIOC_QBUF`h]h)}(hjh]h VIDIOC_QBUF()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' VIDIOC_QBUFuh1hhhhKhjubh ioctl if the buffer being queued is too small for the current format or controls. Together, these requirements ensure that queued buffers will always be large enough for the configured format and controls.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hUserspace applications can query the buffer size required for a given format and controls by first setting the desired control values and then trying the desired format. The :c:func:`VIDIOC_TRY_FMT` ioctl will return the required buffer size.h](hUserspace applications can query the buffer size required for a given format and controls by first setting the desired control values and then trying the desired format. The }(hjhhhNhNubh)}(h:c:func:`VIDIOC_TRY_FMT`h]h)}(hjh]hVIDIOC_TRY_FMT()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_TRY_FMTuh1hhhhKhjubh, ioctl will return the required buffer size.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hZ#. VIDIOC_S_EXT_CTRLS(x) #. VIDIOC_TRY_FMT() #. VIDIOC_S_EXT_CTRLS(y) #. VIDIOC_TRY_FMT() h]j )}(hhh](j)}(hVIDIOC_S_EXT_CTRLS(x)h]h)}(hj1h]hVIDIOC_S_EXT_CTRLS(x)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj/ubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(hVIDIOC_TRY_FMT()h]h)}(hjHh]hVIDIOC_TRY_FMT()}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjFubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(hVIDIOC_S_EXT_CTRLS(y)h]h)}(hj_h]hVIDIOC_S_EXT_CTRLS(y)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj]ubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(hVIDIOC_TRY_FMT() h]h)}(hVIDIOC_TRY_FMT()h]hVIDIOC_TRY_FMT()}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjtubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]jjjhjjuh1j hj(ubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubh)}(hXThe :c:func:`VIDIOC_CREATE_BUFS` ioctl can then be used to allocate buffers based on the queried sizes (for instance by allocating a set of buffers large enough for all the desired formats and controls, or by allocating separate set of appropriately sized buffers for each use case).h](hThe }(hjhhhNhNubh)}(h:c:func:`VIDIOC_CREATE_BUFS`h]h)}(hjh]hVIDIOC_CREATE_BUFS()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'VIDIOC_CREATE_BUFSuh1hhhhKhjubh ioctl can then be used to allocate buffers based on the queried sizes (for instance by allocating a set of buffers large enough for all the desired formats and controls, or by allocating separate set of appropriately sized buffers for each use case).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singleV4L.v4l2_buffer (C type)c.V4L.v4l2_bufferhNtauh1jhjhhhNhNubhdesc)}(hhh](hdesc_signature)}(h v4l2_bufferh]hdesc_signature_line)}(htype v4l2_bufferh](hdesc_sig_keyword)}(htypeh]htype}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjhhhhhKubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhhhKubh desc_name)}(h v4l2_bufferh]h desc_sig_name)}(hjh]h v4l2_buffer}(hj hhhNhNubah}(h]h ]nah"]h$]h&]uh1j hj ubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1j hjhhhhhKubeh}(h]h ]h"]h$]h&]hhƌ add_permalinkuh1jsphinx_line_type declaratorhjhhhhhKubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhhhKhjhhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1j? hjhhhhhKubeh}(h]h ](jtypeeh"]h$]h&]domainjobjtypejM desctypejM noindex noindexentrynocontentsentryuh1jhhhjhNhNubeh}(h]1interactions-between-formats-controls-and-buffersah ]h"]2interactions between formats, controls and buffersah$]h&]uh1hhhhhhhhK&ubh)}(hhh](h)}(hstruct v4l2_bufferh]hstruct v4l2_buffer}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ hhhhhKubhtabular_col_spec)}(hhh]h}(h]h ]h"]h$]h&]spec|p{2.9cm}|p{2.4cm}|p{12.0cm}|uh1jp hhhKhj_ hhubhtable)}(hhh](h)}(hstruct v4l2_bufferh]hstruct v4l2_buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubhtgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1j hj ubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h__u32h]h__u32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h ``index``h]h)}(hj h]hindex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hX_Number of the buffer, set by the application except when calling :ref:`VIDIOC_DQBUF `, then it is set by the driver. This field can range from zero to the number of buffers allocated with the :ref:`VIDIOC_REQBUFS` ioctl (struct :c:type:`v4l2_requestbuffers` ``count``), plus any buffers allocated with :ref:`VIDIOC_CREATE_BUFS` minus one.h](hANumber of the buffer, set by the application except when calling }(hj hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j2)}(hj h]h VIDIOC_DQBUF}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhKhj ubhk, then it is set by the driver. This field can range from zero to the number of buffers allocated with the }(hj hhhNhNubh)}(h:ref:`VIDIOC_REQBUFS`h]j2)}(hj) h]hVIDIOC_REQBUFS}(hj+ hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj' ubah}(h]h ]h"]h$]h&]refdocj refdomainj5 reftyperef refexplicitrefwarnj'vidioc_reqbufsuh1hhhhKhj ubh ioctl (struct }(hj hhhNhNubh)}(h:c:type:`v4l2_requestbuffers`h]h)}(hjM h]hv4l2_requestbuffers}(hjO hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjK ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj'v4l2_requestbuffersuh1hhhhKhj ubh }(hj hhhNhNubh)}(h ``count``h]hcount}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh#), plus any buffers allocated with }(hj hhhNhNubh)}(h:ref:`VIDIOC_CREATE_BUFS`h]j2)}(hj h]hVIDIOC_CREATE_BUFS}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnj'vidioc_create_bufsuh1hhhhKhj ubh minus one.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h``type``h]h)}(hj h]htype}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hType of the buffer, same as struct :c:type:`v4l2_format` ``type`` or struct :c:type:`v4l2_requestbuffers` ``type``, set by the application. See :c:type:`v4l2_buf_type`h](h#Type of the buffer, same as struct }(hj hhhNhNubh)}(h:c:type:`v4l2_format`h]h)}(hj h]h v4l2_format}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_formatuh1hhhhKhj ubh }(hj hhhNhNubh)}(h``type``h]htype}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh or struct }(hj hhhNhNubh)}(h:c:type:`v4l2_requestbuffers`h]h)}(hj2 h]hv4l2_requestbuffers}(hj4 hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj0 ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj'v4l2_requestbuffersuh1hhhhKhj ubh }hj sbh)}(h``type``h]htype}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh, set by the application. See }(hj hhhNhNubh)}(h:c:type:`v4l2_buf_type`h]h)}(hjg h]h v4l2_buf_type}(hji hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhje ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_buf_typeuh1hhhhKhj ubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h ``bytesused``h]h)}(hj h]h bytesused}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hXThe number of bytes occupied by the data in the buffer. It depends on the negotiated data format and may change with each buffer for compressed variable size data like JPEG images. Drivers must set this field when ``type`` refers to a capture stream, applications when it refers to an output stream. For multiplanar formats this field is ignored and the ``planes`` pointer is used instead.h](hThe number of bytes occupied by the data in the buffer. It depends on the negotiated data format and may change with each buffer for compressed variable size data like JPEG images. Drivers must set this field when }(hj hhhNhNubh)}(h``type``h]htype}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh refers to a capture stream, applications when it refers to an output stream. For multiplanar formats this field is ignored and the }(hj hhhNhNubh)}(h ``planes``h]hplanes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh pointer is used instead.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h ``flags``h]h)}(hj0 h]hflags}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj. ubah}(h]h ]h"]h$]h&]uh1hhhhKhj+ ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h@Flags set by the application or driver, see :ref:`buffer-flags`.h](h,Flags set by the application or driver, see }(hjN hhhNhNubh)}(h:ref:`buffer-flags`h]j2)}(hjX h]h buffer-flags}(hjZ hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjV ubah}(h]h ]h"]h$]h&]refdocj refdomainjd reftyperef refexplicitrefwarnj' buffer-flagsuh1hhhhKhjN ubh.}(hjN hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjK ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h ``field``h]h)}(hj h]hfield}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hIndicates the field order of the image in the buffer, see :c:type:`v4l2_field`. This field is not used when the buffer contains VBI data. Drivers must set it when ``type`` refers to a capture stream, applications when it refers to an output stream.h](h:Indicates the field order of the image in the buffer, see }(hj hhhNhNubh)}(h:c:type:`v4l2_field`h]h)}(hj h]h v4l2_field}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_fielduh1hhhhKhj ubhU. This field is not used when the buffer contains VBI data. Drivers must set it when }(hj hhhNhNubh)}(h``type``h]htype}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubhM refers to a capture stream, applications when it refers to an output stream.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hstruct timevalh]hstruct timeval}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h ``timestamp``h]h)}(hj7 h]h timestamp}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5 ubah}(h]h ]h"]h$]h&]uh1hhhhKhj2 ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hXEFor capture streams this is time when the first data byte was captured, as returned by the :c:func:`clock_gettime()` function for the relevant clock id; see ``V4L2_BUF_FLAG_TIMESTAMP_*`` in :ref:`buffer-flags`. For output streams the driver stores the time at which the last data byte was actually sent out in the ``timestamp`` field. This permits applications to monitor the drift between the video and system clock. For output streams that use ``V4L2_BUF_FLAG_TIMESTAMP_COPY`` the application has to fill in the timestamp which will be copied by the driver to the capture stream.h](h[For capture streams this is time when the first data byte was captured, as returned by the }(hjU hhhNhNubh)}(h:c:func:`clock_gettime()`h]h)}(hj_ h]hclock_gettime()}(hja hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhj] ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' clock_gettimeuh1hhhhKhjU ubh) function for the relevant clock id; see }(hjU hhhNhNubh)}(h``V4L2_BUF_FLAG_TIMESTAMP_*``h]hV4L2_BUF_FLAG_TIMESTAMP_*}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU ubh in }(hjU hhhNhNubh)}(h:ref:`buffer-flags`h]j2)}(hj h]h buffer-flags}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnj' buffer-flagsuh1hhhhKhjU ubhi. For output streams the driver stores the time at which the last data byte was actually sent out in the }(hjU hhhNhNubh)}(h ``timestamp``h]h timestamp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU ubhw field. This permits applications to monitor the drift between the video and system clock. For output streams that use }(hjU hhhNhNubh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_COPY``h]hV4L2_BUF_FLAG_TIMESTAMP_COPY}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU ubhg the application has to fill in the timestamp which will be copied by the driver to the capture stream.}(hjU hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjR ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hstruct :c:type:`v4l2_timecode`h](hstruct }(hj hhhNhNubh)}(h:c:type:`v4l2_timecode`h]h)}(hj h]h v4l2_timecode}(hj hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_timecodeuh1hhhhKhj ubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h ``timecode``h]h)}(hj*h]htimecode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1hhhhKhj%ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hXWhen the ``V4L2_BUF_FLAG_TIMECODE`` flag is set in ``flags``, this structure contains a frame timecode. In :c:type:`V4L2_FIELD_ALTERNATE ` mode the top and bottom field contain the same timecode. Timecodes are intended to help video editing and are typically recorded on video tapes, but also embedded in compressed formats like MPEG. This field is independent of the ``timestamp`` and ``sequence`` fields.h](h When the }(hjHhhhNhNubh)}(h``V4L2_BUF_FLAG_TIMECODE``h]hV4L2_BUF_FLAG_TIMECODE}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubh flag is set in }(hjHhhhNhNubh)}(h ``flags``h]hflags}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubh/, this structure contains a frame timecode. In }(hjHhhhNhNubh)}(h+:c:type:`V4L2_FIELD_ALTERNATE `h]h)}(hjvh]hV4L2_FIELD_ALTERNATE}(hjxhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_fielduh1hhhhKhjHubh mode the top and bottom field contain the same timecode. Timecodes are intended to help video editing and are typically recorded on video tapes, but also embedded in compressed formats like MPEG. This field is independent of the }(hjHhhhNhNubh)}(h ``timestamp``h]h timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubh and }(hjHhhhNhNubh)}(h ``sequence``h]hsequence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubh fields.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjEubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``sequence``h]h)}(hjh]hsequence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hvSet by the driver, counting the frames (not fields!) in sequence. This field is set for both input and output devices.h]hvSet by the driver, counting the frames (not fields!) in sequence. This field is set for both input and output devices.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]j )}(hhh](h)}(h :cspan:`2`h]h}(h]h ]h"]h$]h&]uh1hhhhKhj'ubh)}(hXIn :c:type:`V4L2_FIELD_ALTERNATE ` mode the top and bottom field have the same sequence number. The count starts at zero and includes dropped or repeated frames. A dropped frame was received by an input device but could not be stored due to lack of free buffer space. A repeated frame was displayed again by an output device because the application did not pass new data in time.h](hIn }(hj4hhhNhNubh)}(h+:c:type:`V4L2_FIELD_ALTERNATE `h]h)}(hj>h]hV4L2_FIELD_ALTERNATE}(hj@hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_fielduh1hhhhKhj4ubhXY mode the top and bottom field have the same sequence number. The count starts at zero and includes dropped or repeated frames. A dropped frame was received by an input device but could not be stored due to lack of free buffer space. A repeated frame was displayed again by an output device because the application did not pass new data in time.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj'ubj)}(hXThis may count the frames received e.g. over USB, without taking into account the frames dropped by the remote hardware due to limited compression throughput or bus bandwidth. These devices identify by not enumerating any video standards, see :ref:`standard`.h]h)}(hXThis may count the frames received e.g. over USB, without taking into account the frames dropped by the remote hardware due to limited compression throughput or bus bandwidth. These devices identify by not enumerating any video standards, see :ref:`standard`.h](hThis may count the frames received e.g. over USB, without taking into account the frames dropped by the remote hardware due to limited compression throughput or bus bandwidth. These devices identify by not enumerating any video standards, see }(hjihhhNhNubh)}(h:ref:`standard`h]j2)}(hjsh]hstandard}(hjuhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjqubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'standarduh1hhhhKhjiubh.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjeubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]morecolsKuh1j hj$ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``memory``h]h)}(hjh]hmemory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h{This field must be set by applications and/or drivers in accordance with the selected I/O method. See :c:type:`v4l2_memory`h](hfThis field must be set by applications and/or drivers in accordance with the selected I/O method. See }(hjhhhNhNubh)}(h:c:type:`v4l2_memory`h]h)}(hjh]h v4l2_memory}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_memoryuh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hunion {h]hunion {}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj'ubah}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh]h)}(h``m``h]h)}(hjCh]hm}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]uh1hhhhKhj>ubah}(h]h ]h"]h$]h&]morecolsKuh1j hj$ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhubah}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh]h)}(h ``offset``h]h)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh]h)}(hX+For the single-planar API and when ``memory`` is ``V4L2_MEMORY_MMAP`` this is the offset of the buffer from the start of the device memory. The value is returned by the driver and apart of serving as parameter to the :c:func:`mmap()` function not useful for applications. See :ref:`mmap` for detailsh](h#For the single-planar API and when }(hjhhhNhNubh)}(h ``memory``h]hmemory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh is }(hjhhhNhNubh)}(h``V4L2_MEMORY_MMAP``h]hV4L2_MEMORY_MMAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh this is the offset of the buffer from the start of the device memory. The value is returned by the driver and apart of serving as parameter to the }(hjhhhNhNubh)}(h:c:func:`mmap()`h]h)}(hjh]hmmap()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'mmapuh1hhhhKhjubh+ function not useful for applications. See }(hjhhhNhNubh)}(h :ref:`mmap`h]j2)}(hjh]hmmap}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'mmapuh1hhhhKhjubh for details}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h unsigned longh]h unsigned long}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*ubah}(h]h ]h"]h$]h&]uh1j hj'ubj )}(hhh]h)}(h ``userptr``h]h)}(hjFh]huserptr}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1hhhhMhjAubah}(h]h ]h"]h$]h&]uh1j hj'ubj )}(hhh]h)}(hFor the single-planar API and when ``memory`` is ``V4L2_MEMORY_USERPTR`` this is a pointer to the buffer (casted to unsigned long type) in virtual memory, set by the application. See :ref:`userp` for details.h](h#For the single-planar API and when }(hjdhhhNhNubh)}(h ``memory``h]hmemory}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubh is }(hjdhhhNhNubh)}(h``V4L2_MEMORY_USERPTR``h]hV4L2_MEMORY_USERPTR}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubho this is a pointer to the buffer (casted to unsigned long type) in virtual memory, set by the application. See }(hjdhhhNhNubh)}(h :ref:`userp`h]j2)}(hjh]huserp}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'userpuh1hhhhMhjdubh for details.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjaubah}(h]h ]h"]h$]h&]uh1j hj'ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hstruct v4l2_planeh]hstruct v4l2_plane}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``*planes``h]h)}(hjh]h*planes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hWhen using the multi-planar API, contains a userspace pointer to an array of struct :c:type:`v4l2_plane`. The size of the array should be put in the ``length`` field of this struct :c:type:`v4l2_buffer` structure.h](hTWhen using the multi-planar API, contains a userspace pointer to an array of struct }(hjhhhNhNubh)}(h:c:type:`v4l2_plane`h]h)}(hj h]h v4l2_plane}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_planeuh1hhhhM hjubh-. The size of the array should be put in the }(hjhhhNhNubh)}(h ``length``h]hlength}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh field of this struct }(hjhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjBh]h v4l2_buffer}(hjDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhM hjubh structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjxubah}(h]h ]h"]h$]h&]uh1j hjuubj )}(hhh]h)}(h``fd``h]h)}(hjh]hfd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjuubj )}(hhh]h)}(hFor the single-plane API and when ``memory`` is ``V4L2_MEMORY_DMABUF`` this is the file descriptor associated with a DMABUF buffer.h](h"For the single-plane API and when }(hjhhhNhNubh)}(h ``memory``h]hmemory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh is }(hjhhhNhNubh)}(h``V4L2_MEMORY_DMABUF``h]hV4L2_MEMORY_DMABUF}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh= this is the file descriptor associated with a DMABUF buffer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjuubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h}h]h}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]morecolsKuh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``length``h]h)}(hj9h]hlength}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hXaSize of the buffer (not the payload) in bytes for the single-planar API. This is set by the driver based on the calls to :ref:`VIDIOC_REQBUFS` and/or :ref:`VIDIOC_CREATE_BUFS`. For the multi-planar API the application sets this to the number of elements in the ``planes`` array. The driver will fill in the actual number of valid elements in that array.h](hySize of the buffer (not the payload) in bytes for the single-planar API. This is set by the driver based on the calls to }(hjWhhhNhNubh)}(h:ref:`VIDIOC_REQBUFS`h]j2)}(hjah]hVIDIOC_REQBUFS}(hjchhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj_ubah}(h]h ]h"]h$]h&]refdocj refdomainjmreftyperef refexplicitrefwarnj'vidioc_reqbufsuh1hhhhMhjWubh and/or }(hjWhhhNhNubh)}(h:ref:`VIDIOC_CREATE_BUFS`h]j2)}(hjh]hVIDIOC_CREATE_BUFS}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'vidioc_create_bufsuh1hhhhMhjWubhV. For the multi-planar API the application sets this to the number of elements in the }(hjWhhhNhNubh)}(h ``planes``h]hplanes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubhR array. The driver will fill in the actual number of valid elements in that array.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjTubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]+h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``reserved2``h]h)}(hjh]h reserved2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hRA place holder for future extensions. Drivers and applications must set this to 0.h]hRA place holder for future extensions. Drivers and applications must set this to 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hj%ubah}(h]h ]h"]h$]h&]uh1j hj"ubj )}(hhh]h)}(h``request_fd``h]h)}(hjAh]h request_fd}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1hhhhM$hj<ubah}(h]h ]h"]h$]h&]uh1j hj"ubj )}(hhh](h)}(hThe file descriptor of the request to queue the buffer to. If the flag ``V4L2_BUF_FLAG_REQUEST_FD`` is set, then the buffer will be queued to this request. If the flag is not set, then this field will be ignored.h](hGThe file descriptor of the request to queue the buffer to. If the flag }(hj_hhhNhNubh)}(h``V4L2_BUF_FLAG_REQUEST_FD``h]hV4L2_BUF_FLAG_REQUEST_FD}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubhq is set, then the buffer will be queued to this request. If the flag is not set, then this field will be ignored.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM%hj\ubh)}(hThe ``V4L2_BUF_FLAG_REQUEST_FD`` flag and this field are only used by :ref:`ioctl VIDIOC_QBUF ` and ignored by other ioctls that take a :c:type:`v4l2_buffer` as argument.h](hThe }(hjhhhNhNubh)}(h``V4L2_BUF_FLAG_REQUEST_FD``h]hV4L2_BUF_FLAG_REQUEST_FD}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh& flag and this field are only used by }(hjhhhNhNubh)}(h&:ref:`ioctl VIDIOC_QBUF `h]j2)}(hjh]hioctl VIDIOC_QBUF}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhM*hjubh) and ignored by other ioctls that take a }(hjhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhM*hjubh as argument.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM*hj\ubh)}(htApplications should not set ``V4L2_BUF_FLAG_REQUEST_FD`` for any ioctls other than :ref:`VIDIOC_QBUF `.h](hApplications should not set }(hjhhhNhNubh)}(h``V4L2_BUF_FLAG_REQUEST_FD``h]hV4L2_BUF_FLAG_REQUEST_FD}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh for any ioctls other than }(hjhhhNhNubh)}(h :ref:`VIDIOC_QBUF `h]j2)}(hjh]h VIDIOC_QBUF}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhM.hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM.hj\ubh)}(hIf the device does not support requests, then ``EBADR`` will be returned. If requests are supported but an invalid request file descriptor is given, then ``EINVAL`` will be returned.h](h.If the device does not support requests, then }(hj*hhhNhNubh)}(h ``EBADR``h]hEBADR}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubhc will be returned. If requests are supported but an invalid request file descriptor is given, then }(hj*hhhNhNubh)}(h ``EINVAL``h]hEINVAL}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubh will be returned.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM1hj\ubeh}(h]h ]h"]h$]h&]uh1j hj"ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]colsKuh1j hj ubeh}(h]id3ah ] longtableah"]h$]h&]uh1j} hj_ hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jV4L.v4l2_plane (C type)c.V4L.v4l2_planehNtauh1jhj_ hhhNhNubj)}(hhh](j)}(h v4l2_planeh]j)}(htype v4l2_planeh](j)}(hjh]htype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhhM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjhhhhhM6ubj )}(h v4l2_planeh]j )}(hjh]h v4l2_plane}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjubah}(h]h ](j& j' eh"]h$]h&]hhuh1j hjhhhhhM6ubeh}(h]h ]h"]h$]h&]hhj1 uh1jj2 j3 hjhhhhhM6ubah}(h]jah ](j7 j8 eh"]h$]h&]j< j= )j> huh1jhhhM6hjhhubj@ )}(hhh]h}(h]h ]h"]h$]h&]uh1j? hjhhhhhM6ubeh}(h]h ](jtypeeh"]h$]h&]jQ jjR jjS jjT jU jV uh1jhhhj_ hNhNubeh}(h]struct-v4l2-bufferah ]h"]struct v4l2_bufferah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hstruct v4l2_planeh]hstruct v4l2_plane}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM9ubjq )}(hhh]h}(h]h ]h"]h$]h&]j{ |p{3.5cm}|p{3.5cm}|p{10.3cm}|uh1jp hhhM;hjhhubj~ )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhj1ubah}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh]h)}(h ``bytesused``h]h)}(hjMh]h bytesused}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&]uh1hhhhMEhjHubah}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh](h)}(hThe number of bytes occupied by data in the plane (its payload). Drivers must set this field when ``type`` refers to a capture stream, applications when it refers to an output stream.h](hbThe number of bytes occupied by data in the plane (its payload). Drivers must set this field when }(hjkhhhNhNubh)}(h``type``h]htype}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkubhM refers to a capture stream, applications when it refers to an output stream.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMFhjhubj)}(hMNote that the actual image data starts at ``data_offset`` which may not be 0.h]h)}(hMNote that the actual image data starts at ``data_offset`` which may not be 0.h](h*Note that the actual image data starts at }(hjhhhNhNubh)}(h``data_offset``h]h data_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh which may not be 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMLhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1j hj.ubeh}(h]h ]h"]h$]h&]uh1j hj+ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMNhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``length``h]h)}(hjh]hlength}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMOhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hSize in bytes of the plane (not its payload). This is set by the driver based on the calls to :ref:`VIDIOC_REQBUFS` and/or :ref:`VIDIOC_CREATE_BUFS`.h](h^Size in bytes of the plane (not its payload). This is set by the driver based on the calls to }(hjhhhNhNubh)}(h:ref:`VIDIOC_REQBUFS`h]j2)}(hjh]hVIDIOC_REQBUFS}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'vidioc_reqbufsuh1hhhhMPhjubh and/or }(hjhhhNhNubh)}(h:ref:`VIDIOC_CREATE_BUFS`h]j2)}(hj,h]hVIDIOC_CREATE_BUFS}(hj.hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj*ubah}(h]h ]h"]h$]h&]refdocj refdomainj8reftyperef refexplicitrefwarnj'vidioc_create_bufsuh1hhhhMPhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMPhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj+ubj )}(hhh](j )}(hhh]h)}(hunion {h]hunion {}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThjcubah}(h]h ]h"]h$]h&]uh1j hj`ubj )}(hhh]h)}(h``m``h]h)}(hjh]hm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1hhhhMUhjzubah}(h]h ]h"]h$]h&]morecolsKuh1j hj`ubeh}(h]h ]h"]h$]h&]uh1j hj+ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h``mem_offset``h]h)}(hjh]h mem_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMWhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hWhen the memory type in the containing struct :c:type:`v4l2_buffer` is ``V4L2_MEMORY_MMAP``, this is the value that should be passed to :c:func:`mmap()`, similar to the ``offset`` field in struct :c:type:`v4l2_buffer`.h](h.When the memory type in the containing struct }(hjhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhMXhjubh is }(hjhhhNhNubh)}(h``V4L2_MEMORY_MMAP``h]hV4L2_MEMORY_MMAP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh-, this is the value that should be passed to }(hjhhhNhNubh)}(h:c:func:`mmap()`h]h)}(hjh]hmmap()}(hjhhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj'mmapuh1hhhhMXhjubh, similar to the }(hjhhhNhNubh)}(h ``offset``h]hoffset}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh field in struct }(hjhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjRh]h v4l2_buffer}(hjThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhMXhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMXhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj+ubj )}(hhh](j )}(hhh]h)}(h unsigned longh]h unsigned long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM]hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``userptr``h]h)}(hjh]huserptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhM^hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hWhen the memory type in the containing struct :c:type:`v4l2_buffer` is ``V4L2_MEMORY_USERPTR``, this is a userspace pointer to the memory allocated for this plane by an application.h](h.When the memory type in the containing struct }(hjhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhM_hjubh is }(hjhhhNhNubh)}(h``V4L2_MEMORY_USERPTR``h]hV4L2_MEMORY_USERPTR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubhW, this is a userspace pointer to the memory allocated for this plane by an application.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM_hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj+ubj )}(hhh](j )}(hhh]h)}(hinth]hint}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h``fd``h]h)}(hj0h]hfd}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&]uh1hhhhMdhj+ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hWhen the memory type in the containing struct :c:type:`v4l2_buffer` is ``V4L2_MEMORY_DMABUF``, this is a file descriptor associated with a DMABUF buffer, similar to the ``fd`` field in struct :c:type:`v4l2_buffer`.h](h.When the memory type in the containing struct }(hjNhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjXh]h v4l2_buffer}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhMehjNubh is }(hjNhhhNhNubh)}(h``V4L2_MEMORY_DMABUF``h]hV4L2_MEMORY_DMABUF}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNubhL, this is a file descriptor associated with a DMABUF buffer, similar to the }(hjNhhhNhNubh)}(h``fd``h]hfd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNubh field in struct }(hjNhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhMehjNubh.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMehjKubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj+ubj )}(hhh](j )}(hhh]h)}(hjh]h}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]morecolsKuh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj+ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h``data_offset``h]h)}(hjh]h data_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMlhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](h)}(hOffset in bytes to video data in the plane. Drivers must set this field when ``type`` refers to a capture stream, applications when it refers to an output stream.h](hMOffset in bytes to video data in the plane. Drivers must set this field when }(hj8hhhNhNubh)}(h``type``h]htype}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubhM refers to a capture stream, applications when it refers to an output stream.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMmhj5ubj)}(hThat data_offset is included in ``bytesused``. So the size of the image in the plane is ``bytesused``-``data_offset`` at offset ``data_offset`` from the start of the plane.h]h)}(hThat data_offset is included in ``bytesused``. So the size of the image in the plane is ``bytesused``-``data_offset`` at offset ``data_offset`` from the start of the plane.h](h!That data_offset is included in }(hj\hhhNhNubh)}(h ``bytesused``h]h bytesused}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ubh+. So the size of the image in the plane is }(hj\hhhNhNubh)}(h ``bytesused``h]h bytesused}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ubh-}(hj\hhhNhNubh)}(h``data_offset``h]h data_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ubh at offset }(hj\hhhNhNubh)}(h``data_offset``h]h data_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ubh from the start of the plane.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMshjXubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj+ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMvhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h``reserved[11]``h]h)}(hjh]h reserved[11]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMwhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hFReserved for future use. Should be zeroed by drivers and applications.h]hFReserved for future use. Should be zeroed by drivers and applications.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj+ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]colsKuh1j hjubah}(h]h ] longtableah"]h$]h&]uh1j} hjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jV4L.v4l2_buf_type (C type)c.V4L.v4l2_buf_typehNtauh1jhjhhhNhNubj)}(hhh](j)}(h v4l2_buf_typeh]j)}(htype v4l2_buf_typeh](j)}(hjh]htype}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhhhM|ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjDhhhhhM|ubj )}(h v4l2_buf_typeh]j )}(hjBh]h v4l2_buf_type}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hjcubah}(h]h ](j& j' eh"]h$]h&]hhuh1j hjDhhhhhM|ubeh}(h]h ]h"]h$]h&]hhj1 uh1jj2 j3 hj@hhhhhM|ubah}(h]j;ah ](j7 j8 eh"]h$]h&]j< j= )j> huh1jhhhM|hj=hhubj@ )}(hhh]h}(h]h ]h"]h$]h&]uh1j? hj=hhhhhM|ubeh}(h]h ](jtypeeh"]h$]h&]jQ jjR jjS jjT jU jV uh1jhhhjhNhNubeh}(h]struct-v4l2-planeah ]h"]struct v4l2_planeah$]h&]uh1hhhhhhhhM9ubh)}(hhh](h)}(henum v4l2_buf_typeh]henum v4l2_buf_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubjq )}(hhh]h}(h]h ] longtableah"]h$]h&]j{ |p{7.8cm}|p{0.6cm}|p{8.9cm}|uh1jp hhhMhjhhubj~ )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hjubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1j hjubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h``V4L2_BUF_TYPE_VIDEO_CAPTURE``h]h)}(hjh]hV4L2_BUF_TYPE_VIDEO_CAPTURE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h1h]h1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hCBuffer of a single-planar video capture stream, see :ref:`capture`.h](h4Buffer of a single-planar video capture stream, see }(hjhhhNhNubh)}(h:ref:`capture`h]j2)}(hj(h]hcapture}(hj*hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj&ubah}(h]h ]h"]h$]h&]refdocj refdomainj4reftyperef refexplicitrefwarnj'captureuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h&``V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE``h]h)}(hjdh]h"V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]uh1hhhhMhj_ubah}(h]h ]h"]h$]h&]uh1j hj\ubj )}(hhh]h)}(h9h]h9}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj\ubj )}(hhh]h)}(hBBuffer of a multi-planar video capture stream, see :ref:`capture`.h](h3Buffer of a multi-planar video capture stream, see }(hjhhhNhNubh)}(h:ref:`capture`h]j2)}(hjh]hcapture}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'captureuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hj\ubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h``V4L2_BUF_TYPE_VIDEO_OUTPUT``h]h)}(hjh]hV4L2_BUF_TYPE_VIDEO_OUTPUT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h2h]h2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(hABuffer of a single-planar video output stream, see :ref:`output`.h](h3Buffer of a single-planar video output stream, see }(hjhhhNhNubh)}(h :ref:`output`h]j2)}(hjh]houtput}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainj*reftyperef refexplicitrefwarnj'outputuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h%``V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE``h]h)}(hjZh]h!V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1hhhhMhjUubah}(h]h ]h"]h$]h&]uh1j hjRubj )}(hhh]h)}(h10h]h10}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjuubah}(h]h ]h"]h$]h&]uh1j hjRubj )}(hhh]h)}(h@Buffer of a multi-planar video output stream, see :ref:`output`.h](h2Buffer of a multi-planar video output stream, see }(hjhhhNhNubh)}(h :ref:`output`h]j2)}(hjh]houtput}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'outputuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjRubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h``V4L2_BUF_TYPE_VIDEO_OVERLAY``h]h)}(hjh]hV4L2_BUF_TYPE_VIDEO_OVERLAY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h3h]h3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h-Buffer for video overlay, see :ref:`overlay`.h](hBuffer for video overlay, see }(hj hhhNhNubh)}(h:ref:`overlay`h]j2)}(hjh]hoverlay}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnj'overlayuh1hhhhMhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h``V4L2_BUF_TYPE_VBI_CAPTURE``h]h)}(hjPh]hV4L2_BUF_TYPE_VBI_CAPTURE}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&]uh1hhhhMhjKubah}(h]h ]h"]h$]h&]uh1j hjHubj )}(hhh]h)}(h4h]h4}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjkubah}(h]h ]h"]h$]h&]uh1j hjHubj )}(hhh]h)}(h7Buffer of a raw VBI capture stream, see :ref:`raw-vbi`.h](h(Buffer of a raw VBI capture stream, see }(hjhhhNhNubh)}(h:ref:`raw-vbi`h]j2)}(hjh]hraw-vbi}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'raw-vbiuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjHubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h``V4L2_BUF_TYPE_VBI_OUTPUT``h]h)}(hjh]hV4L2_BUF_TYPE_VBI_OUTPUT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h5h]h5}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h6Buffer of a raw VBI output stream, see :ref:`raw-vbi`.h](h'Buffer of a raw VBI output stream, see }(hjhhhNhNubh)}(h:ref:`raw-vbi`h]j2)}(hj h]hraw-vbi}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'raw-vbiuh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h$``V4L2_BUF_TYPE_SLICED_VBI_CAPTURE``h]h)}(hjFh]h V4L2_BUF_TYPE_SLICED_VBI_CAPTURE}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1hhhhMhjAubah}(h]h ]h"]h$]h&]uh1j hj>ubj )}(hhh]h)}(h6h]h6}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjaubah}(h]h ]h"]h$]h&]uh1j hj>ubj )}(hhh]h)}(h9Buffer of a sliced VBI capture stream, see :ref:`sliced`.h](h+Buffer of a sliced VBI capture stream, see }(hj{hhhNhNubh)}(h :ref:`sliced`h]j2)}(hjh]hsliced}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnj'sliceduh1hhhhMhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjxubah}(h]h ]h"]h$]h&]uh1j hj>ubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h#``V4L2_BUF_TYPE_SLICED_VBI_OUTPUT``h]h)}(hjh]hV4L2_BUF_TYPE_SLICED_VBI_OUTPUT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h7h]h7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h8Buffer of a sliced VBI output stream, see :ref:`sliced`.h](h*Buffer of a sliced VBI output stream, see }(hjhhhNhNubh)}(h :ref:`sliced`h]j2)}(hj h]hsliced}(hj hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnj'sliceduh1hhhhMhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h&``V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY``h]h)}(hj< h]h"V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj: ubah}(h]h ]h"]h$]h&]uh1hhhhMhj7 ubah}(h]h ]h"]h$]h&]uh1j hj4 ubj )}(hhh]h)}(h8h]h8}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjW ubah}(h]h ]h"]h$]h&]uh1j hj4 ubj )}(hhh]h)}(h6Buffer for video output overlay (OSD), see :ref:`osd`.h](h+Buffer for video output overlay (OSD), see }(hjq hhhNhNubh)}(h :ref:`osd`h]j2)}(hj{ h]hosd}(hj} hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjy ubah}(h]h ]h"]h$]h&]refdocj refdomainj reftyperef refexplicitrefwarnj'osduh1hhhhMhjq ubh.}(hjq hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjn ubah}(h]h ]h"]h$]h&]uh1j hj4 ubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h``V4L2_BUF_TYPE_SDR_CAPTURE``h]h)}(hj h]hV4L2_BUF_TYPE_SDR_CAPTURE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h11h]h11}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hGBuffer for Software Defined Radio (SDR) capture stream, see :ref:`sdr`.h](h` ioctl is called. Set by the driver.h](hdThe buffer resides in device memory and has been mapped into the application’s address space, see }(hj)#hhhNhNubh)}(h :ref:`mmap`h]j2)}(hj3#h]hmmap}(hj5#hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj1#ubah}(h]h ]h"]h$]h&]refdocj refdomainj?#reftyperef refexplicitrefwarnj'mmapuh1hhhhMhj)#ubh6 for details. Drivers set or clear this flag when the }(hj)#hhhNhNubh)}(h:ref:`VIDIOC_QUERYBUF`h]j2)}(hjW#h]hVIDIOC_QUERYBUF}(hjY#hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjU#ubah}(h]h ]h"]h$]h&]refdocj refdomainjc#reftyperef refexplicitrefwarnj'vidioc_querybufuh1hhhhMhj)#ubh, }(hj)#hhhNhNubh)}(h:ref:`VIDIOC_QBUF`h]j2)}(hj{#h]h VIDIOC_QBUF}(hj}#hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjy#ubah}(h]h ]h"]h$]h&]refdocj refdomainj#reftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhMhj)#ubh or }(hj)#hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j2)}(hj#h]h VIDIOC_DQBUF}(hj#hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj#ubah}(h]h ]h"]h$]h&]refdocj refdomainj#reftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhMhj)#ubh$ ioctl is called. Set by the driver.}(hj)#hhhNhNubeh}(h]j%#ah ]h"]v4l2-buf-flag-mappedah$]h&]uh1hhhhMhj&#expect_referenced_by_name}j#j#sexpect_referenced_by_id}j%#j#subeh}(h]h ]h"]h$]h&]uh1j hj#ububh)}(h``V4L2_BUF_FLAG_MAPPED``h]h)}(hj#h]hV4L2_BUF_FLAG_MAPPED}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1hhhhMhj#ubeh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j#h)}(h 0x00000001h]h 0x00000001}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj#ubeh}(h]h ]h"]h$]h&]uh1j hj#ubj&#eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-QUEUED`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-queueduh1hhMhj )}(hhh](j$h)}(hXInternally drivers maintain two buffer queues, an incoming and outgoing queue. When this flag is set, the buffer is currently on the incoming queue. It automatically moves to the outgoing queue after the buffer has been filled (capture devices) or displayed (output devices). Drivers set or clear this flag when the ``VIDIOC_QUERYBUF`` ioctl is called. After (successful) calling the ``VIDIOC_QBUF``\ ioctl it is always set and after ``VIDIOC_DQBUF`` always cleared.h](hX<Internally drivers maintain two buffer queues, an incoming and outgoing queue. When this flag is set, the buffer is currently on the incoming queue. It automatically moves to the outgoing queue after the buffer has been filled (capture devices) or displayed (output devices). Drivers set or clear this flag when the }(hj $hhhNhNubh)}(h``VIDIOC_QUERYBUF``h]hVIDIOC_QUERYBUF}(hj($hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj $ubh1 ioctl is called. After (successful) calling the }(hj $hhhNhNubh)}(h``VIDIOC_QBUF``h]h VIDIOC_QBUF}(hj:$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj $ubh# ioctl it is always set and after }(hj $hhhNhNubh)}(h``VIDIOC_DQBUF``h]h VIDIOC_DQBUF}(hjL$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj $ubh always cleared.}(hj $hhhNhNubeh}(h]j$ah ]h"]v4l2-buf-flag-queuedah$]h&]uh1hhhhMhj$j#}jb$j$sj#}j$j$subeh}(h]h ]h"]h$]h&]uh1j hj $ububh)}(h``V4L2_BUF_FLAG_QUEUED``h]h)}(hjo$h]hV4L2_BUF_FLAG_QUEUED}(hjq$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm$ubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubeh}(h]h ]h"]h$]h&]uh1j hj $ubj )}(hhh](j$h)}(h 0x00000002h]h 0x00000002}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubeh}(h]h ]h"]h$]h&]uh1j hj $ubj$eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-DONE`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-doneuh1hhMhj )}(hhh](j$h)}(hXWhen this flag is set, the buffer is currently on the outgoing queue, ready to be dequeued from the driver. Drivers set or clear this flag when the ``VIDIOC_QUERYBUF`` ioctl is called. After calling the ``VIDIOC_QBUF`` or ``VIDIOC_DQBUF`` it is always cleared. Of course a buffer cannot be on both queues at the same time, the ``V4L2_BUF_FLAG_QUEUED`` and ``V4L2_BUF_FLAG_DONE`` flag are mutually exclusive. They can be both cleared however, then the buffer is in "dequeued" state, in the application domain so to say.h](hWhen this flag is set, the buffer is currently on the outgoing queue, ready to be dequeued from the driver. Drivers set or clear this flag when the }(hj$hhhNhNubh)}(h``VIDIOC_QUERYBUF``h]hVIDIOC_QUERYBUF}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubh$ ioctl is called. After calling the }(hj$hhhNhNubh)}(h``VIDIOC_QBUF``h]h VIDIOC_QBUF}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubh or }(hj$hhhNhNubh)}(h``VIDIOC_DQBUF``h]h VIDIOC_DQBUF}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubhY it is always cleared. Of course a buffer cannot be on both queues at the same time, the }(hj$hhhNhNubh)}(h``V4L2_BUF_FLAG_QUEUED``h]hV4L2_BUF_FLAG_QUEUED}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubh and }(hj$hhhNhNubh)}(h``V4L2_BUF_FLAG_DONE``h]hV4L2_BUF_FLAG_DONE}(hj %hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubh flag are mutually exclusive. They can be both cleared however, then the buffer is in “dequeued” state, in the application domain so to say.}(hj$hhhNhNubeh}(h]j$ah ]h"]v4l2-buf-flag-doneah$]h&]uh1hhhhMhj$j#}j!%j$sj#}j$j$subeh}(h]h ]h"]h$]h&]uh1j hj$ububh)}(h``V4L2_BUF_FLAG_DONE``h]h)}(hj.%h]hV4L2_BUF_FLAG_DONE}(hj0%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,%ubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubeh}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh](j$h)}(h 0x00000004h]h 0x00000004}(hjL%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjI%ubeh}(h]h ]h"]h$]h&]uh1j hj$ubj$eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-ERROR`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-erroruh1hhMhj )}(hhh](jl%h)}(hX When this flag is set, the buffer has been dequeued successfully, although the data might have been corrupted. This is recoverable, streaming may continue as normal and the buffer may be reused normally. Drivers set this flag when the ``VIDIOC_DQBUF`` ioctl is called.h](hWhen this flag is set, the buffer has been dequeued successfully, although the data might have been corrupted. This is recoverable, streaming may continue as normal and the buffer may be reused normally. Drivers set this flag when the }(hjz%hhhNhNubh)}(h``VIDIOC_DQBUF``h]h VIDIOC_DQBUF}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz%ubh ioctl is called.}(hjz%hhhNhNubeh}(h]jv%ah ]h"]v4l2-buf-flag-errorah$]h&]uh1hhhhMhjw%j#}j%jl%sj#}jv%jl%subeh}(h]h ]h"]h$]h&]uh1j hjf%ububh)}(h``V4L2_BUF_FLAG_ERROR``h]h)}(hj%h]hV4L2_BUF_FLAG_ERROR}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1hhhhMhji%ubeh}(h]h ]h"]h$]h&]uh1j hjf%ubj )}(hhh](jl%h)}(h 0x00000040h]h 0x00000040}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubeh}(h]h ]h"]h$]h&]uh1j hjf%ubjw%eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-IN-REQUEST`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-in-requestuh1hhMhj )}(hhh](j%h)}(h=This buffer is part of a request that hasn't been queued yet.h]h?This buffer is part of a request that hasn’t been queued yet.}(hj%hhhNhNubah}(h]j%ah ]h"]v4l2-buf-flag-in-requestah$]h&]uh1hhhhMhj%j#}j%j%sj#}j%j%subeh}(h]h ]h"]h$]h&]uh1j hj%ububh)}(h``V4L2_BUF_FLAG_IN_REQUEST``h]h)}(hj &h]hV4L2_BUF_FLAG_IN_REQUEST}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubeh}(h]h ]h"]h$]h&]uh1j hj%ubj )}(hhh](j%h)}(h 0x00000080h]h 0x00000080}(hj(&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%&ubeh}(h]h ]h"]h$]h&]uh1j hj%ubj%eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-KEYFRAME`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-keyframeuh1hhMhj )}(hhh](jH&h)}(hXCDrivers set or clear this flag when calling the ``VIDIOC_DQBUF`` ioctl. It may be set by video capture devices when the buffer contains a compressed image which is a key frame (or field), i. e. can be decompressed on its own. Also known as an I-frame. Applications can set this bit when ``type`` refers to an output stream.h](h0Drivers set or clear this flag when calling the }(hjV&hhhNhNubh)}(h``VIDIOC_DQBUF``h]h VIDIOC_DQBUF}(hj^&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV&ubh ioctl. It may be set by video capture devices when the buffer contains a compressed image which is a key frame (or field), i. e. can be decompressed on its own. Also known as an I-frame. Applications can set this bit when }(hjV&hhhNhNubh)}(h``type``h]htype}(hjp&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV&ubh refers to an output stream.}(hjV&hhhNhNubeh}(h]jR&ah ]h"]v4l2-buf-flag-keyframeah$]h&]uh1hhhhMhjS&j#}j&jH&sj#}jR&jH&subeh}(h]h ]h"]h$]h&]uh1j hjB&ububh)}(h``V4L2_BUF_FLAG_KEYFRAME``h]h)}(hj&h]hV4L2_BUF_FLAG_KEYFRAME}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1hhhhMhjE&ubeh}(h]h ]h"]h$]h&]uh1j hjB&ubj )}(hhh](jH&h)}(h 0x00000008h]h 0x00000008}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj&ubeh}(h]h ]h"]h$]h&]uh1j hjB&ubjS&eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-PFRAME`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-pframeuh1hhM hj )}(hhh](j&h)}(hSimilar to ``V4L2_BUF_FLAG_KEYFRAME`` this flags predicted frames or fields which contain only differences to a previous key frame. Applications can set this bit when ``type`` refers to an output stream.h](h Similar to }(hj&hhhNhNubh)}(h``V4L2_BUF_FLAG_KEYFRAME``h]hV4L2_BUF_FLAG_KEYFRAME}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubh this flags predicted frames or fields which contain only differences to a previous key frame. Applications can set this bit when }(hj&hhhNhNubh)}(h``type``h]htype}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubh refers to an output stream.}(hj&hhhNhNubeh}(h]j&ah ]h"]v4l2-buf-flag-pframeah$]h&]uh1hhhhM hj&j#}j'j&sj#}j&j&subeh}(h]h ]h"]h$]h&]uh1j hj&ububh)}(h``V4L2_BUF_FLAG_PFRAME``h]h)}(hj'h]hV4L2_BUF_FLAG_PFRAME}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1hhhhM hj&ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j&h)}(h 0x00000010h]h 0x00000010}(hj:'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj7'ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj&eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-BFRAME`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-bframeuh1hhMhj )}(hhh](jZ'h)}(hX(Similar to ``V4L2_BUF_FLAG_KEYFRAME`` this flags a bi-directional predicted frame or field which contains only the differences between the current frame and both the preceding and following key frames to specify its content. Applications can set this bit when ``type`` refers to an output stream.h](h Similar to }(hjh'hhhNhNubh)}(h``V4L2_BUF_FLAG_KEYFRAME``h]hV4L2_BUF_FLAG_KEYFRAME}(hjp'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh'ubh this flags a bi-directional predicted frame or field which contains only the differences between the current frame and both the preceding and following key frames to specify its content. Applications can set this bit when }(hjh'hhhNhNubh)}(h``type``h]htype}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh'ubh refers to an output stream.}(hjh'hhhNhNubeh}(h]jd'ah ]h"]v4l2-buf-flag-bframeah$]h&]uh1hhhhMhje'j#}j'jZ'sj#}jd'jZ'subeh}(h]h ]h"]h$]h&]uh1j hjT'ububh)}(h``V4L2_BUF_FLAG_BFRAME``h]h)}(hj'h]hV4L2_BUF_FLAG_BFRAME}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1hhhhMhjW'ubeh}(h]h ]h"]h$]h&]uh1j hjT'ubj )}(hhh](jZ'h)}(h 0x00000020h]h 0x00000020}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubeh}(h]h ]h"]h$]h&]uh1j hjT'ubje'eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-TIMECODE`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-timecodeuh1hhMhj )}(hhh](j'h)}(hThe ``timecode`` field is valid. Drivers set or clear this flag when the ``VIDIOC_DQBUF`` ioctl is called. Applications can set this bit and the corresponding ``timecode`` structure when ``type`` refers to an output stream.h](hThe }(hj'hhhNhNubh)}(h ``timecode``h]htimecode}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubh9 field is valid. Drivers set or clear this flag when the }(hj'hhhNhNubh)}(h``VIDIOC_DQBUF``h]h VIDIOC_DQBUF}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubhF ioctl is called. Applications can set this bit and the corresponding }(hj'hhhNhNubh)}(h ``timecode``h]htimecode}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubh structure when }(hj'hhhNhNubh)}(h``type``h]htype}(hj/(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubh refers to an output stream.}(hj'hhhNhNubeh}(h]j'ah ]h"]v4l2-buf-flag-timecodeah$]h&]uh1hhhhMhj'j#}jE(j'sj#}j'j'subeh}(h]h ]h"]h$]h&]uh1j hj'ububh)}(h``V4L2_BUF_FLAG_TIMECODE``h]h)}(hjR(h]hV4L2_BUF_FLAG_TIMECODE}(hjT(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP(ubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubeh}(h]h ]h"]h$]h&]uh1j hj'ubj )}(hhh](j'h)}(h 0x00000100h]h 0x00000100}(hjp(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjm(ubeh}(h]h ]h"]h$]h&]uh1j hj'ubj'eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-PREPARED`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-prepareduh1hhM"hj )}(hhh](j(h)}(hXThe buffer has been prepared for I/O and can be queued by the application. Drivers set or clear this flag when the :ref:`VIDIOC_QUERYBUF `, :ref:`VIDIOC_PREPARE_BUF `, :ref:`VIDIOC_QBUF ` or :ref:`VIDIOC_DQBUF ` ioctl is called.h](hsThe buffer has been prepared for I/O and can be queued by the application. Drivers set or clear this flag when the }(hj(hhhNhNubh)}(h(:ref:`VIDIOC_QUERYBUF `h]j2)}(hj(h]hVIDIOC_QUERYBUF}(hj(hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj(ubah}(h]h ]h"]h$]h&]refdocj refdomainj(reftyperef refexplicitrefwarnj'vidioc_querybufuh1hhhhM&hj(ubh, }(hj(hhhNhNubh)}(h':ref:`VIDIOC_PREPARE_BUF `h]j2)}(hj(h]hVIDIOC_PREPARE_BUF}(hj(hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj(ubah}(h]h ]h"]h$]h&]refdocj refdomainj(reftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhM&hj(ubh, }hj(sbh)}(h :ref:`VIDIOC_QBUF `h]j2)}(hj(h]h VIDIOC_QBUF}(hj(hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj(ubah}(h]h ]h"]h$]h&]refdocj refdomainj(reftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhM&hj(ubh or }(hj(hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j2)}(hj)h]h VIDIOC_DQBUF}(hj)hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj)ubah}(h]h ]h"]h$]h&]refdocj refdomainj )reftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhM&hj(ubh ioctl is called.}(hj(hhhNhNubeh}(h]j(ah ]h"]v4l2-buf-flag-preparedah$]h&]uh1hhhhM&hj(j#}j:)j(sj#}j(j(subeh}(h]h ]h"]h$]h&]uh1j hj(ububh)}(h``V4L2_BUF_FLAG_PREPARED``h]h)}(hjG)h]hV4L2_BUF_FLAG_PREPARED}(hjI)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjE)ubah}(h]h ]h"]h$]h&]uh1hhhhM$hj(ubeh}(h]h ]h"]h$]h&]uh1j hj(ubj )}(hhh](j(h)}(h 0x00000400h]h 0x00000400}(hje)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM%hjb)ubeh}(h]h ]h"]h$]h&]uh1j hj(ubj(eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h(.. _`V4L2-BUF-FLAG-NO-CACHE-INVALIDATE`:h]h}(h]h ]h"]h$]h&]hԌ!v4l2-buf-flag-no-cache-invalidateuh1hhM,hj )}(hhh](j)h)}(hXCaches do not have to be invalidated for this buffer. Typically applications shall use this flag if the data captured in the buffer is not going to be touched by the CPU, instead the buffer will, probably, be passed on to a DMA-capable hardware unit for further processing or output. This flag is ignored unless the queue is used for :ref:`memory mapping ` streaming I/O and reports :ref:`V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS ` capability.h](hXNCaches do not have to be invalidated for this buffer. Typically applications shall use this flag if the data captured in the buffer is not going to be touched by the CPU, instead the buffer will, probably, be passed on to a DMA-capable hardware unit for further processing or output. This flag is ignored unless the queue is used for }(hj)hhhNhNubh)}(h:ref:`memory mapping `h]j2)}(hj)h]hmemory mapping}(hj)hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj)ubah}(h]h ]h"]h$]h&]refdocj refdomainj)reftyperef refexplicitrefwarnj'mmapuh1hhhhM0hj)ubh streaming I/O and reports }(hj)hhhNhNubh)}(hV:ref:`V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS `h]j2)}(hj)h]h&V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS}(hj)hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj)ubah}(h]h ]h"]h$]h&]refdocj refdomainj)reftyperef refexplicitrefwarnj'&v4l2-buf-cap-supports-mmap-cache-hintsuh1hhhhM0hj)ubh capability.}(hj)hhhNhNubeh}(h]j)ah ]h"]!v4l2-buf-flag-no-cache-invalidateah$]h&]uh1hhhhM0hj)j#}j)j)sj#}j)j)subeh}(h]h ]h"]h$]h&]uh1j hj)ububh)}(h%``V4L2_BUF_FLAG_NO_CACHE_INVALIDATE``h]h)}(hj)h]h!V4L2_BUF_FLAG_NO_CACHE_INVALIDATE}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1hhhhM.hj)ubeh}(h]h ]h"]h$]h&]uh1j hj)ubj )}(hhh](j)h)}(h 0x00000800h]h 0x00000800}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM/hj*ubeh}(h]h ]h"]h$]h&]uh1j hj)ubj)eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h#.. _`V4L2-BUF-FLAG-NO-CACHE-CLEAN`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-no-cache-cleanuh1hhM8hj )}(hhh](j2*h)}(hXCaches do not have to be cleaned for this buffer. Typically applications shall use this flag for output buffers if the data in this buffer has not been created by the CPU but by some DMA-capable unit, in which case caches have not been used. This flag is ignored unless the queue is used for :ref:`memory mapping ` streaming I/O and reports :ref:`V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS ` capability.h](hX$Caches do not have to be cleaned for this buffer. Typically applications shall use this flag for output buffers if the data in this buffer has not been created by the CPU but by some DMA-capable unit, in which case caches have not been used. This flag is ignored unless the queue is used for }(hj@*hhhNhNubh)}(h:ref:`memory mapping `h]j2)}(hjJ*h]hmemory mapping}(hjL*hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjH*ubah}(h]h ]h"]h$]h&]refdocj refdomainjV*reftyperef refexplicitrefwarnj'mmapuh1hhhhM<hj@*ubh streaming I/O and reports }(hj@*hhhNhNubh)}(hV:ref:`V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS `h]j2)}(hjn*h]h&V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS}(hjp*hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjl*ubah}(h]h ]h"]h$]h&]refdocj refdomainjz*reftyperef refexplicitrefwarnj'&v4l2-buf-cap-supports-mmap-cache-hintsuh1hhhhM<hj@*ubh capability.}(hj@*hhhNhNubeh}(h]j<*ah ]h"]v4l2-buf-flag-no-cache-cleanah$]h&]uh1hhhhM<hj=*j#}j*j2*sj#}j<*j2*subeh}(h]h ]h"]h$]h&]uh1j hj,*ububh)}(h ``V4L2_BUF_FLAG_NO_CACHE_CLEAN``h]h)}(hj*h]hV4L2_BUF_FLAG_NO_CACHE_CLEAN}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1hhhhM:hj/*ubeh}(h]h ]h"]h$]h&]uh1j hj,*ubj )}(hhh](j2*h)}(h 0x00001000h]h 0x00001000}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hj*ubeh}(h]h ]h"]h$]h&]uh1j hj,*ubj=*eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h).. _`V4L2-BUF-FLAG-M2M-HOLD-CAPTURE-BUF`:h]h}(h]h ]h"]h$]h&]hԌ"v4l2-buf-flag-m2m-hold-capture-bufuh1hhMChj )}(hhh](j*h)}(hXeOnly valid if struct :c:type:`v4l2_requestbuffers` flag ``V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF`` is set. It is typically used with stateless decoders where multiple output buffers each decode to a slice of the decoded frame. Applications can set this flag when queueing the output buffer to prevent the driver from dequeueing the capture buffer after the output buffer has been decoded (i.e. the capture buffer is 'held'). If the timestamp of this output buffer differs from that of the previous output buffer, then that indicates the start of a new frame and the previously held capture buffer is dequeued.h](hOnly valid if struct }(hj*hhhNhNubh)}(h:c:type:`v4l2_requestbuffers`h]h)}(hj*h]hv4l2_requestbuffers}(hj*hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj'v4l2_requestbuffersuh1hhhhMGhj*ubh flag }(hj*hhhNhNubh)}(h.``V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF``h]h*V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubhX is set. It is typically used with stateless decoders where multiple output buffers each decode to a slice of the decoded frame. Applications can set this flag when queueing the output buffer to prevent the driver from dequeueing the capture buffer after the output buffer has been decoded (i.e. the capture buffer is ‘held’). If the timestamp of this output buffer differs from that of the previous output buffer, then that indicates the start of a new frame and the previously held capture buffer is dequeued.}(hj*hhhNhNubeh}(h]j*ah ]h"]"v4l2-buf-flag-m2m-hold-capture-bufah$]h&]uh1hhhhMGhj*j#}j.+j*sj#}j*j*subeh}(h]h ]h"]h$]h&]uh1j hj*ububh)}(h&``V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF``h]h)}(hj;+h]h"V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF}(hj=+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9+ubah}(h]h ]h"]h$]h&]uh1hhhhMEhj*ubeh}(h]h ]h"]h$]h&]uh1j hj*ubj )}(hhh](j*h)}(h 0x00000200h]h 0x00000200}(hjY+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMFhjV+ubeh}(h]h ]h"]h$]h&]uh1j hj*ubj*eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-LAST`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-lastuh1hhMPhj )}(hhh](jy+h)}(hXLast buffer produced by the hardware. mem2mem codec drivers set this flag on the capture queue for the last buffer when the :ref:`VIDIOC_QUERYBUF` or :ref:`VIDIOC_DQBUF ` ioctl is called. Due to hardware limitations, the last buffer may be empty. In this case the driver will set the ``bytesused`` field to 0, regardless of the format. Any subsequent call to the :ref:`VIDIOC_DQBUF ` ioctl will not block anymore, but return an ``EPIPE`` error code.h](h|Last buffer produced by the hardware. mem2mem codec drivers set this flag on the capture queue for the last buffer when the ]}(hj+hhhNhNubh)}(h:ref:`VIDIOC_QUERYBUF`h]j2)}(hj+h]hVIDIOC_QUERYBUF}(hj+hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj+reftyperef refexplicitrefwarnj'vidioc_querybufuh1hhhhMThj+ubh or }(hj+hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j2)}(hj+h]h VIDIOC_DQBUF}(hj+hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj+reftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhMThj+ubhr ioctl is called. Due to hardware limitations, the last buffer may be empty. In this case the driver will set the }(hj+hhhNhNubh)}(h ``bytesused``h]h bytesused}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubhB field to 0, regardless of the format. Any subsequent call to the }(hj+hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j2)}(hj+h]h VIDIOC_DQBUF}(hj+hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj+ubah}(h]h ]h"]h$]h&]refdocj refdomainj+reftyperef refexplicitrefwarnj' vidioc_qbufuh1hhhhMThj+ubh- ioctl will not block anymore, but return an }(hj+hhhNhNubh)}(h ``EPIPE``h]hEPIPE}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubh error code.}(hj+hhhNhNubeh}(h]j+ah ]h"]v4l2-buf-flag-lastah$]h&]uh1hhhhMThj+j#}j#,jy+sj#}j+jy+subeh}(h]h ]h"]h$]h&]uh1j hjs+ububh)}(h``V4L2_BUF_FLAG_LAST``h]h)}(hj0,h]hV4L2_BUF_FLAG_LAST}(hj2,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.,ubah}(h]h ]h"]h$]h&]uh1hhhhMRhjv+ubeh}(h]h ]h"]h$]h&]uh1j hjs+ubj )}(hhh](jy+h)}(h 0x00100000h]h 0x00100000}(hjN,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShjK,ubeh}(h]h ]h"]h$]h&]uh1j hjs+ubj+eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h.. _`V4L2-BUF-FLAG-REQUEST-FD`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-request-fduh1hhM]hj )}(hhh](jn,h)}(h:The ``request_fd`` field contains a valid file descriptor.h](hThe }(hj|,hhhNhNubh)}(h``request_fd``h]h request_fd}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|,ubh( field contains a valid file descriptor.}(hj|,hhhNhNubeh}(h]jx,ah ]h"]v4l2-buf-flag-request-fdah$]h&]uh1hhhhMahjy,j#}j,jn,sj#}jx,jn,subeh}(h]h ]h"]h$]h&]uh1j hjh,ububh)}(h``V4L2_BUF_FLAG_REQUEST_FD``h]h)}(hj,h]hV4L2_BUF_FLAG_REQUEST_FD}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]uh1hhhhM_hjk,ubeh}(h]h ]h"]h$]h&]uh1j hjh,ubj )}(hhh](jn,h)}(h 0x00800000h]h 0x00800000}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hj,ubeh}(h]h ]h"]h$]h&]uh1j hjh,ubjy,eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h#.. _`V4L2-BUF-FLAG-TIMESTAMP-MASK`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-timestamp-maskuh1hhMbhj )}(hhh](j,h)}(hMask for timestamp types below. To test the timestamp type, mask out bits not belonging to timestamp type by performing a logical and operation with buffer flags and timestamp mask.h]hMask for timestamp types below. To test the timestamp type, mask out bits not belonging to timestamp type by performing a logical and operation with buffer flags and timestamp mask.}(hj,hhhNhNubah}(h]j,ah ]h"]v4l2-buf-flag-timestamp-maskah$]h&]uh1hhhhMfhj,j#}j,j,sj#}j,j,subeh}(h]h ]h"]h$]h&]uh1j hj,ububh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_MASK``h]h)}(hj -h]hV4L2_BUF_FLAG_TIMESTAMP_MASK}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj -ubah}(h]h ]h"]h$]h&]uh1hhhhMdhj,ubeh}(h]h ]h"]h$]h&]uh1j hj,ubj )}(hhh](j,h)}(h 0x0000e000h]h 0x0000e000}(hj*-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMehj'-ubeh}(h]h ]h"]h$]h&]uh1j hj,ubj,eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h&.. _`V4L2-BUF-FLAG-TIMESTAMP-UNKNOWN`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-timestamp-unknownuh1hhMihj )}(hhh](jJ-h)}(hXUnknown timestamp type. This type is used by drivers before Linux 3.9 and may be either monotonic (see below) or realtime (wall clock). Monotonic clock has been favoured in embedded systems whereas most of the drivers use the realtime clock. Either kinds of timestamps are available in user space via :c:func:`clock_gettime` using clock IDs ``CLOCK_MONOTONIC`` and ``CLOCK_REALTIME``, respectively.h](hX-Unknown timestamp type. This type is used by drivers before Linux 3.9 and may be either monotonic (see below) or realtime (wall clock). Monotonic clock has been favoured in embedded systems whereas most of the drivers use the realtime clock. Either kinds of timestamps are available in user space via }(hjX-hhhNhNubh)}(h:c:func:`clock_gettime`h]h)}(hjb-h]hclock_gettime()}(hjd-hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhj`-ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' clock_gettimeuh1hhhhMmhjX-ubh using clock IDs }(hjX-hhhNhNubh)}(h``CLOCK_MONOTONIC``h]hCLOCK_MONOTONIC}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX-ubh and }(hjX-hhhNhNubh)}(h``CLOCK_REALTIME``h]hCLOCK_REALTIME}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX-ubh, respectively.}(hjX-hhhNhNubeh}(h]jT-ah ]h"]v4l2-buf-flag-timestamp-unknownah$]h&]uh1hhhhMmhjU-j#}j-jJ-sj#}jT-jJ-subeh}(h]h ]h"]h$]h&]uh1j hjD-ububh)}(h#``V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN``h]h)}(hj-h]hV4L2_BUF_FLAG_TIMESTAMP_UNKNOWN}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1hhhhMkhjG-ubeh}(h]h ]h"]h$]h&]uh1j hjD-ubj )}(hhh](jJ-h)}(h 0x00000000h]h 0x00000000}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhj-ubeh}(h]h ]h"]h$]h&]uh1j hjD-ubjU-eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h(.. _`V4L2-BUF-FLAG-TIMESTAMP-MONOTONIC`:h]h}(h]h ]h"]h$]h&]hԌ!v4l2-buf-flag-timestamp-monotonicuh1hhMthj )}(hhh](j-h)}(hThe buffer timestamp has been taken from the ``CLOCK_MONOTONIC`` clock. To access the same clock outside V4L2, use :c:func:`clock_gettime`.h](h-The buffer timestamp has been taken from the }(hj.hhhNhNubh)}(h``CLOCK_MONOTONIC``h]hCLOCK_MONOTONIC}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ubh3 clock. To access the same clock outside V4L2, use }(hj.hhhNhNubh)}(h:c:func:`clock_gettime`h]h)}(hj .h]hclock_gettime()}(hj".hhhNhNubah}(h]h ](jjc-funceh"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypefunc refexplicitrefwarnjjj' clock_gettimeuh1hhhhMxhj.ubh.}(hj.hhhNhNubeh}(h]j.ah ]h"]!v4l2-buf-flag-timestamp-monotonicah$]h&]uh1hhhhMxhj.j#}jE.j-sj#}j.j-subeh}(h]h ]h"]h$]h&]uh1j hj-ububh)}(h%``V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC``h]h)}(hjR.h]h!V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC}(hjT.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP.ubah}(h]h ]h"]h$]h&]uh1hhhhMvhj-ubeh}(h]h ]h"]h$]h&]uh1j hj-ubj )}(hhh](j-h)}(h 0x00002000h]h 0x00002000}(hjp.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjm.ubeh}(h]h ]h"]h$]h&]uh1j hj-ubj.eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h#.. _`V4L2-BUF-FLAG-TIMESTAMP-COPY`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-timestamp-copyuh1hhM{hj )}(hhh](j.h)}(h|The CAPTURE buffer timestamp has been taken from the corresponding OUTPUT buffer. This flag applies only to mem2mem devices.h]h|The CAPTURE buffer timestamp has been taken from the corresponding OUTPUT buffer. This flag applies only to mem2mem devices.}(hj.hhhNhNubah}(h]j.ah ]h"]v4l2-buf-flag-timestamp-copyah$]h&]uh1hhhhMhj.j#}j.j.sj#}j.j.subeh}(h]h ]h"]h$]h&]uh1j hj.ububh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_COPY``h]h)}(hj.h]hV4L2_BUF_FLAG_TIMESTAMP_COPY}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&]uh1hhhhM}hj.ubeh}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh](j.h)}(h 0x00004000h]h 0x00004000}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hj.ubeh}(h]h ]h"]h$]h&]uh1j hj.ubj.eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h$.. _`V4L2-BUF-FLAG-TSTAMP-SRC-MASK`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-tstamp-src-maskuh1hhMhj )}(hhh](j.h)}(hXMask for timestamp sources below. The timestamp source defines the point of time the timestamp is taken in relation to the frame. Logical 'and' operation between the ``flags`` field and ``V4L2_BUF_FLAG_TSTAMP_SRC_MASK`` produces the value of the timestamp source. Applications must set the timestamp source when ``type`` refers to an output stream and ``V4L2_BUF_FLAG_TIMESTAMP_COPY`` is set.h](hMask for timestamp sources below. The timestamp source defines the point of time the timestamp is taken in relation to the frame. Logical ‘and’ operation between the }(hj/hhhNhNubh)}(h ``flags``h]hflags}(hj /hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubh field and }(hj/hhhNhNubh)}(h!``V4L2_BUF_FLAG_TSTAMP_SRC_MASK``h]hV4L2_BUF_FLAG_TSTAMP_SRC_MASK}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubh] produces the value of the timestamp source. Applications must set the timestamp source when }(hj/hhhNhNubh)}(h``type``h]htype}(hj//hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubh refers to an output stream and }(hj/hhhNhNubh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_COPY``h]hV4L2_BUF_FLAG_TIMESTAMP_COPY}(hjA/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubh is set.}(hj/hhhNhNubeh}(h]j.ah ]h"]v4l2-buf-flag-tstamp-src-maskah$]h&]uh1hhhhMhj/j#}jW/j.sj#}j.j.subeh}(h]h ]h"]h$]h&]uh1j hj.ububh)}(h!``V4L2_BUF_FLAG_TSTAMP_SRC_MASK``h]h)}(hjd/h]hV4L2_BUF_FLAG_TSTAMP_SRC_MASK}(hjf/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb/ubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubeh}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh](j.h)}(h 0x00070000h]h 0x00070000}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubeh}(h]h ]h"]h$]h&]uh1j hj.ubj/eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h#.. _`V4L2-BUF-FLAG-TSTAMP-SRC-EOF`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-tstamp-src-eofuh1hhMhj )}(hhh](j/h)}(hXjEnd Of Frame. The buffer timestamp has been taken when the last pixel of the frame has been received or the last pixel of the frame has been transmitted. In practice, software generated timestamps will typically be read from the clock a small amount of time after the last pixel has been received or transmitten, depending on the system and other activity in it.h]hXjEnd Of Frame. The buffer timestamp has been taken when the last pixel of the frame has been received or the last pixel of the frame has been transmitted. In practice, software generated timestamps will typically be read from the clock a small amount of time after the last pixel has been received or transmitten, depending on the system and other activity in it.}(hj/hhhNhNubah}(h]j/ah ]h"]v4l2-buf-flag-tstamp-src-eofah$]h&]uh1hhhhMhj/j#}j/j/sj#}j/j/subeh}(h]h ]h"]h$]h&]uh1j hj/ububh)}(h ``V4L2_BUF_FLAG_TSTAMP_SRC_EOF``h]h)}(hj/h]hV4L2_BUF_FLAG_TSTAMP_SRC_EOF}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubeh}(h]h ]h"]h$]h&]uh1j hj/ubj )}(hhh](j/h)}(h 0x00000000h]h 0x00000000}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubeh}(h]h ]h"]h$]h&]uh1j hj/ubj/eh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j )}(hhh](h)}(h#.. _`V4L2-BUF-FLAG-TSTAMP-SRC-SOE`:h]h}(h]h ]h"]h$]h&]hԌv4l2-buf-flag-tstamp-src-soeuh1hhMhj )}(hhh](j0h)}(hStart Of Exposure. The buffer timestamp has been taken when the exposure of the frame has begun. This is only valid for the ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` buffer type.h](h|Start Of Exposure. The buffer timestamp has been taken when the exposure of the frame has begun. This is only valid for the }(hj0hhhNhNubh)}(h``V4L2_BUF_TYPE_VIDEO_CAPTURE``h]hV4L2_BUF_TYPE_VIDEO_CAPTURE}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubh buffer type.}(hj0hhhNhNubeh}(h]j0ah ]h"]v4l2-buf-flag-tstamp-src-soeah$]h&]uh1hhhhMhj0j#}j30j0sj#}j0j0subeh}(h]h ]h"]h$]h&]uh1j hj0ububh)}(h ``V4L2_BUF_FLAG_TSTAMP_SRC_SOE``h]h)}(hj@0h]hV4L2_BUF_FLAG_TSTAMP_SRC_SOE}(hjB0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>0ubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j0h)}(h 0x00010000h]h 0x00010000}(hj^0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj[0ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj0eh}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ]h"]h$]h&]uh1j hj"ubeh}(h]h ]h"]h$]h&]colsKuh1j hj"ubah}(h]h ] longtableah"]h$]h&]uh1j} hj"hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jV4L.v4l2_memory (C enum)c.V4L.v4l2_memoryhNtauh1jhj"hhhNhNubj)}(hhh](j)}(h v4l2_memoryh]j)}(henum v4l2_memoryh](j)}(henumh]henum}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhhhMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0hhhhhMubj )}(h v4l2_memoryh]j )}(hj0h]h v4l2_memory}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj0ubah}(h]h ](j& j' eh"]h$]h&]hhuh1j hj0hhhhhMubeh}(h]h ]h"]h$]h&]hhj1 uh1jj2 j3 hj0hhhhhMubah}(h]j0ah ](j7 j8 eh"]h$]h&]j< j= )j> huh1jhhhMhj0hhubj@ )}(hhh]h}(h]h ]h"]h$]h&]uh1j? hj0hhhhhMubeh}(h]h ](jenumeh"]h$]h&]jQ jjR j0jS j0jT jU jV uh1jhhhj"hNhNubj")}(h \normalsizeh]h \normalsize}hj0sbah}(h]h ]h"]h$]h&]formatlatexhhuh1j"hhhMhj"hhubeh}(h](j"id1eh ]h"]( buffer flags buffer-flagseh$]h&]uh1hhhhhhhhMj#}j 1j"sj#}j"j"subh)}(hhh](h)}(henum v4l2_memoryh]henum v4l2_memory}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhMubjq )}(hhh]h}(h]h ]h"]h$]h&]j{ |p{5.0cm}|p{0.8cm}|p{11.5cm}|uh1jp hhhMhj1hhubj~ )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj-1ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj-1ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj-1ubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h``V4L2_MEMORY_MMAP``h]h)}(hjY1h]hV4L2_MEMORY_MMAP}(hj[1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW1ubah}(h]h ]h"]h$]h&]uh1hhhhMhjT1ubah}(h]h ]h"]h$]h&]uh1j hjQ1ubj )}(hhh]h)}(hj h]h1}(hjw1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjt1ubah}(h]h ]h"]h$]h&]uh1j hjQ1ubj )}(hhh]h)}(h8The buffer is used for :ref:`memory mapping ` I/O.h](hThe buffer is used for }(hj1hhhNhNubh)}(h:ref:`memory mapping `h]j2)}(hj1h]hmemory mapping}(hj1hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj1ubah}(h]h ]h"]h$]h&]refdocj refdomainj1reftyperef refexplicitrefwarnj'mmapuh1hhhhMhj1ubh I/O.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hjQ1ubeh}(h]h ]h"]h$]h&]uh1j hjN1ubj )}(hhh](j )}(hhh]h)}(h``V4L2_MEMORY_USERPTR``h]h)}(hj1h]hV4L2_MEMORY_USERPTR}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hj1ubj )}(hhh]h)}(hjh]h2}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hj1ubj )}(hhh]h)}(h7The buffer is used for :ref:`user pointer ` I/O.h](hThe buffer is used for }(hj2hhhNhNubh)}(h:ref:`user pointer `h]j2)}(hj2h]h user pointer}(hj2hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj2ubah}(h]h ]h"]h$]h&]refdocj refdomainj2reftyperef refexplicitrefwarnj'userpuh1hhhhMhj2ubh I/O.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j hj1ubeh}(h]h ]h"]h$]h&]uh1j hjN1ubj )}(hhh](j )}(hhh]h)}(h``V4L2_MEMORY_OVERLAY``h]h)}(hjM2h]hV4L2_MEMORY_OVERLAY}(hjO2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK2ubah}(h]h ]h"]h$]h&]uh1hhhhMhjH2ubah}(h]h ]h"]h$]h&]uh1j hjE2ubj )}(hhh]h)}(hjh]h3}(hjk2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjh2ubah}(h]h ]h"]h$]h&]uh1j hjE2ubj )}(hhh]h)}(h[to do]h]h[to do]}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj~2ubah}(h]h ]h"]h$]h&]uh1j hjE2ubeh}(h]h ]h"]h$]h&]uh1j hjN1ubj )}(hhh](j )}(hhh]h)}(h``V4L2_MEMORY_DMABUF``h]h)}(hj2h]hV4L2_MEMORY_DMABUF}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j hj2ubj )}(hhh]h)}(hjph]h4}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j hj2ubj )}(hhh]h)}(h=The buffer is used for :ref:`DMA shared buffer ` I/O.h](hThe buffer is used for }(hj2hhhNhNubh)}(h!:ref:`DMA shared buffer `h]j2)}(hj2h]hDMA shared buffer}(hj2hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj2ubah}(h]h ]h"]h$]h&]refdocj refdomainj2reftyperef refexplicitrefwarnj'dmabufuh1hhhhMhj2ubh I/O.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j hj2ubeh}(h]h ]h"]h$]h&]uh1j hjN1ubeh}(h]h ]h"]h$]h&]uh1j hj-1ubeh}(h]h ]h"]h$]h&]colsKuh1j hj*1ubah}(h]h ]h"]h$]h&]uh1j} hj1hhhNhNubj")}(h \normalsizeh]h \normalsize}hj(3sbah}(h]h ]h"]h$]h&]formatlatexhhuh1j"hhhMhj1hhubeh}(h]enum-v4l2-memoryah ]h"]enum v4l2_memoryah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h Timecodesh]h Timecodes}(hjC3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@3hhhhhMubh)}(hThe :c:type:`v4l2_buffer_timecode` structure is designed to hold a :ref:`smpte12m` or similar timecode. (struct :c:type:`timeval` timestamps are stored in the struct :c:type:`v4l2_buffer` ``timestamp`` field.)h](hThe }(hjQ3hhhNhNubh)}(h:c:type:`v4l2_buffer_timecode`h]h)}(hj[3h]hv4l2_buffer_timecode}(hj]3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjY3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj'v4l2_buffer_timecodeuh1hhhhMhjQ3ubh! structure is designed to hold a }(hjQ3hhhNhNubh)}(h:ref:`smpte12m`h]j2)}(hj~3h]hsmpte12m}(hj3hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj|3ubah}(h]h ]h"]h$]h&]refdocj refdomainj3reftyperef refexplicitrefwarnj'smpte12muh1hhhhMhjQ3ubh or similar timecode. (struct }(hjQ3hhhNhNubh)}(h:c:type:`timeval`h]h)}(hj3h]htimeval}(hj3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj'timevaluh1hhhhMhjQ3ubh% timestamps are stored in the struct }(hjQ3hhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hj3h]h v4l2_buffer}(hj3hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjjj' v4l2_bufferuh1hhhhMhjQ3ubh }(hjQ3hhhNhNubh)}(h ``timestamp``h]h timestamp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ3ubh field.)}(hjQ3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj@3hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jV4L.v4l2_timecode (C type)c.V4L.v4l2_timecodehNtauh1jhj@3hhhNhNubj)}(hhh](j)}(h v4l2_timecodeh]j)}(htype v4l2_timecodeh](j)}(hjh]htype}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhhhMubj)}(h h]h }(hj$4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4hhhhhMubj )}(h v4l2_timecodeh]j )}(hj4h]h v4l2_timecode}(hj64hhhNhNubah}(h]h ]j ah"]h$]h&]uh1j hj24ubah}(h]h ](j& j' eh"]h$]h&]hhuh1j hj4hhhhhMubeh}(h]h ]h"]h$]h&]hhj1 uh1jj2 j3 hj4hhhhhMubah}(h]j 4ah ](j7 j8 eh"]h$]h&]j< j= )j> huh1jhhhMhj 4hhubj@ )}(hhh]h}(h]h ]h"]h$]h&]uh1j? hj 4hhhhhMubeh}(h]h ](jtypeeh"]h$]h&]jQ jjR ja4jS ja4jT jU jV uh1jhhhj@3hNhNubh)}(hhh](h)}(hstruct v4l2_timecodeh]hstruct v4l2_timecode}(hjh4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje4hhhhhMubjq )}(hhh]h}(h]h ]h"]h$]h&]j{ |p{1.4cm}|p{2.8cm}|p{13.1cm}|uh1jp hhhMhje4hhubj~ )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj4ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj4ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj4ubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh]h)}(h``type``h]h)}(hj4h]htype}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh]h)}(h@Frame rate the timecodes are based on, see :ref:`timecode-type`.h](h+Frame rate the timecodes are based on, see }(hj4hhhNhNubh)}(h:ref:`timecode-type`h]j2)}(hj4h]h timecode-type}(hj4hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hj4ubah}(h]h ]h"]h$]h&]refdocj refdomainj4reftyperef refexplicitrefwarnj' timecode-typeuh1hhhhMhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj(5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%5ubah}(h]h ]h"]h$]h&]uh1j hj"5ubj )}(hhh]h)}(h ``flags``h]h)}(hjA5h]hflags}(hjC5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?5ubah}(h]h ]h"]h$]h&]uh1hhhhMhj<5ubah}(h]h ]h"]h$]h&]uh1j hj"5ubj )}(hhh]h)}(h*Timecode flags, see :ref:`timecode-flags`.h](hTimecode flags, see }(hj_5hhhNhNubh)}(h:ref:`timecode-flags`h]j2)}(hji5h]htimecode-flags}(hjk5hhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1j1hjg5ubah}(h]h ]h"]h$]h&]refdocj refdomainju5reftyperef refexplicitrefwarnj'timecode-flagsuh1hhhhMhj_5ubh.}(hj_5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj\5ubah}(h]h ]h"]h$]h&]uh1j hj"5ubeh}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubah}(h]h ]h"]h$]h&]uh1j hj5ubj )}(hhh]h)}(h ``frames``h]h)}(hj5h]hframes}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubah}(h]h ]h"]h$]h&]uh1j hj5ubj )}(hhh]h)}(hEFrame count, 0 ... 23/24/29/49/59, depending on the type of timecode.h]hEFrame count, 0 ... 23/24/29/49/59, depending on the type of timecode.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubah}(h]h ]h"]h$]h&]uh1j hj5ubeh}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubah}(h]h ]h"]h$]h&]uh1j hj5ubj )}(hhh]h)}(h ``seconds``h]h)}(hj6h]hseconds}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hj5ubj )}(hhh]h)}(h:Seconds count, 0 ... 59. This is a binary, not BCD number.h]h:Seconds count, 0 ... 59. This is a binary, not BCD number.}(hj16hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.6ubah}(h]h ]h"]h$]h&]uh1j hj5ubeh}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hjQ6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjN6ubah}(h]h ]h"]h$]h&]uh1j hjK6ubj )}(hhh]h)}(h ``minutes``h]h)}(hjj6h]hminutes}(hjl6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh6ubah}(h]h ]h"]h$]h&]uh1hhhhMhje6ubah}(h]h ]h"]h$]h&]uh1j hjK6ubj )}(hhh]h)}(h:Minutes count, 0 ... 59. This is a binary, not BCD number.h]h:Minutes count, 0 ... 59. This is a binary, not BCD number.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hjK6ubeh}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hj6ubj )}(hhh]h)}(h ``hours``h]h)}(hj6h]hhours}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hj6ubj )}(hhh]h)}(h8Hours count, 0 ... 29. This is a binary, not BCD number.h]h8Hours count, 0 ... 29. This is a binary, not BCD number.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hj6ubeh}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hj6ubj )}(hhh]h)}(h``userbits``\ [4]h](h)}(h ``userbits``h]huserbits}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubh [4]}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj6ubj )}(hhh]h)}(h(The "user group" bits from the timecode.h]h,The “user group” bits from the timecode.}(hj;7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj87ubah}(h]h ]h"]h$]h&]uh1j hj6ubeh}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]colsKuh1j hj4ubah}(h]h ]h"]h$]h&]uh1j} hje4hhhNhNubh)}(h.. _timecode-type:h]h}(h]h ]h"]h$]h&]hԌ timecode-typeuh1hhMhje4hhhhubeh}(h]struct-v4l2-timecodeah ]h"]struct v4l2_timecodeah$]h&]uh1hhj@3hhhhhMubh)}(hhh](h)}(hTimecode Typesh]hTimecode Types}(hj~7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{7hhhhhMubj~ )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj7ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj7ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj7ubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_24FPS``h]h)}(hj7h]hV4L2_TC_TYPE_24FPS}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh]h)}(hj h]h1}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh]h)}(h!24 frames per second, i. e. film.h]h!24 frames per second, i. e. film.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_25FPS``h]h)}(hj8h]hV4L2_TC_TYPE_25FPS}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1hhhhMhj 8ubah}(h]h ]h"]h$]h&]uh1j hj 8ubj )}(hhh]h)}(hjh]h2}(hj/8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj,8ubah}(h]h ]h"]h$]h&]uh1j hj 8ubj )}(hhh]h)}(h/25 frames per second, i. e. PAL or SECAM video.h]h/25 frames per second, i. e. PAL or SECAM video.}(hjE8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjB8ubah}(h]h ]h"]h$]h&]uh1j hj 8ubeh}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_30FPS``h]h)}(hjg8h]hV4L2_TC_TYPE_30FPS}(hji8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje8ubah}(h]h ]h"]h$]h&]uh1hhhhMhjb8ubah}(h]h ]h"]h$]h&]uh1j hj_8ubj )}(hhh]h)}(hjh]h3}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj8ubah}(h]h ]h"]h$]h&]uh1j hj_8ubj )}(hhh]h)}(h'30 frames per second, i. e. NTSC video.h]h'30 frames per second, i. e. NTSC video.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj8ubah}(h]h ]h"]h$]h&]uh1j hj_8ubeh}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_50FPS``h]h)}(hj8h]hV4L2_TC_TYPE_50FPS}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1hhhhMhj8ubah}(h]h ]h"]h$]h&]uh1j hj8ubj )}(hhh]h)}(hjph]h4}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj8ubah}(h]h ]h"]h$]h&]uh1j hj8ubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj8ubeh}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_60FPS``h]h)}(hj9h]hV4L2_TC_TYPE_60FPS}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1j hj8ubj )}(hhh]h)}(hjh]h5}(hj#9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj 9ubah}(h]h ]h"]h$]h&]uh1j hj8ubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj8ubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]colsKuh1j hj7ubah}(h]h ]h"]h$]h&]uh1j} hj{7hhhNhNubh)}(h.. _timecode-flags:h]h}(h]h ]h"]h$]h&]hԌtimecode-flagsuh1hhMhj{7hhhhubeh}(h](timecode-typesjr7eh ]h"](timecode types timecode-typeeh$]h&]uh1hhj@3hhhhhMj#}ji9jh7sj#}jr7jh7subh)}(hhh](h)}(hTimecode Flagsh]hTimecode Flags}(hjq9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn9hhhhhM ubjq )}(hhh]h}(h]h ]h"]h$]h&]j{ |p{6.6cm}|p{1.4cm}|p{9.3cm}|uh1jp hhhM hjn9hhubj~ )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj9ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj9ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj9ubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h``V4L2_TC_FLAG_DROPFRAME``h]h)}(hj9h]hV4L2_TC_FLAG_DROPFRAME}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh]h)}(h0x0001h]h0x0001}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh]h)}(hIndicates "drop frame" semantics for counting frames in 29.97 fps material. When set, frame numbers 0 and 1 at the start of each minute, except minutes 0, 10, 20, 30, 40, 50 are omitted from the count.h]hIndicates “drop frame” semantics for counting frames in 29.97 fps material. When set, frame numbers 0 and 1 at the start of each minute, except minutes 0, 10, 20, 30, 40, 50 are omitted from the count.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_FLAG_COLORFRAME``h]h)}(hj:h]hV4L2_TC_FLAG_COLORFRAME}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj :ubah}(h]h ]h"]h$]h&]uh1hhhhMhj :ubah}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh]h)}(h0x0002h]h0x0002}(hj-:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*:ubah}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh]h)}(hThe "color frame" flag.h]hThe “color frame” flag.}(hjD:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjA:ubah}(h]h ]h"]h$]h&]uh1j hj:ubeh}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_USERBITS_field``h]h)}(hjf:h]hV4L2_TC_USERBITS_field}(hjh:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd:ubah}(h]h ]h"]h$]h&]uh1hhhhMhja:ubah}(h]h ]h"]h$]h&]uh1j hj^:ubj )}(hhh]h)}(h0x000Ch]h0x000C}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j hj^:ubj )}(hhh]h)}(h(Field mask for the "binary group flags".h]h,Field mask for the “binary group flags”.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j hj^:ubeh}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh](j )}(hhh]h)}(h ``V4L2_TC_USERBITS_USERDEFINED``h]h)}(hj:h]hV4L2_TC_USERBITS_USERDEFINED}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh]h)}(h0x0000h]h0x0000}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh]h)}(hUnspecified format.h]hUnspecified format.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj:ubah}(h]h ]h"]h$]h&]uh1j hj:ubeh}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_USERBITS_8BITCHARS``h]h)}(hj;h]hV4L2_TC_USERBITS_8BITCHARS}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1hhhhM!hj;ubah}(h]h ]h"]h$]h&]uh1j hj ;ubj )}(hhh]h)}(h0x0008h]h0x0008}(hj2;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM"hj/;ubah}(h]h ]h"]h$]h&]uh1j hj ;ubj )}(hhh]h)}(h8-bit ISO characters.h]h8-bit ISO characters.}(hjI;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hjF;ubah}(h]h ]h"]h$]h&]uh1j hj ;ubeh}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]colsKuh1j hj9ubah}(h]h ]h"]h$]h&]uh1j} hjn9hhhNhNubeh}(h](jb9id2eh ]h"](timecode flagstimecode-flagseh$]h&]uh1hhj@3hhhhhM j#}j|;jX9sj#}jb9jX9subeh}(h] timecodesah ]h"] timecodesah$]h&]uh1hhhhhhhhMubeh}(h](buffersheh ]h"](buffersbuffereh$]h&]uh1hhhhhhhhKj#}j;hsj#}hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksj footnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj;error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}(h]haj"]j"aj%#]j#aj$]j$aj$]j$ajv%]jl%aj%]j%ajR&]jH&aj&]j&ajd']jZ'aj']j'aj(]j(aj)]j)aj<*]j2*aj*]j*aj+]jy+ajx,]jn,aj,]j,ajT-]jJ-aj.]j-aj.]j.aj.]j.aj/]j/aj0]j0ajr7]jh7ajb9]jX9aunameids}(j;hj;j;j\ jY jjjjj"j"j 1j"j 1j1j#j%#jb$j$j!%j$j%jv%j%j%j&jR&j'j&j'jd'jE(j'j:)j(j)j)j*j<*j.+j*j#,j+j,jx,j,j,j-jT-jE.j.j.j.jW/j.j/j/j30j0j=3j:3j;j;jx7ju7ji9jr7jh9je9j|;jb9j{;jx;u nametypes}(j;j;j\ jjj"j 1j 1j#jb$j!%j%j%j&j'j'jE(j:)j)j*j.+j#,j,j,j-jE.j.jW/j/j30j=3j;jx7ji9jh9j|;j{;uh}(hhj;hjY jjjjj_ jjjjj;j@j"jj"j"j1j"j%#j)#j$j $j$j$jv%jz%j%j%jR&jV&j&j&jd'jh'j'j'j(j(j)j)j<*j@*j*j*j+j+jx,j|,j,j,jT-jX-j.j.j.j.j.j/j/j/j0j0j0j0j:3j1j;j@3j 4j4ju7je4jr7j{7je9j{7jb9jn9jx;jn9jwj u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j;KsRparse_messages](hsystem_message)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hj7<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4<ubah}(h]h ]h"]h$]h&]levelKtypeINFOlineMsourcehuh1j2<hjubj3<)}(hhh]h)}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hjS<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP<ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMisourcehuh1j2<hjubetransform_messages](j3<)}(hhh]h)}(hhh]h,Hyperlink target "buffer" is not referenced.}hjp<sbah}(h]h ]h"]h$]h&]uh1hhjm<ubah}(h]h ]h"]h$]h&]levelKtypejM<sourcehnjlineKuh1j2<ubj3<)}(hhh]h)}(hhh]h2Hyperlink target "buffer-flags" is not referenced.}hj<sbah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]levelKtypejM<sourcehnjlineMuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-mapped" is not referenced.}hj<sbah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-mapped" is not referenced.}hj<sbah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-mapped" is not referenced.}hj<sbah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-queued" is not referenced.}hj<sbah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-queued" is not referenced.}hj =sbah}(h]h ]h"]h$]h&]uh1hhj =ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-queued" is not referenced.}hj&=sbah}(h]h ]h"]h$]h&]uh1hhj#=ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h8Hyperlink target "v4l2-buf-flag-done" is not referenced.}hj@=sbah}(h]h ]h"]h$]h&]uh1hhj==ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h8Hyperlink target "v4l2-buf-flag-done" is not referenced.}hjZ=sbah}(h]h ]h"]h$]h&]uh1hhjW=ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h8Hyperlink target "v4l2-buf-flag-done" is not referenced.}hjt=sbah}(h]h ]h"]h$]h&]uh1hhjq=ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h9Hyperlink target "v4l2-buf-flag-error" is not referenced.}hj=sbah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h9Hyperlink target "v4l2-buf-flag-error" is not referenced.}hj=sbah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h9Hyperlink target "v4l2-buf-flag-error" is not referenced.}hj=sbah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h>Hyperlink target "v4l2-buf-flag-in-request" is not referenced.}hj=sbah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h>Hyperlink target "v4l2-buf-flag-in-request" is not referenced.}hj=sbah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h>Hyperlink target "v4l2-buf-flag-in-request" is not referenced.}hj>sbah}(h]h ]h"]h$]h&]uh1hhj >ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hsbah}(h]h ]h"]h$]h&]uh1hhj'>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hsbah}(h]h ]h"]h$]h&]uh1hhjA>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hsbah}(h]h ]h"]h$]h&]uh1hhj[>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-pframe" is not referenced.}hjx>sbah}(h]h ]h"]h$]h&]uh1hhju>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineM sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-pframe" is not referenced.}hj>sbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineM sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-pframe" is not referenced.}hj>sbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineM sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-bframe" is not referenced.}hj>sbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-bframe" is not referenced.}hj>sbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-bframe" is not referenced.}hj>sbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hHyperlink target "v4l2-buf-flag-request-fd" is not referenced.}hj@sbah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]levelKtypejM<lineM]sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h>Hyperlink target "v4l2-buf-flag-request-fd" is not referenced.}hjAsbah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]levelKtypejM<lineM]sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h>Hyperlink target "v4l2-buf-flag-request-fd" is not referenced.}hjAsbah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]levelKtypejM<lineM]sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-mask" is not referenced.}hj6Asbah}(h]h ]h"]h$]h&]uh1hhj3Aubah}(h]h ]h"]h$]h&]levelKtypejM<lineMbsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-mask" is not referenced.}hjPAsbah}(h]h ]h"]h$]h&]uh1hhjMAubah}(h]h ]h"]h$]h&]levelKtypejM<lineMbsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-mask" is not referenced.}hjjAsbah}(h]h ]h"]h$]h&]uh1hhjgAubah}(h]h ]h"]h$]h&]levelKtypejM<lineMbsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hEHyperlink target "v4l2-buf-flag-timestamp-unknown" is not referenced.}hjAsbah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]levelKtypejM<lineMisourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hEHyperlink target "v4l2-buf-flag-timestamp-unknown" is not referenced.}hjAsbah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]levelKtypejM<lineMisourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hEHyperlink target "v4l2-buf-flag-timestamp-unknown" is not referenced.}hjAsbah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]levelKtypejM<lineMisourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hGHyperlink target "v4l2-buf-flag-timestamp-monotonic" is not referenced.}hjAsbah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]levelKtypejM<lineMtsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hGHyperlink target "v4l2-buf-flag-timestamp-monotonic" is not referenced.}hjAsbah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]levelKtypejM<lineMtsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hGHyperlink target "v4l2-buf-flag-timestamp-monotonic" is not referenced.}hjBsbah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]levelKtypejM<lineMtsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-copy" is not referenced.}hj Bsbah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]levelKtypejM<lineM{sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-copy" is not referenced.}hj:Bsbah}(h]h ]h"]h$]h&]uh1hhj7Bubah}(h]h ]h"]h$]h&]levelKtypejM<lineM{sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-copy" is not referenced.}hjTBsbah}(h]h ]h"]h$]h&]uh1hhjQBubah}(h]h ]h"]h$]h&]levelKtypejM<lineM{sourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hCHyperlink target "v4l2-buf-flag-tstamp-src-mask" is not referenced.}hjnBsbah}(h]h ]h"]h$]h&]uh1hhjkBubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hCHyperlink target "v4l2-buf-flag-tstamp-src-mask" is not referenced.}hjBsbah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hCHyperlink target "v4l2-buf-flag-tstamp-src-mask" is not referenced.}hjBsbah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-tstamp-src-eof" is not referenced.}hjBsbah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-tstamp-src-eof" is not referenced.}hjBsbah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-tstamp-src-eof" is not referenced.}hjBsbah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-tstamp-src-soe" is not referenced.}hj Csbah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-tstamp-src-soe" is not referenced.}hj$Csbah}(h]h ]h"]h$]h&]uh1hhj!Cubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-tstamp-src-soe" is not referenced.}hj>Csbah}(h]h ]h"]h$]h&]uh1hhj;Cubah}(h]h ]h"]h$]h&]levelKtypejM<lineMsourcehuh1j2<ubj3<)}(hhh]h)}(hhh]h3Hyperlink target "timecode-type" is not referenced.}hjXCsbah}(h]h ]h"]h$]h&]uh1hhjUCubah}(h]h ]h"]h$]h&]levelKtypejM<sourcehnjlineMuh1j2<ubj3<)}(hhh]h)}(hhh]h4Hyperlink target "timecode-flags" is not referenced.}hjrCsbah}(h]h ]h"]h$]h&]uh1hhjoCubah}(h]h ]h"]h$]h&]levelKtypejM<sourcehnjlineMuh1j2<ube transformerN include_log] decorationNhhub.