From 7ad2ebbb2c584361674af5454d14447e442fd7f5 Mon Sep 17 00:00:00 2001 From: Nicolas Aguirre Date: Sun, 16 Apr 2023 12:22:48 +0200 Subject: [PATCH] Add option rotate and width to IPCam class --- src/bin/calaos_server/IPCam/IPCam.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/calaos_server/IPCam/IPCam.cpp b/src/bin/calaos_server/IPCam/IPCam.cpp index 6972cd38..92300b05 100644 --- a/src/bin/calaos_server/IPCam/IPCam.cpp +++ b/src/bin/calaos_server/IPCam/IPCam.cpp @@ -32,6 +32,9 @@ IPCam::IPCam(Params &p): set_param("gui_type", "camera"); set_param("visible", "false"); + ioDoc->paramAdd("width", _("Width of the image, if this parameter is set, video will be resized to fit the given width. Let parameter empty to keep the original size."), IODoc::TYPE_INT, false, ""); + ioDoc->paramAdd("rotate", _("Rotate the image. Set a value between. The value is in degrees. Example : -90 for Counter Clock Wise rotation, 90 for Clock Wise rotationCW."), IODoc::TYPE_INT, false, ""); + //Add again to cache, because gui_type has changed //Special case for Camera ListeRoom::Instance().addIOHash(this);