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]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 refdomainhreftypetype 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)}(hjh]hVIDIOC_QUERYBUF}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainj)reftyperef refexplicitrefwarnjvidioc_querybufuh1hhhhK hhubh, }(hhhhhNhNubh)}(h :ref:`VIDIOC_QBUF `h]j)}(hjAh]h VIDIOC_QBUF}(hjChhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdoch refdomainjMreftyperef refexplicitrefwarnj vidioc_qbufuh1hhhhK hhubh and }(hhhhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j)}(hjeh]h VIDIOC_DQBUF}(hjghhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdoch refdomainjqreftyperef 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 ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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 ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_planeuh1hhhhK hhubh instead. In that case, struct }(hhhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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 }(hjhhhNhNubh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_MASK``h]hV4L2_BUF_FLAG_TIMESTAMP_MASK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh and }(hjhhhNhNubh)}(h!``V4L2_BUF_FLAG_TSTAMP_SRC_MASK``h]hV4L2_BUF_FLAG_TSTAMP_SRC_MASK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh in }(hjhhhNhNubh)}(h:ref:`buffer-flags`h]j)}(hj$h]h buffer-flags}(hj&hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]refdoch refdomainj0reftyperef refexplicitrefwarnj buffer-flagsuh1hhhhKhjubh. 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 }(hjhhhNhNubh)}(h&:ref:`VIDIOC_S_INPUT `h]j)}(hjHh]hVIDIOC_S_INPUT}(hjJhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdoch refdomainjTreftyperef refexplicitrefwarnjvidioc_g_inputuh1hhhhKhjubh or }(hjhhhNhNubh)}(h(:ref:`VIDIOC_S_OUTPUT `h]j)}(hjlh]hVIDIOC_S_OUTPUT}(hjnhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]refdoch refdomainjxreftyperef refexplicitrefwarnjvidioc_g_outputuh1hhhhKhjubh however. The }(hjhhhNhNubh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_COPY``h]hV4L2_BUF_FLAG_TIMESTAMP_COPY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh 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.}(hjhhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh flag when calling }(hjhhhNhNubh)}(h:c:func:`VIDIOC_QUERYCTRL`h]h)}(hj3h]hVIDIOC_QUERYCTRL()}(hj5hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_QUERYCTRLuh1hhhhK6hjubh or }(hjhhhNhNubh)}(h:c:func:`VIDIOC_QUERY_EXT_CTRL`h]h)}(hjVh]hVIDIOC_QUERY_EXT_CTRL()}(hjXhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_S_INPUTuh1hhhhK@hjubh, }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_OUTPUT`h]h)}(hjh]hVIDIOC_S_OUTPUT()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_S_OUTPUTuh1hhhhK@hjubh, }hjsbh)}(h:c:func:`VIDIOC_S_STD`h]h)}(hjh]hVIDIOC_S_STD()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjj VIDIOC_S_STDuh1hhhhK@hjubh and }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_DV_TIMINGS`h]h)}(hjh]hVIDIOC_S_DV_TIMINGS()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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)}(hj<h]hVIDIOC_S_FMT()}(hj>hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc 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&]uh1j}hjhhhhhNubh)}(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 }(hjihhhNhNubh)}(h``V4L2_CTRL_FLAG_GRABBED``h]hV4L2_CTRL_FLAG_GRABBED}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubh, flag is cleared once the stream is stopped.}(hjihhhNhNubeh}(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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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&]uh1jhjubj)}(hVIDIOC_REQBUFS(0)h]h)}(hjh]hVIDIOC_REQBUFS(0)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK[hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVIDIOC_S_EXT_CTRLSh]h)}(hj,h]hVIDIOC_S_EXT_CTRLS}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hj*ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h VIDIOC_S_FMTh]h)}(hjCh]h VIDIOC_S_FMT}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK]hjAubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVIDIOC_REQBUFS(n)h]h)}(hjZh]hVIDIOC_REQBUFS(n)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK^hjXubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h VIDIOC_QBUFh]h)}(hjqh]h VIDIOC_QBUF}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK_hjoubah}(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&]enumtypearabicprefixhsuffix.uh1jhjubah}(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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc 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&]uh1j}hjhhhhhNubh)}(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 }(hjhhhNhNubh)}(h ``EBUSY``h]hEBUSY}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubhc error. Any attempt to queue a buffer too small for the current format or controls shall cause the }(hjhhhNhNubh)}(h:c:func:`VIDIOC_QBUF`h]h)}(hj7h]h VIDIOC_QBUF()}(hj9hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjj VIDIOC_QBUFuh1hhhhKnhjubh ioctl to return a }(hjhhhNhNubh)}(h ``EINVAL``h]hEINVAL}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh error.}(hjhhhNhNubeh}(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}(hjphhhNhNubah}(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&]jjjhjjuh1jhj~ubah}(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)}(hj!h]hVIDIOC_S_FMT()}(hj#hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjj VIDIOC_S_FMTuh1hhhhKhjubh) or control changes (}(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_CTRL`h]h)}(hjDh]hVIDIOC_S_CTRL()}(hjFhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjj VIDIOC_S_CTRLuh1hhhhKhjubh or }(hjhhhNhNubh)}(h:c:func:`VIDIOC_S_EXT_CTRLS`h]h)}(hjgh]hVIDIOC_S_EXT_CTRLS()}(hjihhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc 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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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)}(hjh]hVIDIOC_S_EXT_CTRLS(x)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVIDIOC_TRY_FMT()h]h)}(hj4h]hVIDIOC_TRY_FMT()}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVIDIOC_S_EXT_CTRLS(y)h]h)}(hjKh]hVIDIOC_S_EXT_CTRLS(y)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjIubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hVIDIOC_TRY_FMT() h]h)}(hVIDIOC_TRY_FMT()h]hVIDIOC_TRY_FMT()}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj`ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjjhjjuh1jhjubah}(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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjVIDIOC_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&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jhjhhhhhKubeh}(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 ](htypeeh"]h$]h&]domainhobjtypej9 desctypej9 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}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK hhhhhKubhtabular_col_spec)}(hhh]h}(h]h ]h"]h$]h&]spec|p{2.9cm}|p{2.4cm}|p{12.0cm}|uh1j\ hhhKhjK hhubhtable)}(hhh](h)}(hstruct v4l2_bufferh]hstruct v4l2_buffer}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjk 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]j)}(hj h]h VIDIOC_DQBUF}(hj hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdoch 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]j)}(hj h]hVIDIOC_REQBUFS}(hj hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdoch refdomainj! reftyperef refexplicitrefwarnjvidioc_reqbufsuh1hhhhKhj ubh ioctl (struct }(hj hhhNhNubh)}(h:c:type:`v4l2_requestbuffers`h]h)}(hj9 h]hv4l2_requestbuffers}(hj; hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj7 ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_requestbuffersuh1hhhhKhj ubh }(hj hhhNhNubh)}(h ``count``h]hcount}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh#), plus any buffers allocated with }(hj hhhNhNubh)}(h:ref:`VIDIOC_CREATE_BUFS`h]j)}(hjn h]hVIDIOC_CREATE_BUFS}(hjp hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjl ubah}(h]h ]h"]h$]h&]refdoch refdomainjz reftyperef refexplicitrefwarnjvidioc_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 ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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)}(hj h]hv4l2_requestbuffers}(hj hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_requestbuffersuh1hhhhKhj ubh }hj sbh)}(h``type``h]htype}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh, set by the application. See }(hj hhhNhNubh)}(h:c:type:`v4l2_buf_type`h]h)}(hjS h]h v4l2_buf_type}(hjU hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjQ ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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)}(hj h]hflags}(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)}(h@Flags set by the application or driver, see :ref:`buffer-flags`.h](h,Flags set by the application or driver, see }(hj: hhhNhNubh)}(h:ref:`buffer-flags`h]j)}(hjD h]h buffer-flags}(hjF hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjB ubah}(h]h ]h"]h$]h&]refdoch refdomainjP reftyperef refexplicitrefwarnj buffer-flagsuh1hhhhKhj: ubh.}(hj: hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj7 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 hjx 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 hjx 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 ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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 hjx 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)}(hj# h]h timestamp}(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)}(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 }(hjA hhhNhNubh)}(h:c:func:`clock_gettime()`h]h)}(hjK h]hclock_gettime()}(hjM hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjI ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjj clock_gettimeuh1hhhhKhjA ubh) function for the relevant clock id; see }(hjA hhhNhNubh)}(h``V4L2_BUF_FLAG_TIMESTAMP_*``h]hV4L2_BUF_FLAG_TIMESTAMP_*}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA ubh in }(hjA hhhNhNubh)}(h:ref:`buffer-flags`h]j)}(hj h]h buffer-flags}(hj hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj~ ubah}(h]h ]h"]h$]h&]refdoch refdomainj reftyperef refexplicitrefwarnj buffer-flagsuh1hhhhKhjA ubhi. For output streams the driver stores the time at which the last data byte was actually sent out in the }(hjA hhhNhNubh)}(h ``timestamp``h]h timestamp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA ubhw field. This permits applications to monitor the drift between the video and system clock. For output streams that use }(hjA hhhNhNubh)}(h ``V4L2_BUF_FLAG_TIMESTAMP_COPY``h]hV4L2_BUF_FLAG_TIMESTAMP_COPY}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA ubhg the application has to fill in the timestamp which will be copied by the driver to the capture stream.}(hjA 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 :c:type:`v4l2_timecode`h](hstruct }(hj hhhNhNubh)}(h:c:type:`v4l2_timecode`h]h)}(hj h]h v4l2_timecode}(hj hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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)}(hjh]htimecode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(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 }(hj4hhhNhNubh)}(h``V4L2_BUF_FLAG_TIMECODE``h]hV4L2_BUF_FLAG_TIMECODE}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubh flag is set in }(hj4hhhNhNubh)}(h ``flags``h]hflags}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubh/, this structure contains a frame timecode. In }(hj4hhhNhNubh)}(h+:c:type:`V4L2_FIELD_ALTERNATE `h]h)}(hjbh]hV4L2_FIELD_ALTERNATE}(hjdhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj`ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_fielduh1hhhhKhj4ubh 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 }(hj4hhhNhNubh)}(h ``timestamp``h]h timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubh and }(hj4hhhNhNubh)}(h ``sequence``h]hsequence}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubh fields.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj1ubah}(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.}(hjhhhNhNubah}(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&]uh1hhhhKhjubh)}(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 }(hj hhhNhNubh)}(h+:c:type:`V4L2_FIELD_ALTERNATE `h]h)}(hj*h]hV4L2_FIELD_ALTERNATE}(hj,hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_fielduh1hhhhKhj ubhXY 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.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubj~)}(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 }(hjUhhhNhNubh)}(h:ref:`standard`h]j)}(hj_h]hstandard}(hjahhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]refdoch refdomainjkreftyperef refexplicitrefwarnjstandarduh1hhhhKhjUubh.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjQubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]morecolsKuh1j hjubah}(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 ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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 {}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h``m``h]h)}(hj/h]hm}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1hhhhKhj*ubah}(h]h ]h"]h$]h&]morecolsKuh1j hjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjTubah}(h]h ]h"]h$]h&]uh1j hjQubj )}(hhh]h)}(h ``offset``h]h)}(hjph]hoffset}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1hhhhKhjkubah}(h]h ]h"]h$]h&]uh1j hjQubj )}(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 ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjmmapuh1hhhhKhjubh+ function not useful for applications. See }(hjhhhNhNubh)}(h :ref:`mmap`h]j)}(hjh]hmmap}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjmmapuh1hhhhKhjubh for details}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j hjQubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h unsigned longh]h unsigned long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``userptr``h]h)}(hj2h]huserptr}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1hhhhMhj-ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(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 }(hjPhhhNhNubh)}(h ``memory``h]hmemory}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubh is }(hjPhhhNhNubh)}(h``V4L2_MEMORY_USERPTR``h]hV4L2_MEMORY_USERPTR}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubho this is a pointer to the buffer (casted to unsigned long type) in virtual memory, set by the application. See }(hjPhhhNhNubh)}(h :ref:`userp`h]j)}(hj~h]huserp}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjuserpuh1hhhhMhjPubh for details.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjMubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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)}(hjh]h v4l2_plane}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_planeuh1hhhhM hjubh-. The size of the array should be put in the }(hjhhhNhNubh)}(h ``length``h]hlength}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh field of this struct }(hjhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hj.h]h v4l2_buffer}(hj0hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjdubah}(h]h ]h"]h$]h&]uh1j hjaubj )}(hhh]h)}(h``fd``h]h)}(hjh]hfd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&]uh1hhhhMhj{ubah}(h]h ]h"]h$]h&]uh1j hjaubj )}(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 hjaubeh}(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&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``length``h]h)}(hj%h]hlength}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(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 }(hjChhhNhNubh)}(h:ref:`VIDIOC_REQBUFS`h]j)}(hjMh]hVIDIOC_REQBUFS}(hjOhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdoch refdomainjYreftyperef refexplicitrefwarnjvidioc_reqbufsuh1hhhhMhjCubh and/or }(hjChhhNhNubh)}(h:ref:`VIDIOC_CREATE_BUFS`h]j)}(hjqh]hVIDIOC_CREATE_BUFS}(hjshhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdoch refdomainj}reftyperef refexplicitrefwarnjvidioc_create_bufsuh1hhhhMhjCubhV. For the multi-planar API the application sets this to the number of elements in the }(hjChhhNhNubh)}(h ``planes``h]hplanes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubhR array. The driver will fill in the actual number of valid elements in that array.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj@ubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h``request_fd``h]h)}(hj-h]h request_fd}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]uh1hhhhM$hj(ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(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 }(hjKhhhNhNubh)}(h``V4L2_BUF_FLAG_REQUEST_FD``h]hV4L2_BUF_FLAG_REQUEST_FD}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKubhq is set, then the buffer will be queued to this request. If the flag is not set, then this field will be ignored.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM%hjHubh)}(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 }(hjkhhhNhNubh)}(h``V4L2_BUF_FLAG_REQUEST_FD``h]hV4L2_BUF_FLAG_REQUEST_FD}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkubh& flag and this field are only used by }(hjkhhhNhNubh)}(h&:ref:`ioctl VIDIOC_QBUF `h]j)}(hjh]hioctl VIDIOC_QBUF}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnj vidioc_qbufuh1hhhhM*hjkubh) and ignored by other ioctls that take a }(hjkhhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhhhM*hjkubh as argument.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM*hjHubh)}(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]j)}(hjh]h VIDIOC_QBUF}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnj vidioc_qbufuh1hhhhM.hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM.hjHubh)}(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 }(hjhhhNhNubh)}(h ``EBADR``h]hEBADR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubhc will be returned. If requests are supported but an invalid request file descriptor is given, then }(hjhhhNhNubh)}(h ``EINVAL``h]hEINVAL}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh will be returned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM1hjHubeh}(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| hjk ubeh}(h]id3ah ] longtableah"]h$]h&]uh1ji hjK hhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jV4L.v4l2_plane (C type)c.V4L.v4l2_planehNtauh1jhjK hhhNhNubj)}(hhh](j)}(h v4l2_planeh]j)}(htype v4l2_planeh](j)}(hjh]htype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhhhM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhhhM6ubj)}(h v4l2_planeh]j )}(hj|h]h v4l2_plane}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubah}(h]h ](j j eh"]h$]h&]hhuh1jhj~hhhhhM6ubeh}(h]h ]h"]h$]h&]hhj uh1jj j hjzhhhhhM6ubah}(h]juah ](j# j$ eh"]h$]h&]j( j) )j* huh1jhhhM6hjwhhubj, )}(hhh]h}(h]h ]h"]h$]h&]uh1j+ hjwhhhhhM6ubeh}(h]h ](htypeeh"]h$]h&]j= hj> jj? jj@ jA jB uh1jhhhjK 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&]uh1hhjhhhhhM9ubj] )}(hhh]h}(h]h ]h"]h$]h&]jg |p{3.5cm}|p{3.5cm}|p{10.3cm}|uh1j\ hhhM;hjhhubjj )}(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&]colwidthKuh1j hjubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h__u32h]h__u32}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh]h)}(h ``bytesused``h]h)}(hj9h]h bytesused}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1hhhhMEhj4ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(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 }(hjWhhhNhNubh)}(h``type``h]htype}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubhM refers to a capture stream, applications when it refers to an output stream.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMFhjTubj~)}(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 }(hj{hhhNhNubh)}(h``data_offset``h]h data_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ubh which may not be 0.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMLhjwubah}(h]h ]h"]h$]h&]uh1j}hjTubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(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]j)}(hjh]hVIDIOC_REQBUFS}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjvidioc_reqbufsuh1hhhhMPhjubh and/or }(hjhhhNhNubh)}(h:ref:`VIDIOC_CREATE_BUFS`h]j)}(hjh]hVIDIOC_CREATE_BUFS}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainj$reftyperef refexplicitrefwarnjvidioc_create_bufsuh1hhhhMPhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMPhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(hunion {h]hunion {}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThjOubah}(h]h ]h"]h$]h&]uh1j hjLubj )}(hhh]h)}(h``m``h]h)}(hjkh]hm}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1hhhhMUhjfubah}(h]h ]h"]h$]h&]morecolsKuh1j hjLubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(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 ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhhhMXhjubh is }(hjhhhNhNubh)}(h``V4L2_MEMORY_MMAP``h]hV4L2_MEMORY_MMAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh-, this is the value that should be passed to }(hjhhhNhNubh)}(h:c:func:`mmap()`h]h)}(hj h]hmmap()}(hj hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjjmmapuh1hhhhMXhjubh, 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)}(hj>h]h v4l2_buffer}(hj@hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhhhMXhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMXhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j )}(hhh]h)}(h unsigned longh]h unsigned long}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM]hjtubah}(h]h ]h"]h$]h&]uh1j hjqubj )}(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 hjqubj )}(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 ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype 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 hjqubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(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)}(hjh]hfd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhMdhjubah}(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 }(hj:hhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjDh]h v4l2_buffer}(hjFhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhhhMehj:ubh is }(hj:hhhNhNubh)}(h``V4L2_MEMORY_DMABUF``h]hV4L2_MEMORY_DMABUF}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubhL, this is a file descriptor associated with a DMABUF buffer, similar to the }(hj:hhhNhNubh)}(h``fd``h]hfd}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubh field in struct }(hj:hhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjh]h v4l2_buffer}(hjhhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhhhMehj:ubh.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMehj7ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(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 hjubj )}(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 }(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&]uh1hhhhMmhj!ubj~)}(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 }(hjHhhhNhNubh)}(h ``bytesused``h]h bytesused}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubh+. So the size of the image in the plane is }(hjHhhhNhNubh)}(h ``bytesused``h]h bytesused}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubh-}(hjHhhhNhNubh)}(h``data_offset``h]h data_offset}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubh at offset }(hjHhhhNhNubh)}(h``data_offset``h]h data_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubh from the start of the plane.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMshjDubah}(h]h ]h"]h$]h&]uh1j}hj!ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(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 hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]colsKuh1j| hjubah}(h]h ] longtableah"]h$]h&]uh1ji 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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhhhM|ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhhhM|ubj)}(h v4l2_buf_typeh]j )}(hj.h]h v4l2_buf_type}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjOubah}(h]h ](j j eh"]h$]h&]hhuh1jhj0hhhhhM|ubeh}(h]h ]h"]h$]h&]hhj uh1jj j hj,hhhhhM|ubah}(h]j'ah ](j# j$ eh"]h$]h&]j( j) )j* huh1jhhhM|hj)hhubj, )}(hhh]h}(h]h ]h"]h$]h&]uh1j+ hj)hhhhhM|ubeh}(h]h ](htypeeh"]h$]h&]j= hj> j~j? j~j@ jA jB 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&]uh1hhjhhhhhMubj] )}(hhh]h}(h]h ] longtableah"]h$]h&]jg |p{7.8cm}|p{0.6cm}|p{8.9cm}|uh1j\ hhhMhjhhubjj )}(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 }(hj hhhNhNubh)}(h:ref:`capture`h]j)}(hjh]hcapture}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainj reftyperef refexplicitrefwarnjcaptureuh1hhhhMhj 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_VIDEO_CAPTURE_MPLANE``h]h)}(hjPh]h"V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&]uh1hhhhMhjKubah}(h]h ]h"]h$]h&]uh1j hjHubj )}(hhh]h)}(h9h]h9}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjkubah}(h]h ]h"]h$]h&]uh1j hjHubj )}(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]j)}(hjh]hcapture}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjcaptureuh1hhhhMhjubh.}(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_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]j)}(hj h]houtput}(hj hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjoutputuh1hhhhMhjubh.}(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)}(hjFh]h!V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1hhhhMhjAubah}(h]h ]h"]h$]h&]uh1j hj>ubj )}(hhh]h)}(h10h]h10}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjaubah}(h]h ]h"]h$]h&]uh1j hj>ubj )}(hhh]h)}(h@Buffer of a multi-planar video output stream, see :ref:`output`.h](h2Buffer of a multi-planar video output stream, see }(hj{hhhNhNubh)}(h :ref:`output`h]j)}(hjh]houtput}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjoutputuh1hhhhMhj{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_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 }(hjhhhNhNubh)}(h:ref:`overlay`h]j)}(hjh]hoverlay}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainj reftyperef refexplicitrefwarnjoverlayuh1hhhhMhjubh.}(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_VBI_CAPTURE``h]h)}(hj<h]hV4L2_BUF_TYPE_VBI_CAPTURE}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh]h)}(h4h]h4}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjWubah}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh]h)}(h7Buffer of a raw VBI capture stream, see :ref:`raw-vbi`.h](h(Buffer of a raw VBI capture stream, see }(hjqhhhNhNubh)}(h:ref:`raw-vbi`h]j)}(hj{h]hraw-vbi}(hj}hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjraw-vbiuh1hhhhMhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjnubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(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]j)}(hjh]hraw-vbi}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjraw-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)}(hj2h]h V4L2_BUF_TYPE_SLICED_VBI_CAPTURE}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1hhhhMhj-ubah}(h]h ]h"]h$]h&]uh1j hj*ubj )}(hhh]h)}(h6h]h6}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjMubah}(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 }(hjghhhNhNubh)}(h :ref:`sliced`h]j)}(hjqh]hsliced}(hjshhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]refdoch refdomainj}reftyperef refexplicitrefwarnjsliceduh1hhhhMhjgubh.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjdubah}(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]j)}(hjh]hsliced}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjsliceduh1hhhhMhjubh.}(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&]uh1hhhhMhj# ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h8h]h8}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjC ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h6Buffer for video output overlay (OSD), see :ref:`osd`.h](h+Buffer for video output overlay (OSD), see }(hj] hhhNhNubh)}(h :ref:`osd`h]j)}(hjg h]hosd}(hji hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhje ubah}(h]h ]h"]h$]h&]refdoch refdomainjs reftyperef refexplicitrefwarnjosduh1hhhhMhj] ubh.}(hj] hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjZ ubah}(h]h ]h"]h$]h&]uh1j hj 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]j)}(hj#h]hmmap}(hj!#hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdoch refdomainj+#reftyperef refexplicitrefwarnjmmapuh1hhhhMhj#ubh6 for details. Drivers set or clear this flag when the }(hj#hhhNhNubh)}(h:ref:`VIDIOC_QUERYBUF`h]j)}(hjC#h]hVIDIOC_QUERYBUF}(hjE#hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjA#ubah}(h]h ]h"]h$]h&]refdoch refdomainjO#reftyperef refexplicitrefwarnjvidioc_querybufuh1hhhhMhj#ubh, }(hj#hhhNhNubh)}(h:ref:`VIDIOC_QBUF`h]j)}(hjg#h]h VIDIOC_QBUF}(hji#hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhje#ubah}(h]h ]h"]h$]h&]refdoch refdomainjs#reftyperef refexplicitrefwarnj vidioc_qbufuh1hhhhMhj#ubh or }(hj#hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j)}(hj#h]h VIDIOC_DQBUF}(hj#hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]refdoch 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&]hv4l2-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}(hj8$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj $ubh always cleared.}(hj $hhhNhNubeh}(h]j$ah ]h"]v4l2-buf-flag-queuedah$]h&]uh1hhhhMhj $j#}jN$j#sj#}j$j#subeh}(h]h ]h"]h$]h&]uh1j hj#ububh)}(h``V4L2_BUF_FLAG_QUEUED``h]h)}(hj[$h]hV4L2_BUF_FLAG_QUEUED}(hj]$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY$ubah}(h]h ]h"]h$]h&]uh1hhhhMhj#ubeh}(h]h ]h"]h$]h&]uh1j hj#ubj )}(hhh](j#h)}(h 0x00000002h]h 0x00000002}(hjy$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjv$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&]hv4l2-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}(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 0x00000004h]h 0x00000004}(hj8%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj5%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&]hv4l2-buf-flag-erroruh1hhMhj )}(hhh](jX%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 }(hjf%hhhNhNubh)}(h``VIDIOC_DQBUF``h]h VIDIOC_DQBUF}(hjn%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf%ubh ioctl is called.}(hjf%hhhNhNubeh}(h]jb%ah ]h"]v4l2-buf-flag-errorah$]h&]uh1hhhhMhjc%j#}j%jX%sj#}jb%jX%subeh}(h]h ]h"]h$]h&]uh1j hjR%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&]uh1hhhhMhjU%ubeh}(h]h ]h"]h$]h&]uh1j hjR%ubj )}(hhh](jX%h)}(h 0x00000040h]h 0x00000040}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubeh}(h]h ]h"]h$]h&]uh1j hjR%ubjc%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&]hv4l2-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&]hv4l2-buf-flag-keyframeuh1hhMhj )}(hhh](j4&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 }(hjB&hhhNhNubh)}(h``VIDIOC_DQBUF``h]h VIDIOC_DQBUF}(hjJ&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB&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 }(hjB&hhhNhNubh)}(h``type``h]htype}(hj\&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB&ubh refers to an output stream.}(hjB&hhhNhNubeh}(h]j>&ah ]h"]v4l2-buf-flag-keyframeah$]h&]uh1hhhhMhj?&j#}jr&j4&sj#}j>&j4&subeh}(h]h ]h"]h$]h&]uh1j hj.&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&]uh1hhhhMhj1&ubeh}(h]h ]h"]h$]h&]uh1j hj.&ubj )}(hhh](j4&h)}(h 0x00000008h]h 0x00000008}(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-PFRAME`:h]h}(h]h ]h"]h$]h&]hv4l2-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 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-BFRAME`:h]h}(h]h ]h"]h$]h&]hv4l2-buf-flag-bframeuh1hhMhj )}(hhh](jF'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 }(hjT'hhhNhNubh)}(h``V4L2_BUF_FLAG_KEYFRAME``h]hV4L2_BUF_FLAG_KEYFRAME}(hj\'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT'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 }(hjT'hhhNhNubh)}(h``type``h]htype}(hjn'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT'ubh refers to an output stream.}(hjT'hhhNhNubeh}(h]jP'ah ]h"]v4l2-buf-flag-bframeah$]h&]uh1hhhhMhjQ'j#}j'jF'sj#}jP'jF'subeh}(h]h ]h"]h$]h&]uh1j hj@'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&]uh1hhhhMhjC'ubeh}(h]h ]h"]h$]h&]uh1j hj@'ubj )}(hhh](jF'h)}(h 0x00000020h]h 0x00000020}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubeh}(h]h ]h"]h$]h&]uh1j hj@'ubjQ'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&]hv4l2-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#}j1(j'sj#}j'j'subeh}(h]h ]h"]h$]h&]uh1j hj'ububh)}(h``V4L2_BUF_FLAG_TIMECODE``h]h)}(hj>(h]hV4L2_BUF_FLAG_TIMECODE}(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 0x00000100h]h 0x00000100}(hj\(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjY(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&]hv4l2-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]j)}(hj(h]hVIDIOC_QUERYBUF}(hj(hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdoch refdomainj(reftyperef refexplicitrefwarnjvidioc_querybufuh1hhhhM&hj(ubh, }(hj(hhhNhNubh)}(h':ref:`VIDIOC_PREPARE_BUF `h]j)}(hj(h]hVIDIOC_PREPARE_BUF}(hj(hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdoch refdomainj(reftyperef refexplicitrefwarnj vidioc_qbufuh1hhhhM&hj(ubh, }hj(sbh)}(h :ref:`VIDIOC_QBUF `h]j)}(hj(h]h VIDIOC_QBUF}(hj(hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdoch refdomainj(reftyperef refexplicitrefwarnj vidioc_qbufuh1hhhhM&hj(ubh or }(hj(hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j)}(hj)h]h VIDIOC_DQBUF}(hj)hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]refdoch 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 hjv(ububh)}(h``V4L2_BUF_FLAG_PREPARED``h]h)}(hj3)h]hV4L2_BUF_FLAG_PREPARED}(hj5)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1)ubah}(h]h ]h"]h$]h&]uh1hhhhM$hjy(ubeh}(h]h ]h"]h$]h&]uh1j hjv(ubj )}(hhh](j|(h)}(h 0x00000400h]h 0x00000400}(hjQ)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM%hjN)ubeh}(h]h ]h"]h$]h&]uh1j hjv(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](jq)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]j)}(hj)h]hmemory mapping}(hj)hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdoch refdomainj)reftyperef refexplicitrefwarnjmmapuh1hhhhM0hj)ubh streaming I/O and reports }(hj)hhhNhNubh)}(hV:ref:`V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS `h]j)}(hj)h]h&V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS}(hj)hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdoch 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)jq)sj#}j{)jq)subeh}(h]h ]h"]h$]h&]uh1j hjk)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.hjn)ubeh}(h]h ]h"]h$]h&]uh1j hjk)ubj )}(hhh](jq)h)}(h 0x00000800h]h 0x00000800}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM/hj)ubeh}(h]h ]h"]h$]h&]uh1j hjk)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&]hv4l2-buf-flag-no-cache-cleanuh1hhM8hj )}(hhh](j*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]j)}(hj6*h]hmemory mapping}(hj8*hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj4*ubah}(h]h ]h"]h$]h&]refdoch refdomainjB*reftyperef refexplicitrefwarnjmmapuh1hhhhM<hj,*ubh streaming I/O and reports }(hj,*hhhNhNubh)}(hV:ref:`V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS `h]j)}(hjZ*h]h&V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS}(hj\*hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjX*ubah}(h]h ]h"]h$]h&]refdoch refdomainjf*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*j*sj#}j(*j*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](j*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 ](hhc-typeeh"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_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&]uh1hhj%+ubah}(h]h ]h"]h$]h&]uh1hhhhMEhj*ubeh}(h]h ]h"]h$]h&]uh1j hj*ubj )}(hhh](j*h)}(h 0x00000200h]h 0x00000200}(hjE+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMFhjB+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&]hv4l2-buf-flag-lastuh1hhMPhj )}(hhh](je+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 }(hjs+hhhNhNubh)}(h:ref:`VIDIOC_QUERYBUF`h]j)}(hj}+h]hVIDIOC_QUERYBUF}(hj+hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj{+ubah}(h]h ]h"]h$]h&]refdoch refdomainj+reftyperef refexplicitrefwarnjvidioc_querybufuh1hhhhMThjs+ubh or }(hjs+hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j)}(hj+h]h VIDIOC_DQBUF}(hj+hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdoch refdomainj+reftyperef refexplicitrefwarnj vidioc_qbufuh1hhhhMThjs+ubhr ioctl is called. Due to hardware limitations, the last buffer may be empty. In this case the driver will set the }(hjs+hhhNhNubh)}(h ``bytesused``h]h bytesused}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs+ubhB field to 0, regardless of the format. Any subsequent call to the }(hjs+hhhNhNubh)}(h!:ref:`VIDIOC_DQBUF `h]j)}(hj+h]h VIDIOC_DQBUF}(hj+hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]refdoch refdomainj+reftyperef refexplicitrefwarnj vidioc_qbufuh1hhhhMThjs+ubh- ioctl will not block anymore, but return an }(hjs+hhhNhNubh)}(h ``EPIPE``h]hEPIPE}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs+ubh error code.}(hjs+hhhNhNubeh}(h]jo+ah ]h"]v4l2-buf-flag-lastah$]h&]uh1hhhhMThjp+j#}j,je+sj#}jo+je+subeh}(h]h ]h"]h$]h&]uh1j hj_+ububh)}(h``V4L2_BUF_FLAG_LAST``h]h)}(hj,h]hV4L2_BUF_FLAG_LAST}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]uh1hhhhMRhjb+ubeh}(h]h ]h"]h$]h&]uh1j hj_+ubj )}(hhh](je+h)}(h 0x00100000h]h 0x00100000}(hj:,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShj7,ubeh}(h]h ]h"]h$]h&]uh1j hj_+ubjp+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&]hv4l2-buf-flag-request-fduh1hhM]hj )}(hhh](jZ,h)}(h:The ``request_fd`` field contains a valid file descriptor.h](hThe }(hjh,hhhNhNubh)}(h``request_fd``h]h request_fd}(hjp,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh,ubh( field contains a valid file descriptor.}(hjh,hhhNhNubeh}(h]jd,ah ]h"]v4l2-buf-flag-request-fdah$]h&]uh1hhhhMahje,j#}j,jZ,sj#}jd,jZ,subeh}(h]h ]h"]h$]h&]uh1j hjT,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_hjW,ubeh}(h]h ]h"]h$]h&]uh1j hjT,ubj )}(hhh](jZ,h)}(h 0x00800000h]h 0x00800000}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM`hj,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-TIMESTAMP-MASK`:h]h}(h]h ]h"]h$]h&]hv4l2-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&]hv4l2-buf-flag-timestamp-unknownuh1hhMihj )}(hhh](j6-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 }(hjD-hhhNhNubh)}(h:c:func:`clock_gettime`h]h)}(hjN-h]hclock_gettime()}(hjP-hhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhjL-ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjj clock_gettimeuh1hhhhMmhjD-ubh using clock IDs }(hjD-hhhNhNubh)}(h``CLOCK_MONOTONIC``h]hCLOCK_MONOTONIC}(hjo-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD-ubh and }(hjD-hhhNhNubh)}(h``CLOCK_REALTIME``h]hCLOCK_REALTIME}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD-ubh, respectively.}(hjD-hhhNhNubeh}(h]j@-ah ]h"]v4l2-buf-flag-timestamp-unknownah$]h&]uh1hhhhMmhjA-j#}j-j6-sj#}j@-j6-subeh}(h]h ]h"]h$]h&]uh1j hj0-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&]uh1hhhhMkhj3-ubeh}(h]h ]h"]h$]h&]uh1j hj0-ubj )}(hhh](j6-h)}(h 0x00000000h]h 0x00000000}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhj-ubeh}(h]h ]h"]h$]h&]uh1j hj0-ubjA-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 ](hhc-funceh"]h$]h&]uh1hhj .ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjjj clock_gettimeuh1hhhhMxhj-ubh.}(hj-hhhNhNubeh}(h]j-ah ]h"]!v4l2-buf-flag-timestamp-monotonicah$]h&]uh1hhhhMxhj-j#}j1.j-sj#}j-j-subeh}(h]h ]h"]h$]h&]uh1j hj-ububh)}(h%``V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC``h]h)}(hj>.h]h!V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC}(hj@.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<.ubah}(h]h ]h"]h$]h&]uh1hhhhMvhj-ubeh}(h]h ]h"]h$]h&]uh1j hj-ubj )}(hhh](j-h)}(h 0x00002000h]h 0x00002000}(hj\.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjY.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&]hv4l2-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 hjv.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}hjy.ubeh}(h]h ]h"]h$]h&]uh1j hjv.ubj )}(hhh](j|.h)}(h 0x00004000h]h 0x00004000}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hj.ubeh}(h]h ]h"]h$]h&]uh1j hjv.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&]hv4l2-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}(hj-/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#}jC/j.sj#}j.j.subeh}(h]h ]h"]h$]h&]uh1j hj.ububh)}(h!``V4L2_BUF_FLAG_TSTAMP_SRC_MASK``h]h)}(hjP/h]hV4L2_BUF_FLAG_TSTAMP_SRC_MASK}(hjR/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN/ubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubeh}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh](j.h)}(h 0x00070000h]h 0x00070000}(hjn/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjk/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&]hv4l2-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&]hv4l2-buf-flag-tstamp-src-soeuh1hhMhj )}(hhh](j/h)}(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}(hj 0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubh buffer type.}(hj0hhhNhNubeh}(h]j/ah ]h"]v4l2-buf-flag-tstamp-src-soeah$]h&]uh1hhhhMhj/j#}j0j/sj#}j/j/subeh}(h]h ]h"]h$]h&]uh1j hj/ububh)}(h ``V4L2_BUF_FLAG_TSTAMP_SRC_SOE``h]h)}(hj,0h]hV4L2_BUF_FLAG_TSTAMP_SRC_SOE}(hj.0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*0ubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubeh}(h]h ]h"]h$]h&]uh1j hj/ubj )}(hhh](j/h)}(h 0x00010000h]h 0x00010000}(hjJ0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjG0ubeh}(h]h ]h"]h$]h&]uh1j hj/ubj/eh}(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&]uh1ji hj"hhhNhNubj")}(h \normalsizeh]h \normalsize}hjx0sbah}(h]h ]h"]h$]h&]formatlatexhhuh1j"hhhMhj"hhubeh}(h](j"id1eh ]h"]( buffer flags buffer-flagseh$]h&]uh1hhhhhhhhMj#}j0j"sj#}j"j"subh)}(hhh](h)}(henum v4l2_memoryh]henum v4l2_memory}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hhhhhMubj] )}(hhh]h}(h]h ]h"]h$]h&]jg |p{5.0cm}|p{0.8cm}|p{11.5cm}|uh1j\ hhhMhj0hhubjj )}(hhh]j} )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj0ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj0ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj0ubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h``V4L2_MEMORY_MMAP``h]h)}(hj0h]hV4L2_MEMORY_MMAP}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh]h)}(hjh]h1}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh]h)}(h8The buffer is used for :ref:`memory mapping ` I/O.h](hThe buffer is used for }(hj1hhhNhNubh)}(h:ref:`memory mapping `h]j)}(hj1h]hmemory mapping}(hj1hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdoch refdomainj'1reftyperef refexplicitrefwarnjmmapuh1hhhhMhj1ubh I/O.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j )}(hhh]h)}(h``V4L2_MEMORY_USERPTR``h]h)}(hjW1h]hV4L2_MEMORY_USERPTR}(hjY1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU1ubah}(h]h ]h"]h$]h&]uh1hhhhMhjR1ubah}(h]h ]h"]h$]h&]uh1j hjO1ubj )}(hhh]h)}(hjh]h2}(hju1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjr1ubah}(h]h ]h"]h$]h&]uh1j hjO1ubj )}(hhh]h)}(h7The buffer is used for :ref:`user pointer ` I/O.h](hThe buffer is used for }(hj1hhhNhNubh)}(h:ref:`user pointer `h]j)}(hj1h]h user pointer}(hj1hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdoch refdomainj1reftyperef refexplicitrefwarnjuserpuh1hhhhMhj1ubh I/O.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hjO1ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j )}(hhh]h)}(h``V4L2_MEMORY_OVERLAY``h]h)}(hj1h]hV4L2_MEMORY_OVERLAY}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hj1ubj )}(hhh]h)}(hjh]h3}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubah}(h]h ]h"]h$]h&]uh1j hj1ubj )}(hhh]h)}(h[to do]h]h[to do]}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2ubah}(h]h ]h"]h$]h&]uh1j hj1ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j )}(hhh]h)}(h``V4L2_MEMORY_DMABUF``h]h)}(hj'2h]hV4L2_MEMORY_DMABUF}(hj)2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%2ubah}(h]h ]h"]h$]h&]uh1hhhhMhj"2ubah}(h]h ]h"]h$]h&]uh1j hj2ubj )}(hhh]h)}(hj\h]h4}(hjE2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjB2ubah}(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 }(hj[2hhhNhNubh)}(h!:ref:`DMA shared buffer `h]j)}(hje2h]hDMA shared buffer}(hjg2hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjc2ubah}(h]h ]h"]h$]h&]refdoch refdomainjq2reftyperef refexplicitrefwarnjdmabufuh1hhhhMhj[2ubh I/O.}(hj[2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjX2ubah}(h]h ]h"]h$]h&]uh1j hj2ubeh}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]colsKuh1j| hj0ubah}(h]h ]h"]h$]h&]uh1ji hj0hhhNhNubj")}(h \normalsizeh]h \normalsize}hj2sbah}(h]h ]h"]h$]h&]formatlatexhhuh1j"hhhMhj0hhubeh}(h]enum-v4l2-memoryah ]h"]enum v4l2_memoryah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h Timecodesh]h Timecodes}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hhhhhMubh)}(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 }(hj2hhhNhNubh)}(h:c:type:`v4l2_buffer_timecode`h]h)}(hj2h]hv4l2_buffer_timecode}(hj2hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjv4l2_buffer_timecodeuh1hhhhMhj2ubh! structure is designed to hold a }(hj2hhhNhNubh)}(h:ref:`smpte12m`h]j)}(hj3h]hsmpte12m}(hj3hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdoch refdomainj3reftyperef refexplicitrefwarnjsmpte12muh1hhhhMhj2ubh or similar timecode. (struct }(hj2hhhNhNubh)}(h:c:type:`timeval`h]h)}(hj&3h]htimeval}(hj(3hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhj$3ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjjtimevaluh1hhhhMhj2ubh% timestamps are stored in the struct }(hj2hhhNhNubh)}(h:c:type:`v4l2_buffer`h]h)}(hjI3h]h v4l2_buffer}(hjK3hhhNhNubah}(h]h ](hhc-typeeh"]h$]h&]uh1hhjG3ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypetype refexplicitrefwarnjjj v4l2_bufferuh1hhhhMhj2ubh }(hj2hhhNhNubh)}(h ``timestamp``h]h timestamp}(hjj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubh field.)}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj2hhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jV4L.v4l2_timecode (C type)c.V4L.v4l2_timecodehNtauh1jhj2hhhNhNubj)}(hhh](j)}(h v4l2_timecodeh]j)}(htype v4l2_timecodeh](j)}(hjh]htype}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhhhMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhhhMubj)}(h v4l2_timecodeh]j )}(hj3h]h v4l2_timecode}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj3ubah}(h]h ](j j eh"]h$]h&]hhuh1jhj3hhhhhMubeh}(h]h ]h"]h$]h&]hhj uh1jj j hj3hhhhhMubah}(h]j3ah ](j# j$ eh"]h$]h&]j( j) )j* huh1jhhhMhj3hhubj, )}(hhh]h}(h]h ]h"]h$]h&]uh1j+ hj3hhhhhMubeh}(h]h ](htypeeh"]h$]h&]j= hj> j3j? j3j@ jA jB uh1jhhhj2hNhNubh)}(hhh](h)}(hstruct v4l2_timecodeh]hstruct v4l2_timecode}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hhhhhMubj] )}(hhh]h}(h]h ]h"]h$]h&]jg |p{1.4cm}|p{2.8cm}|p{13.1cm}|uh1j\ hhhMhj3hhubjj )}(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}(hj14hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.4ubah}(h]h ]h"]h$]h&]uh1j hj+4ubj )}(hhh]h)}(h``type``h]h)}(hjJ4h]htype}(hjL4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH4ubah}(h]h ]h"]h$]h&]uh1hhhhMhjE4ubah}(h]h ]h"]h$]h&]uh1j hj+4ubj )}(hhh]h)}(h@Frame rate the timecodes are based on, see :ref:`timecode-type`.h](h+Frame rate the timecodes are based on, see }(hjh4hhhNhNubh)}(h:ref:`timecode-type`h]j)}(hjr4h]h timecode-type}(hjt4hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhjp4ubah}(h]h ]h"]h$]h&]refdoch refdomainj~4reftyperef refexplicitrefwarnj timecode-typeuh1hhhhMhjh4ubh.}(hjh4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhje4ubah}(h]h ]h"]h$]h&]uh1j hj+4ubeh}(h]h ]h"]h$]h&]uh1j hj(4ubj )}(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 ``flags``h]h)}(hj4h]hflags}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1j hj4ubj )}(hhh]h)}(h*Timecode flags, see :ref:`timecode-flags`.h](hTimecode flags, see }(hj4hhhNhNubh)}(h:ref:`timecode-flags`h]j)}(hj4h]htimecode-flags}(hj4hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdoch refdomainj4reftyperef refexplicitrefwarnjtimecode-flagsuh1hhhhMhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]uh1j hj(4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hj'5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$5ubah}(h]h ]h"]h$]h&]uh1j hj!5ubj )}(hhh]h)}(h ``frames``h]h)}(hj@5h]hframes}(hjB5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>5ubah}(h]h ]h"]h$]h&]uh1hhhhMhj;5ubah}(h]h ]h"]h$]h&]uh1j hj!5ubj )}(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.}(hj^5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj[5ubah}(h]h ]h"]h$]h&]uh1j hj!5ubeh}(h]h ]h"]h$]h&]uh1j hj(4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hj~5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj{5ubah}(h]h ]h"]h$]h&]uh1j hjx5ubj )}(hhh]h)}(h ``seconds``h]h)}(hj5h]hseconds}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubah}(h]h ]h"]h$]h&]uh1j hjx5ubj )}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubah}(h]h ]h"]h$]h&]uh1j hjx5ubeh}(h]h ]h"]h$]h&]uh1j hj(4ubj )}(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 ``minutes``h]h)}(hj5h]hminutes}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1hhhhMhj5ubah}(h]h ]h"]h$]h&]uh1j hj5ubj )}(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.}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj 6ubah}(h]h ]h"]h$]h&]uh1j hj5ubeh}(h]h ]h"]h$]h&]uh1j hj(4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hj,6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)6ubah}(h]h ]h"]h$]h&]uh1j hj&6ubj )}(hhh]h)}(h ``hours``h]h)}(hjE6h]hhours}(hjG6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC6ubah}(h]h ]h"]h$]h&]uh1hhhhMhj@6ubah}(h]h ]h"]h$]h&]uh1j hj&6ubj )}(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.}(hjc6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj`6ubah}(h]h ]h"]h$]h&]uh1j hj&6ubeh}(h]h ]h"]h$]h&]uh1j hj(4ubj )}(hhh](j )}(hhh]h)}(h__u8h]h__u8}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hj}6ubj )}(hhh]h)}(h``userbits``\ [4]h](h)}(h ``userbits``h]huserbits}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubh [4]}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hj}6ubj )}(hhh]h)}(h(The "user group" bits from the timecode.h]h,The “user group” bits from the timecode.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj6ubah}(h]h ]h"]h$]h&]uh1j hj}6ubeh}(h]h ]h"]h$]h&]uh1j hj(4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ]h"]h$]h&]colsKuh1j| hj4ubah}(h]h ]h"]h$]h&]uh1ji hj3hhhNhNubh)}(h.. _timecode-type:h]h}(h]h ]h"]h$]h&]h timecode-typeuh1hhMhj3hhhhubeh}(h]struct-v4l2-timecodeah ]h"]struct v4l2_timecodeah$]h&]uh1hhj2hhhhhMubh)}(hhh](h)}(hTimecode Typesh]hTimecode Types}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hhhhhMubjj )}(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)}(hj?7h]hV4L2_TC_TYPE_24FPS}(hjA7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=7ubah}(h]h ]h"]h$]h&]uh1hhhhMhj:7ubah}(h]h ]h"]h$]h&]uh1j hj77ubj )}(hhh]h)}(hjh]h1}(hj]7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjZ7ubah}(h]h ]h"]h$]h&]uh1j hj77ubj )}(hhh]h)}(h!24 frames per second, i. e. film.h]h!24 frames per second, i. e. film.}(hjs7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjp7ubah}(h]h ]h"]h$]h&]uh1j hj77ubeh}(h]h ]h"]h$]h&]uh1j hj47ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_25FPS``h]h)}(hj7h]hV4L2_TC_TYPE_25FPS}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh]h)}(hjh]h2}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj7ubj )}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1j hj47ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_30FPS``h]h)}(hj7h]hV4L2_TC_TYPE_30FPS}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh]h)}(hjh]h3}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj8ubah}(h]h ]h"]h$]h&]uh1j hj7ubj )}(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 hj7ubeh}(h]h ]h"]h$]h&]uh1j hj47ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_50FPS``h]h)}(hjA8h]hV4L2_TC_TYPE_50FPS}(hjC8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?8ubah}(h]h ]h"]h$]h&]uh1hhhhMhj<8ubah}(h]h ]h"]h$]h&]uh1j hj98ubj )}(hhh]h)}(hj\h]h4}(hj_8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj\8ubah}(h]h ]h"]h$]h&]uh1j hj98ubj )}(hhh]h}(h]h ]h"]h$]h&]uh1j hj98ubeh}(h]h ]h"]h$]h&]uh1j hj47ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_TYPE_60FPS``h]h)}(hj8h]hV4L2_TC_TYPE_60FPS}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1hhhhMhj8ubah}(h]h ]h"]h$]h&]uh1j hj8ubj )}(hhh]h)}(hjh]h5}(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 hj47ubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]colsKuh1j| hj7ubah}(h]h ]h"]h$]h&]uh1ji hj6hhhNhNubh)}(h.. _timecode-flags:h]h}(h]h ]h"]h$]h&]htimecode-flagsuh1hhMhj6hhhhubeh}(h](timecode-typesj6eh ]h"](timecode types timecode-typeeh$]h&]uh1hhj2hhhhhMj#}j8j6sj#}j6j6subh)}(hhh](h)}(hTimecode Flagsh]hTimecode Flags}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hhhhhMubj] )}(hhh]h}(h]h ]h"]h$]h&]jg |p{6.6cm}|p{1.4cm}|p{9.3cm}|uh1j\ hhhM hj8hhubjj )}(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)}(hj<9h]hV4L2_TC_FLAG_DROPFRAME}(hj>9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:9ubah}(h]h ]h"]h$]h&]uh1hhhhMhj79ubah}(h]h ]h"]h$]h&]uh1j hj49ubj )}(hhh]h)}(h0x0001h]h0x0001}(hjZ9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjW9ubah}(h]h ]h"]h$]h&]uh1j hj49ubj )}(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.}(hjq9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjn9ubah}(h]h ]h"]h$]h&]uh1j hj49ubeh}(h]h ]h"]h$]h&]uh1j hj19ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_FLAG_COLORFRAME``h]h)}(hj9h]hV4L2_TC_FLAG_COLORFRAME}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh]h)}(h0x0002h]h0x0002}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh]h)}(hThe "color frame" flag.h]hThe “color frame” flag.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]uh1j hj19ubj )}(hhh](j )}(hhh]h)}(h``V4L2_TC_USERBITS_field``h]h)}(hj9h]hV4L2_TC_USERBITS_field}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubj )}(hhh]h)}(h0x000Ch]h0x000C}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j hj9ubj )}(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 hj9ubeh}(h]h ]h"]h$]h&]uh1j hj19ubj )}(hhh](j )}(hhh]h)}(h ``V4L2_TC_USERBITS_USERDEFINED``h]h)}(hjA:h]hV4L2_TC_USERBITS_USERDEFINED}(hjC:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?:ubah}(h]h ]h"]h$]h&]uh1hhhhMhj<:ubah}(h]h ]h"]h$]h&]uh1j hj9:ubj )}(hhh]h)}(h0x0000h]h0x0000}(hj_:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj\:ubah}(h]h ]h"]h$]h&]uh1j hj9:ubj )}(hhh]h)}(hUnspecified format.h]hUnspecified format.}(hjv:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjs:ubah}(h]h ]h"]h$]h&]uh1j hj9:ubeh}(h]h ]h"]h$]h&]uh1j hj19ubj )}(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&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh]h)}(h0x0008h]h0x0008}(hj: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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hj:ubah}(h]h ]h"]h$]h&]uh1j hj:ubeh}(h]h ]h"]h$]h&]uh1j hj19ubeh}(h]h ]h"]h$]h&]uh1j hj9ubeh}(h]h ]h"]h$]h&]colsKuh1j| hj 9ubah}(h]h ]h"]h$]h&]uh1ji hj8hhhNhNubeh}(h](j8id2eh ]h"](timecode flagstimecode-flagseh$]h&]uh1hhj2hhhhhMj#}j;j8sj#}j8j8subeh}(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_sourceh _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$ajb%]jX%aj%]j%aj>&]j4&aj&]j&ajP']jF'aj']j'aj(]j|(aj{)]jq)aj(*]j*aj*]j*ajo+]je+ajd,]jZ,aj,]j,aj@-]j6-aj-]j-aj.]j|.aj.]j.aj/]j/aj/]j/aj6]j6aj8]j8aunameids}(j;hj;j;jH jE jjjjj"j"j0j"j0j0j#j#jN$j$j %j$j%jb%j%j%jr&j>&j&j&j'jP'j1(j'j&)j(j)j{)j*j(*j+j*j,jo+j,jd,j,j,j-j@-j1.j-j.j.jC/j.j/j/j0j/j2j2j ;j;j6j6j8j6j8j8j;j8j:j:u nametypes}(j;j;jH jjj"j0j0j#jN$j %j%j%jr&j&j'j1(j&)j)j*j+j,j,j,j-j1.j.jC/j/j0j2j ;j6j8j8j;j:uh}(hhj;hjE jjjjjK jujzjjj'j,j"jj"j"j0j"j#j#j$j $j$j$jb%jf%j%j%j>&jB&j&j&jP'jT'j'j'j(j(j{)j)j(*j,*j*j*jo+js+jd,jh,j,j,j@-jD-j-j-j.j.j.j.j/j/j/j0j2j0j;j2j3j3j6j3j6j6j8j6j8j8j:j8jcjk u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jH;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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]levelKtypeINFOlineMsourcehuh1j;hjubj;)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]levelKtypej;lineMisourcehuh1j;hjubetransform_messages](j;)}(hhh]h)}(hhh]h,Hyperlink target "buffer" is not referenced.}hj;sbah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]levelKtypej;sourcehlineKuh1j;ubj;)}(hhh]h)}(hhh]h2Hyperlink target "buffer-flags" is not referenced.}hj<sbah}(h]h ]h"]h$]h&]uh1hhj <ubah}(h]h ]h"]h$]h&]levelKtypej;sourcehlineMuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-mapped" is not referenced.}hjB<sbah}(h]h ]h"]h$]h&]uh1hhj?<ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-mapped" is not referenced.}hj\<sbah}(h]h ]h"]h$]h&]uh1hhjY<ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-queued" is not referenced.}hjv<sbah}(h]h ]h"]h$]h&]uh1hhjs<ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]h9Hyperlink target "v4l2-buf-flag-error" is not referenced.}hjF=sbah}(h]h ]h"]h$]h&]uh1hhjC=ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]h>Hyperlink target "v4l2-buf-flag-in-request" is not referenced.}hjz=sbah}(h]h ]h"]h$]h&]uh1hhjw=ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]hsbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypej;lineM sourcehuh1j;ubj;)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-pframe" is not referenced.}hj0>sbah}(h]h ]h"]h$]h&]uh1hhj->ubah}(h]h ]h"]h$]h&]levelKtypej;lineM sourcehuh1j;ubj;)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-bframe" is not referenced.}hjJ>sbah}(h]h ]h"]h$]h&]uh1hhjG>ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]h:Hyperlink target "v4l2-buf-flag-bframe" is not referenced.}hjd>sbah}(h]h ]h"]h$]h&]uh1hhja>ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(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&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]hsbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]hsbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]hsbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypej;lineMsourcehuh1j;ubj;)}(hhh]h)}(hhh]hsbah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]levelKtypej;lineM"sourcehuh1j;ubj;)}(hhh]h)}(hhh]hubah}(h]h ]h"]h$]h&]levelKtypej;lineM"sourcehuh1j;ubj;)}(hhh]h)}(hhh]hHyperlink target "v4l2-buf-flag-request-fd" is not referenced.}hjl@sbah}(h]h ]h"]h$]h&]uh1hhji@ubah}(h]h ]h"]h$]h&]levelKtypej;lineM]sourcehuh1j;ubj;)}(hhh]h)}(hhh]h>Hyperlink target "v4l2-buf-flag-request-fd" is not referenced.}hj@sbah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]levelKtypej;lineM]sourcehuh1j;ubj;)}(hhh]h)}(hhh]h>Hyperlink target "v4l2-buf-flag-request-fd" is not referenced.}hj@sbah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]levelKtypej;lineM]sourcehuh1j;ubj;)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-mask" is not referenced.}hj@sbah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]levelKtypej;lineMbsourcehuh1j;ubj;)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-mask" is not referenced.}hj@sbah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]levelKtypej;lineMbsourcehuh1j;ubj;)}(hhh]h)}(hhh]hBHyperlink target "v4l2-buf-flag-timestamp-mask" is not referenced.}hj@sbah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]levelKtypej;lineMbsourcehuh1j;ubj;)}(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&]levelKtypej;lineMisourcehuh1j;ubj;)}(hhh]h)}(hhh]hEHyperlink target "v4l2-buf-flag-timestamp-unknown" is not referenced.}hj"Asbah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]levelKtypej;lineMisourcehuh1j;ubj;)}(hhh]h)}(hhh]hEHyperlink target "v4l2-buf-flag-timestamp-unknown" is not referenced.}hj