Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
video-controls.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Linaro Limited.
3 * Copyright (c) 2024 tinyVision.ai Inc.
4 * Copyright 2025 NXP
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8#ifndef ZEPHYR_INCLUDE_VIDEO_CONTROLS_H_
9#define ZEPHYR_INCLUDE_VIDEO_CONTROLS_H_
10
33#include <stdint.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
43#define VIDEO_CID_BASE 0x00980900
44
46#define VIDEO_CID_BRIGHTNESS (VIDEO_CID_BASE + 0)
47
49#define VIDEO_CID_CONTRAST (VIDEO_CID_BASE + 1)
50
52#define VIDEO_CID_SATURATION (VIDEO_CID_BASE + 2)
53
55#define VIDEO_CID_HUE (VIDEO_CID_BASE + 3)
56
58#define VIDEO_CID_AUTO_WHITE_BALANCE (VIDEO_CID_BASE + 12)
59
61#define VIDEO_CID_RED_BALANCE (VIDEO_CID_BASE + 14)
62
64#define VIDEO_CID_BLUE_BALANCE (VIDEO_CID_BASE + 15)
65
67#define VIDEO_CID_GAMMA (VIDEO_CID_BASE + 16)
68
70#define VIDEO_CID_EXPOSURE (VIDEO_CID_BASE + 17)
71
73#define VIDEO_CID_AUTOGAIN (VIDEO_CID_BASE + 18)
74
79#define VIDEO_CID_GAIN (VIDEO_CID_BASE + 19)
80
82#define VIDEO_CID_HFLIP (VIDEO_CID_BASE + 20)
83
85#define VIDEO_CID_VFLIP (VIDEO_CID_BASE + 21)
86
88#define VIDEO_CID_POWER_LINE_FREQUENCY (VIDEO_CID_BASE + 24)
95
100#define VIDEO_CID_HUE_AUTO (VIDEO_CID_BASE + 25)
101
105#define VIDEO_CID_WHITE_BALANCE_TEMPERATURE (VIDEO_CID_BASE + 26)
106
110#define VIDEO_CID_SHARPNESS (VIDEO_CID_BASE + 27)
111
115#define VIDEO_CID_BACKLIGHT_COMPENSATION (VIDEO_CID_BASE + 28)
116
118#define VIDEO_CID_COLORFX (VIDEO_CID_BASE + 31)
136
137/* Enable Automatic Brightness. */
138#define VIDEO_CID_AUTOBRIGHTNESS (VIDEO_CID_BASE + 32)
139
143#define VIDEO_CID_BAND_STOP_FILTER (VIDEO_CID_BASE + 33)
144
149#define VIDEO_CID_ALPHA_COMPONENT (VIDEO_CID_BASE + 41)
150
152#define VIDEO_CID_LASTP1 (VIDEO_CID_BASE + 44)
153
162#define VIDEO_CID_CODEC_CLASS_BASE 0x00990900
163
172#define VIDEO_CID_CAMERA_CLASS_BASE 0x009a0900
173
178#define VIDEO_CID_EXPOSURE_AUTO (VIDEO_CID_CAMERA_CLASS_BASE + 1)
185
191#define VIDEO_CID_EXPOSURE_ABSOLUTE (VIDEO_CID_CAMERA_CLASS_BASE + 2)
192
197#define VIDEO_CID_EXPOSURE_AUTO_PRIORITY (VIDEO_CID_CAMERA_CLASS_BASE + 3)
198
203#define VIDEO_CID_PAN_RELATIVE (VIDEO_CID_CAMERA_CLASS_BASE + 4)
204
209#define VIDEO_CID_TILT_RELATIVE (VIDEO_CID_CAMERA_CLASS_BASE + 5)
210
216#define VIDEO_CID_PAN_ABSOLUTE (VIDEO_CID_CAMERA_CLASS_BASE + 8)
217
222#define VIDEO_CID_TILT_ABSOLUTE (VIDEO_CID_CAMERA_CLASS_BASE + 9)
223
228#define VIDEO_CID_FOCUS_ABSOLUTE (VIDEO_CID_CAMERA_CLASS_BASE + 10)
229
234#define VIDEO_CID_FOCUS_RELATIVE (VIDEO_CID_CAMERA_CLASS_BASE + 11)
235
240#define VIDEO_CID_FOCUS_AUTO (VIDEO_CID_CAMERA_CLASS_BASE + 12)
241
245#define VIDEO_CID_ZOOM_ABSOLUTE (VIDEO_CID_CAMERA_CLASS_BASE + 13)
246
251#define VIDEO_CID_ZOOM_RELATIVE (VIDEO_CID_CAMERA_CLASS_BASE + 14)
252
260#define VIDEO_CID_ZOOM_CONTINUOUS (VIDEO_CID_CAMERA_CLASS_BASE + 15)
261
265#define VIDEO_CID_IRIS_ABSOLUTE (VIDEO_CID_CAMERA_CLASS_BASE + 17)
266
271#define VIDEO_CID_IRIS_RELATIVE (VIDEO_CID_CAMERA_CLASS_BASE + 18)
272
279#define VIDEO_CID_WIDE_DYNAMIC_RANGE (VIDEO_CID_CAMERA_CLASS_BASE + 21)
280
286#define VIDEO_CID_PAN_SPEED (VIDEO_CID_CAMERA_CLASS_BASE + 32)
287
292#define VIDEO_CID_TILT_SPEED (VIDEO_CID_CAMERA_CLASS_BASE + 33)
293
302#define VIDEO_CID_CAMERA_ORIENTATION (VIDEO_CID_CAMERA_CLASS_BASE + 34)
311
317#define VIDEO_CID_CAMERA_SENSOR_ROTATION (VIDEO_CID_CAMERA_CLASS_BASE + 35)
318
327#define VIDEO_CID_FLASH_CLASS_BASE 0x009c0900
328
337#define VIDEO_CID_JPEG_CLASS_BASE 0x009d0900
338
340#define VIDEO_CID_JPEG_COMPRESSION_QUALITY (VIDEO_CID_JPEG_CLASS_BASE + 3)
341
350#define VIDEO_CID_IMAGE_SOURCE_CLASS_BASE 0x009e0900
351
353#define VIDEO_CID_ANALOGUE_GAIN (VIDEO_CID_IMAGE_SOURCE_CLASS_BASE + 3)
354
363#define VIDEO_CID_IMAGE_PROC_CLASS_BASE 0x009f0900
364
366#define VIDEO_CID_PIXEL_RATE (VIDEO_CID_IMAGE_PROC_CLASS_BASE + 2)
367
369#define VIDEO_CID_TEST_PATTERN (VIDEO_CID_IMAGE_PROC_CLASS_BASE + 3)
370
379#define VIDEO_CID_PRIVATE_BASE 0x08000000
380
389#define VIDEO_CTRL_FLAG_NEXT_CTRL 0x80000000
390
411 union {
414 };
415};
416
425 union {
428 };
430 union {
433 };
435 union {
438 };
442 union {
445 };
446};
447
468
473#ifdef __cplusplus
474}
475#endif
476
481#endif /* ZEPHYR_INCLUDE_VIDEO_H_ */
video_exposure_type
Definition video-controls.h:179
video_camera_orientation
Definition video-controls.h:303
video_colorfx
Definition video-controls.h:119
video_power_line_frequency
Definition video-controls.h:89
@ VIDEO_EXPOSURE_MANUAL
Definition video-controls.h:181
@ VIDEO_EXPOSURE_APERTURE_PRIORITY
Definition video-controls.h:183
@ VIDEO_EXPOSURE_AUTO
Definition video-controls.h:180
@ VIDEO_EXPOSURE_SHUTTER_PRIORITY
Definition video-controls.h:182
@ VIDEO_CAMERA_ORIENTATION_FRONT
Camera installed on the user-facing side of a phone/tablet/laptop device.
Definition video-controls.h:305
@ VIDEO_CAMERA_ORIENTATION_BACK
Camera installed on the opposite side of the user.
Definition video-controls.h:307
@ VIDEO_CAMERA_ORIENTATION_EXTERNAL
Camera sensors not directly attached to the device or that can move freely.
Definition video-controls.h:309
@ VIDEO_COLORFX_ART_FREEZE
Definition video-controls.h:131
@ VIDEO_COLORFX_SKY_BLUE
Definition video-controls.h:126
@ VIDEO_COLORFX_SILHOUETTE
Definition video-controls.h:132
@ VIDEO_COLORFX_SOLARIZATION
Definition video-controls.h:133
@ VIDEO_COLORFX_SKIN_WHITEN
Definition video-controls.h:128
@ VIDEO_COLORFX_SEPIA
Definition video-controls.h:122
@ VIDEO_COLORFX_BW
Definition video-controls.h:121
@ VIDEO_COLORFX_VIVID
Definition video-controls.h:129
@ VIDEO_COLORFX_ANTIQUE
Definition video-controls.h:134
@ VIDEO_COLORFX_SKETCH
Definition video-controls.h:125
@ VIDEO_COLORFX_NONE
Definition video-controls.h:120
@ VIDEO_COLORFX_EMBOSS
Definition video-controls.h:124
@ VIDEO_COLORFX_GRASS_GREEN
Definition video-controls.h:127
@ VIDEO_COLORFX_NEGATIVE
Definition video-controls.h:123
@ VIDEO_COLORFX_AQUA
Definition video-controls.h:130
@ VIDEO_CID_POWER_LINE_FREQUENCY_DISABLED
Definition video-controls.h:90
@ VIDEO_CID_POWER_LINE_FREQUENCY_AUTO
Definition video-controls.h:93
@ VIDEO_CID_POWER_LINE_FREQUENCY_60HZ
Definition video-controls.h:92
@ VIDEO_CID_POWER_LINE_FREQUENCY_50HZ
Definition video-controls.h:91
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT32_TYPE__ int32_t
Definition stdint.h:74
__INT64_TYPE__ int64_t
Definition stdint.h:75
Video control structure.
Definition video-controls.h:407
int32_t val
Definition video-controls.h:412
uint32_t id
control id
Definition video-controls.h:409
int64_t val64
Definition video-controls.h:413
Definition video-controls.h:454
const char * name
control name
Definition video-controls.h:460
struct video_ctrl_range range
control range
Definition video-controls.h:464
const char *const * menu
menu if control is of menu type
Definition video-controls.h:466
uint32_t type
control type
Definition video-controls.h:458
uint32_t id
control id
Definition video-controls.h:456
uint32_t flags
control flags
Definition video-controls.h:462
Definition video-controls.h:423
int32_t min
Definition video-controls.h:426
int64_t min64
Definition video-controls.h:427
int32_t max
Definition video-controls.h:431
int64_t max64
Definition video-controls.h:432
int64_t step64
Definition video-controls.h:437
int64_t def64
Definition video-controls.h:444
int32_t step
Definition video-controls.h:436
int32_t def
Definition video-controls.h:443