Allow to set -camera-vflip and -camera-hflip

This commit is contained in:
Kamil Trzcinski
2022-08-24 17:48:55 +02:00
parent 8b1d066dfc
commit a9c65fae0d
9 changed files with 61 additions and 3 deletions

View File

@@ -127,6 +127,13 @@ int libcamera_device_set_fps(device_t *dev, int desired_fps)
return 0;
}
int libcamera_device_set_rotation(device_t *dev, bool vflip, bool hflip)
{
dev->libcamera->vflip = vflip;
dev->libcamera->hflip = hflip;
return 0;
}
int libcamera_device_set_option(device_t *dev, const char *keyp, const char *value)
{
auto key = libcamera_device_option_normalize(keyp);