61 lines · plain
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later2 3.. _common:4 5###################6Common API Elements7###################8Programming a V4L2 device consists of these steps:9 10- Opening the device11 12- Changing device properties, selecting a video and audio input, video13 standard, picture brightness a. o.14 15- Negotiating a data format16 17- Negotiating an input/output method18 19- The actual input/output loop20 21- Closing the device22 23In practice most steps are optional and can be executed out of order. It24depends on the V4L2 device type, you can read about the details in25:ref:`devices`. In this chapter we will discuss the basic concepts26applicable to all devices.27 28 29.. toctree::30 :maxdepth: 131 32 open33 querycap34 app-pri35 video36 audio37 tuner38 standard39 dv-timings40 control41 extended-controls42 ext-ctrls-camera43 ext-ctrls-flash44 ext-ctrls-image-source45 ext-ctrls-image-process46 ext-ctrls-codec47 ext-ctrls-codec-stateless48 ext-ctrls-jpeg49 ext-ctrls-dv50 ext-ctrls-rf-tuner51 ext-ctrls-fm-tx52 ext-ctrls-fm-rx53 ext-ctrls-detect54 ext-ctrls-colorimetry55 fourcc56 format57 planar-apis58 selection-api59 crop60 streaming-par61