GrabberFix PiCam

This commit is contained in:
SputnikElf
2019-12-30 22:23:38 +01:00
parent aef4e3a571
commit 8ffe9cb8e2
9 changed files with 139 additions and 0 deletions

View File

@@ -165,6 +165,10 @@ void GrabberWrapper::handleSettingsUpdate(const settings::type& type, const QJso
_ggrabber->setDeviceVideoStandard(
obj["device"].toString("auto"),
parseVideoStandard(obj["standard"].toString("no-change")));
_ggrabber->setGrabberFixValues(
obj["gFWidth"].toInt(0),
obj["gFHeight"].toInt(0),
obj["gFVType"].toString("JPEG"));
}
}

View File

@@ -194,6 +194,64 @@
},
"required" : true,
"propertyOrder" : 15
},
"grabberFix" :
{
"type" : "boolean",
"title" : "edt_conf_v4l2_grabberFix_title",
"default" : false,
"required" : true,
"propertyOrder" : 16
},
"gFWidth" :
{
"type" : "integer",
"title" : "edt_conf_v4l2_gFWidth_title",
"minimum" : 320,
"maximum" : 1980,
"default" : 1280,
"step" : 10,
"options": {
"dependencies": {
"grabberFix": true
}
},
"required" : true,
"propertyOrder" : 17
},
"gFHeight" :
{
"type" : "integer",
"title" : "edt_conf_v4l2_gFHeight_title",
"minimum" : 240,
"maximum" : 1080,
"default" : 720,
"step" : 10,
"options": {
"dependencies": {
"grabberFix": true
}
},
"required" : true,
"propertyOrder" : 18
},
"gFVType" :
{
"type" : "string",
"title" : "edt_conf_v4l2_gFVType_title",
"enum" : ["UYVY","YUYV","RGB32"],
"options":
{
"enum_titles": ["UYVY","YUYV","RGB32"]
},
"default" : "UYVY",
"options": {
"dependencies": {
"grabberFix": true
}
},
"required" : true,
"propertyOrder" : 19
}
},
"additionalProperties" : false