Browse Source

xlat: provide fallback definitions for some V4L2_* constants

* xlat/v4l2_capture_modes.in: Add fallback definitions for constants.
* xlat/v4l2_control_flags.in: Likewise.
* xlat/v4l2_streaming_capabilities.in: Likewise.
* xlat/v4l2_frameinterval_types.in: Add fallback definitions for
constants, add #value_indexed.
* xlat/v4l2_framesize_types.in: Likewise.
* xlat/v4l2_input_types.in: Likewise.
* xlat/v4l2_memories.in: Likewise.
* xlat/v4l2_tuner_types.in: Likewise.
Eugene Syromyatnikov 1 month ago
parent
commit
6ae44e71ec

+ 1
- 1
xlat/v4l2_capture_modes.in View File

@@ -1 +1 @@
1
-V4L2_MODE_HIGHQUALITY
1
+V4L2_MODE_HIGHQUALITY	0x0001

+ 11
- 11
xlat/v4l2_control_flags.in View File

@@ -1,11 +1,11 @@
1
-V4L2_CTRL_FLAG_DISABLED
2
-V4L2_CTRL_FLAG_GRABBED
3
-V4L2_CTRL_FLAG_READ_ONLY
4
-V4L2_CTRL_FLAG_UPDATE
5
-V4L2_CTRL_FLAG_INACTIVE
6
-V4L2_CTRL_FLAG_SLIDER
7
-V4L2_CTRL_FLAG_WRITE_ONLY
8
-V4L2_CTRL_FLAG_VOLATILE
9
-V4L2_CTRL_FLAG_HAS_PAYLOAD
10
-V4L2_CTRL_FLAG_EXECUTE_ON_WRITE
11
-V4L2_CTRL_FLAG_MODIFY_LAYOUT
1
+V4L2_CTRL_FLAG_DISABLED		0x0001
2
+V4L2_CTRL_FLAG_GRABBED		0x0002
3
+V4L2_CTRL_FLAG_READ_ONLY	0x0004
4
+V4L2_CTRL_FLAG_UPDATE		0x0008
5
+V4L2_CTRL_FLAG_INACTIVE		0x0010
6
+V4L2_CTRL_FLAG_SLIDER		0x0020
7
+V4L2_CTRL_FLAG_WRITE_ONLY	0x0040
8
+V4L2_CTRL_FLAG_VOLATILE		0x0080
9
+V4L2_CTRL_FLAG_HAS_PAYLOAD	0x0100
10
+V4L2_CTRL_FLAG_EXECUTE_ON_WRITE	0x0200
11
+V4L2_CTRL_FLAG_MODIFY_LAYOUT	0x0400

+ 4
- 3
xlat/v4l2_frameinterval_types.in View File

@@ -1,3 +1,4 @@
1
-V4L2_FRMIVAL_TYPE_DISCRETE
2
-V4L2_FRMIVAL_TYPE_CONTINUOUS
3
-V4L2_FRMIVAL_TYPE_STEPWISE
1
+#value_indexed
2
+V4L2_FRMIVAL_TYPE_DISCRETE	1
3
+V4L2_FRMIVAL_TYPE_CONTINUOUS	2
4
+V4L2_FRMIVAL_TYPE_STEPWISE	3

+ 4
- 3
xlat/v4l2_framesize_types.in View File

@@ -1,3 +1,4 @@
1
-V4L2_FRMSIZE_TYPE_DISCRETE
2
-V4L2_FRMSIZE_TYPE_CONTINUOUS
3
-V4L2_FRMSIZE_TYPE_STEPWISE
1
+#value_indexed
2
+V4L2_FRMSIZE_TYPE_DISCRETE	1
3
+V4L2_FRMSIZE_TYPE_CONTINUOUS	2
4
+V4L2_FRMSIZE_TYPE_STEPWISE	3

+ 4
- 3
xlat/v4l2_input_types.in View File

@@ -1,3 +1,4 @@
1
-V4L2_INPUT_TYPE_TUNER
2
-V4L2_INPUT_TYPE_CAMERA
3
-V4L2_INPUT_TYPE_TOUCH
1
+#value_indexed
2
+V4L2_INPUT_TYPE_TUNER	1
3
+V4L2_INPUT_TYPE_CAMERA	2
4
+V4L2_INPUT_TYPE_TOUCH	3

+ 5
- 4
xlat/v4l2_memories.in View File

@@ -1,4 +1,5 @@
1
-V4L2_MEMORY_MMAP
2
-V4L2_MEMORY_USERPTR
3
-V4L2_MEMORY_OVERLAY
4
-V4L2_MEMORY_DMABUF
1
+#value_indexed
2
+V4L2_MEMORY_MMAP	1
3
+V4L2_MEMORY_USERPTR	2
4
+V4L2_MEMORY_OVERLAY	3
5
+V4L2_MEMORY_DMABUF	4

+ 1
- 1
xlat/v4l2_streaming_capabilities.in View File

@@ -1 +1 @@
1
-V4L2_CAP_TIMEPERFRAME
1
+V4L2_CAP_TIMEPERFRAME	0x1000

+ 6
- 6
xlat/v4l2_tuner_types.in View File

@@ -1,6 +1,6 @@
1
-V4L2_TUNER_RADIO
2
-V4L2_TUNER_ANALOG_TV
3
-V4L2_TUNER_DIGITAL_TV
4
-V4L2_TUNER_ADC
5
-V4L2_TUNER_SDR
6
-V4L2_TUNER_RF
1
+#value_indexed
2
+V4L2_TUNER_RADIO	1
3
+V4L2_TUNER_ANALOG_TV	2
4
+V4L2_TUNER_DIGITAL_TV	3
5
+V4L2_TUNER_SDR		4
6
+V4L2_TUNER_RF		5

Loading…
Cancel
Save