Lines Matching +full:c +full:- +full:define +full:- +full:name
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: V4L
10 Name chapter
13 VIDIOC_ENUMSTD - VIDIOC_SUBDEV_ENUMSTD - Enumerate supported video standards
18 .. c:macro:: VIDIOC_ENUMSTD
22 .. c:macro:: VIDIOC_SUBDEV_ENUMSTD
30 File descriptor returned by :c:func:`open()`.
33 Pointer to struct :c:type:`v4l2_standard`.
40 :c:type:`v4l2_standard` and call the :ref:`VIDIOC_ENUMSTD`
48 .. c:type:: v4l2_standard
52 .. flat-table:: struct v4l2_standard
53 :header-rows: 0
54 :stub-columns: 0
57 * - __u32
58 - ``index``
59 - Number of the video standard, set by the application.
60 * - :ref:`v4l2_std_id <v4l2-std-id>`
61 - ``id``
62 - The bits in this field identify the standard as one of the common
63 standards listed in :ref:`v4l2-std-id`, or if bits 32 to 63 are
67 No other enumerated struct :c:type:`v4l2_standard` structure,
69 * - __u8
70 - ``name``\ [24]
71 - Name of the standard, a NUL-terminated ASCII string, for example:
72 "PAL-B/G", "NTSC Japan". This information is intended for the
74 * - struct :c:type:`v4l2_fract`
75 - ``frameperiod``
76 - The frame period (not field period) is numerator / denominator.
78 * - __u32
79 - ``framelines``
80 - Total lines per frame including blanking, e. g. 625 for B/PAL.
81 * - __u32
82 - ``reserved``\ [4]
83 - Reserved for future extensions. Drivers must set the array to
87 .. c:type:: v4l2_fract
91 .. flat-table:: struct v4l2_fract
92 :header-rows: 0
93 :stub-columns: 0
96 * - __u32
97 - ``numerator``
98 -
99 * - __u32
100 - ``denominator``
101 -
105 .. _v4l2-std-id:
107 .. flat-table:: typedef v4l2_std_id
108 :header-rows: 0
109 :stub-columns: 0
112 * - __u64
113 - ``v4l2_std_id``
114 - This type is a set, each bit representing another video standard
115 as listed below and in :ref:`video-standards`. The 32 most
120 .. code-block:: c
122 #define V4L2_STD_PAL_B ((v4l2_std_id)0x00000001)
123 #define V4L2_STD_PAL_B1 ((v4l2_std_id)0x00000002)
124 #define V4L2_STD_PAL_G ((v4l2_std_id)0x00000004)
125 #define V4L2_STD_PAL_H ((v4l2_std_id)0x00000008)
126 #define V4L2_STD_PAL_I ((v4l2_std_id)0x00000010)
127 #define V4L2_STD_PAL_D ((v4l2_std_id)0x00000020)
128 #define V4L2_STD_PAL_D1 ((v4l2_std_id)0x00000040)
129 #define V4L2_STD_PAL_K ((v4l2_std_id)0x00000080)
131 #define V4L2_STD_PAL_M ((v4l2_std_id)0x00000100)
132 #define V4L2_STD_PAL_N ((v4l2_std_id)0x00000200)
133 #define V4L2_STD_PAL_Nc ((v4l2_std_id)0x00000400)
134 #define V4L2_STD_PAL_60 ((v4l2_std_id)0x00000800)
141 .. code-block:: c
143 #define V4L2_STD_NTSC_M ((v4l2_std_id)0x00001000)
144 #define V4L2_STD_NTSC_M_JP ((v4l2_std_id)0x00002000)
145 #define V4L2_STD_NTSC_443 ((v4l2_std_id)0x00004000)
150 .. code-block:: c
152 #define V4L2_STD_NTSC_M_KR ((v4l2_std_id)0x00008000)
154 #define V4L2_STD_SECAM_B ((v4l2_std_id)0x00010000)
155 #define V4L2_STD_SECAM_D ((v4l2_std_id)0x00020000)
156 #define V4L2_STD_SECAM_G ((v4l2_std_id)0x00040000)
157 #define V4L2_STD_SECAM_H ((v4l2_std_id)0x00080000)
158 #define V4L2_STD_SECAM_K ((v4l2_std_id)0x00100000)
159 #define V4L2_STD_SECAM_K1 ((v4l2_std_id)0x00200000)
160 #define V4L2_STD_SECAM_L ((v4l2_std_id)0x00400000)
161 #define V4L2_STD_SECAM_LC ((v4l2_std_id)0x00800000)
164 #define V4L2_STD_ATSC_8_VSB ((v4l2_std_id)0x01000000)
165 #define V4L2_STD_ATSC_16_VSB ((v4l2_std_id)0x02000000)
172 .. code-block:: c
174 #define V4L2_STD_PAL_BG (V4L2_STD_PAL_B |
177 #define V4L2_STD_B (V4L2_STD_PAL_B |
180 #define V4L2_STD_GH (V4L2_STD_PAL_G |
184 #define V4L2_STD_PAL_DK (V4L2_STD_PAL_D |
187 #define V4L2_STD_PAL (V4L2_STD_PAL_BG |
191 #define V4L2_STD_NTSC (V4L2_STD_NTSC_M |
194 #define V4L2_STD_MN (V4L2_STD_PAL_M |
198 #define V4L2_STD_SECAM_DK (V4L2_STD_SECAM_D |
201 #define V4L2_STD_DK (V4L2_STD_PAL_DK |
204 #define V4L2_STD_SECAM (V4L2_STD_SECAM_B |
211 #define V4L2_STD_525_60 (V4L2_STD_PAL_M |
215 #define V4L2_STD_625_50 (V4L2_STD_PAL |
220 #define V4L2_STD_UNKNOWN 0
221 #define V4L2_STD_ALL (V4L2_STD_525_60 |
233 .. _video-standards:
235 .. flat-table:: Video Standards (based on :ref:`itu470`)
236 :header-rows: 1
237 :stub-columns: 0
239 * - Characteristics
240 - M/NTSC [#f2]_
241 - M/PAL
242 - N/PAL [#f3]_
243 - B, B1, G/PAL
244 - D, D1, K/PAL
245 - H/PAL
246 - I/PAL
247 - B, G/SECAM
248 - D, K/SECAM
249 - K1/SECAM
250 - L/SECAM
251 * - Frame lines
252 - :cspan:`1` 525
253 - :cspan:`8` 625
254 * - Frame period (s)
255 - :cspan:`1` 1001/30000
256 - :cspan:`8` 1/25
257 * - Chrominance sub-carrier frequency (Hz)
258 - 3579545 ± 10
259 - 3579611.49 ± 10
260 - 4433618.75 ± 5
263 - :cspan:`3` 4433618.75 ± 5
264 - 4433618.75 ± 1
265 - :cspan:`2` f\ :sub:`OR` = 4406250 ± 2000,
268 * - Nominal radio-frequency channel bandwidth (MHz)
269 - 6
270 - 6
271 - 6
272 - B: 7; B1, G: 8
273 - 8
274 - 8
275 - 8
276 - 8
277 - 8
278 - 8
279 - 8
280 * - Sound carrier relative to vision carrier (MHz)
281 - 4.5
282 - 4.5
283 - 4.5
284 - 5.5 ± 0.001 [#f4]_ [#f5]_ [#f6]_ [#f7]_
285 - 6.5 ± 0.001
286 - 5.5
287 - 5.9996 ± 0.0005
288 - 5.5 ± 0.001
289 - 6.5 ± 0.001
290 - 6.5
291 - 6.5 [#f8]_
301 On success 0 is returned, on error -1 and the ``errno`` variable is set
303 :ref:`Generic Error Codes <gen-errors>` chapter.
306 The struct :c:type:`v4l2_standard` ``index`` is out
321 N\ :sub:`C` used in Argentina (V4L2_STD_PAL_Nc).