Add disclaimer about auto_focus, vflip and hflip

This commit is contained in:
Kamil Trzcinski 2022-08-24 17:51:33 +02:00
parent a9c65fae0d
commit 7a584dc16d
3 changed files with 11 additions and 6 deletions

View File

@ -74,6 +74,10 @@
"v4l2.h": "c",
"stdlib.h": "c",
"stdint.h": "c",
"videodev2.h": "c"
"videodev2.h": "c",
"opts.h": "c",
"ioctl.h": "c",
"syscall.h": "c",
"unistd.h": "c"
}
}

View File

@ -168,9 +168,9 @@ option_t all_options[] = {
DEFINE_OPTION(camera, low_res_factor, float, "Set the desired low resolution output scale factor."),
DEFINE_OPTION_PTR(camera, options, list, "Set the camera options. List all available options with `-camera-list_options`."),
DEFINE_OPTION(camera, auto_reconnect, uint, "Set the camera auto-reconnect delay in seconds."),
DEFINE_OPTION_DEFAULT(camera, auto_focus, bool, "1", "Do auto-focus on start-up."),
DEFINE_OPTION_DEFAULT(camera, vflip, bool, "1", "Do vertical image flip."),
DEFINE_OPTION_DEFAULT(camera, hflip, bool, "1", "Do horizontal image flip."),
DEFINE_OPTION_DEFAULT(camera, auto_focus, bool, "1", "Do auto-focus on start-up (does not work with all camera)."),
DEFINE_OPTION_DEFAULT(camera, vflip, bool, "1", "Do vertical image flip (does not work with all camera)."),
DEFINE_OPTION_DEFAULT(camera, hflip, bool, "1", "Do horizontal image flip (does not work with all camera)."),
DEFINE_OPTION_PTR(camera, isp.options, list, "Set the ISP processing options. List all available options with `-camera-list_options`."),
DEFINE_OPTION_PTR(camera, jpeg.options, list, "Set the JPEG compression options. List all available options with `-camera-list_options`."),

View File

@ -9,7 +9,8 @@ ExecStart=/usr/local/bin/camera-streamer \
-camera-type=libcamera \
-camera-format=YUYV \
-camera-width=2328 -camera-height=1748 \
-camera-fps=30 \
-camera-options=rotation=90 \
-camera-fps=15 \
; use two memory buffers to optimise usage
-camera-nbufs=2 \
; the high-res is 1552x1165
@ -19,7 +20,7 @@ ExecStart=/usr/local/bin/camera-streamer \
; bump brightness slightly
-camera-options=brightness=0.1 \
; disable auto-focus
-camera-auto_focus=0
-camera-auto_focus=1
DynamicUser=yes
SupplementaryGroups=video i2c