0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002
0003 .. _common:
0004
0005 ###################
0006 Common API Elements
0007 ###################
0008 Programming a V4L2 device consists of these steps:
0009
0010 - Opening the device
0011
0012 - Changing device properties, selecting a video and audio input, video
0013 standard, picture brightness a. o.
0014
0015 - Negotiating a data format
0016
0017 - Negotiating an input/output method
0018
0019 - The actual input/output loop
0020
0021 - Closing the device
0022
0023 In practice most steps are optional and can be executed out of order. It
0024 depends on the V4L2 device type, you can read about the details in
0025 :ref:`devices`. In this chapter we will discuss the basic concepts
0026 applicable to all devices.
0027
0028
0029 .. toctree::
0030 :maxdepth: 1
0031
0032 open
0033 querycap
0034 app-pri
0035 video
0036 audio
0037 tuner
0038 standard
0039 dv-timings
0040 control
0041 extended-controls
0042 ext-ctrls-camera
0043 ext-ctrls-flash
0044 ext-ctrls-image-source
0045 ext-ctrls-image-process
0046 ext-ctrls-codec
0047 ext-ctrls-codec-stateless
0048 ext-ctrls-jpeg
0049 ext-ctrls-dv
0050 ext-ctrls-rf-tuner
0051 ext-ctrls-fm-tx
0052 ext-ctrls-fm-rx
0053 ext-ctrls-detect
0054 ext-ctrls-colorimetry
0055 fourcc
0056 format
0057 planar-apis
0058 selection-api
0059 crop
0060 streaming-par