mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
parent
5a2ef6c4a3
commit
904aad5f1c
@ -58,6 +58,7 @@
|
|||||||
/// Next to the list with color transforms there is also a smoothing option.
|
/// Next to the list with color transforms there is also a smoothing option.
|
||||||
/// * 'smoothing' : Smoothing of the colors in the time-domain with the following tuning
|
/// * 'smoothing' : Smoothing of the colors in the time-domain with the following tuning
|
||||||
/// parameters:
|
/// parameters:
|
||||||
|
/// - 'enable' Enable or disable the smoothing (true/false)
|
||||||
/// - 'type' The type of smoothing algorithm ('linear' or 'none')
|
/// - 'type' The type of smoothing algorithm ('linear' or 'none')
|
||||||
/// - 'time_ms' The time constant for smoothing algorithm in milliseconds
|
/// - 'time_ms' The time constant for smoothing algorithm in milliseconds
|
||||||
/// - 'updateFrequency' The update frequency of the leds in Hz
|
/// - 'updateFrequency' The update frequency of the leds in Hz
|
||||||
@ -137,7 +138,7 @@
|
|||||||
"enable" : true,
|
"enable" : true,
|
||||||
"type" : "linear",
|
"type" : "linear",
|
||||||
"time_ms" : 200,
|
"time_ms" : 200,
|
||||||
"updateFrequency" : 20.0000,
|
"updateFrequency" : 25.0000,
|
||||||
"updateDelay" : 0,
|
"updateDelay" : 0,
|
||||||
"continuousOutput" : true
|
"continuousOutput" : true
|
||||||
}
|
}
|
||||||
@ -183,6 +184,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
/// The configuration for the frame-grabber, contains the following items:
|
/// The configuration for the frame-grabber, contains the following items:
|
||||||
|
/// * enable : true if the framegrabber (platform grabber) should be activated
|
||||||
/// * width : The width of the grabbed frames [pixels]
|
/// * width : The width of the grabbed frames [pixels]
|
||||||
/// * height : The height of the grabbed frames [pixels]
|
/// * height : The height of the grabbed frames [pixels]
|
||||||
/// * frequency_Hz : The frequency of the frame grab [Hz]
|
/// * frequency_Hz : The frequency of the frame grab [Hz]
|
||||||
@ -190,8 +192,9 @@
|
|||||||
/// * ATTENTION : Power-of-Two resolution is not supported and leads to unexpected behaviour!
|
/// * ATTENTION : Power-of-Two resolution is not supported and leads to unexpected behaviour!
|
||||||
"framegrabber" :
|
"framegrabber" :
|
||||||
{
|
{
|
||||||
"width" : 64,
|
"enable" : true,
|
||||||
"height" : 64,
|
"width" : 96,
|
||||||
|
"height" : 96,
|
||||||
"frequency_Hz" : 10.0,
|
"frequency_Hz" : 10.0,
|
||||||
"priority" : 890
|
"priority" : 890
|
||||||
},
|
},
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
"enable" : true,
|
"enable" : true,
|
||||||
"type" : "linear",
|
"type" : "linear",
|
||||||
"time_ms" : 200,
|
"time_ms" : 200,
|
||||||
"updateFrequency" : 20.0000,
|
"updateFrequency" : 25.0000,
|
||||||
"updateDelay" : 0,
|
"updateDelay" : 0,
|
||||||
"continuousOutput" : false
|
"continuousOutput" : false
|
||||||
}
|
}
|
||||||
@ -115,8 +115,9 @@
|
|||||||
|
|
||||||
"framegrabber" :
|
"framegrabber" :
|
||||||
{
|
{
|
||||||
"width" : 128,
|
"enable" : true,
|
||||||
"height" : 128,
|
"width" : 96,
|
||||||
|
"height" : 96,
|
||||||
"frequency_Hz" : 10.0,
|
"frequency_Hz" : 10.0,
|
||||||
"priority" : 890
|
"priority" : 890
|
||||||
},
|
},
|
||||||
@ -130,7 +131,7 @@
|
|||||||
|
|
||||||
"kodiVideoChecker" :
|
"kodiVideoChecker" :
|
||||||
{
|
{
|
||||||
"enable" : true,
|
"enable" : false,
|
||||||
"kodiAddress" : "localhost",
|
"kodiAddress" : "localhost",
|
||||||
"kodiTcpPort" : 9090,
|
"kodiTcpPort" : 9090,
|
||||||
"grabVideo" : true,
|
"grabVideo" : true,
|
||||||
|
@ -322,10 +322,12 @@ void HyperionDaemon::startNetworkServices()
|
|||||||
void HyperionDaemon::createGrabberDispmanx()
|
void HyperionDaemon::createGrabberDispmanx()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_DISPMANX
|
#ifdef ENABLE_DISPMANX
|
||||||
// Construct and start the frame-grabber if the configuration is present
|
// Construct and start the dispmanx grabber if the configuration is present
|
||||||
if (_config.isMember("framegrabber"))
|
if (_config.isMember("framegrabber"))
|
||||||
{
|
{
|
||||||
const Json::Value & frameGrabberConfig = _config["framegrabber"];
|
const Json::Value & frameGrabberConfig = _config["framegrabber"];
|
||||||
|
if (frameGrabberConfig.get("enable", true).asBool())
|
||||||
|
{
|
||||||
_dispmanx = new DispmanxWrapper(
|
_dispmanx = new DispmanxWrapper(
|
||||||
frameGrabberConfig["width"].asUInt(),
|
frameGrabberConfig["width"].asUInt(),
|
||||||
frameGrabberConfig["height"].asUInt(),
|
frameGrabberConfig["height"].asUInt(),
|
||||||
@ -342,7 +344,8 @@ void HyperionDaemon::createGrabberDispmanx()
|
|||||||
QObject::connect(_dispmanx, SIGNAL(emitImage(int, const Image<ColorRgb>&, const int)), _protoServer, SLOT(sendImageToProtoSlaves(int, const Image<ColorRgb>&, const int)) );
|
QObject::connect(_dispmanx, SIGNAL(emitImage(int, const Image<ColorRgb>&, const int)), _protoServer, SLOT(sendImageToProtoSlaves(int, const Image<ColorRgb>&, const int)) );
|
||||||
|
|
||||||
_dispmanx->start();
|
_dispmanx->start();
|
||||||
Info(_log, "Frame grabber created and started");
|
Info(_log, "DISPMANX frame grabber created and started");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
ErrorIf(_config.isMember("framegrabber"), _log, "The dispmanx framegrabber can not be instantiated, because it has been left out from the build");
|
ErrorIf(_config.isMember("framegrabber"), _log, "The dispmanx framegrabber can not be instantiated, because it has been left out from the build");
|
||||||
@ -393,10 +396,12 @@ void HyperionDaemon::createGrabberV4L2()
|
|||||||
void HyperionDaemon::createGrabberAmlogic()
|
void HyperionDaemon::createGrabberAmlogic()
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_AMLOGIC
|
#ifdef ENABLE_AMLOGIC
|
||||||
// Construct and start the framebuffer grabber if the configuration is present
|
// Construct and start the amlogic grabber if the configuration is present
|
||||||
if (_config.isMember("amlgrabber"))
|
if (_config.isMember("amlgrabber"))
|
||||||
{
|
{
|
||||||
const Json::Value & grabberConfig = _config["amlgrabber"];
|
const Json::Value & grabberConfig = _config["amlgrabber"];
|
||||||
|
if (grabberConfig.get("enable", true).asBool())
|
||||||
|
{
|
||||||
_amlGrabber = new AmlogicWrapper(
|
_amlGrabber = new AmlogicWrapper(
|
||||||
grabberConfig["width"].asUInt(),
|
grabberConfig["width"].asUInt(),
|
||||||
grabberConfig["height"].asUInt(),
|
grabberConfig["height"].asUInt(),
|
||||||
@ -410,6 +415,7 @@ void HyperionDaemon::createGrabberAmlogic()
|
|||||||
_amlGrabber->start();
|
_amlGrabber->start();
|
||||||
Info(_log, "AMLOGIC grabber created and started");
|
Info(_log, "AMLOGIC grabber created and started");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
ErrorIf(_config.isMember("amlgrabber"), _log, "The AMLOGIC grabber can not be instantiated, because it has been left out from the build");
|
ErrorIf(_config.isMember("amlgrabber"), _log, "The AMLOGIC grabber can not be instantiated, because it has been left out from the build");
|
||||||
#endif
|
#endif
|
||||||
@ -420,9 +426,11 @@ void HyperionDaemon::createGrabberFramebuffer()
|
|||||||
{
|
{
|
||||||
#ifdef ENABLE_FB
|
#ifdef ENABLE_FB
|
||||||
// Construct and start the framebuffer grabber if the configuration is present
|
// Construct and start the framebuffer grabber if the configuration is present
|
||||||
if (_config.isMember("framebuffergrabber") || _config.isMember("framegrabber"))
|
if (_config.isMember("framebuffergrabber"))
|
||||||
|
{
|
||||||
|
const Json::Value & grabberConfig = _config["framebuffergrabber"];
|
||||||
|
if (grabberConfig.get("enable", true).asBool())
|
||||||
{
|
{
|
||||||
const Json::Value & grabberConfig = _config.isMember("framebuffergrabber")? _config["framebuffergrabber"] : _config["framegrabber"];
|
|
||||||
_fbGrabber = new FramebufferWrapper(
|
_fbGrabber = new FramebufferWrapper(
|
||||||
grabberConfig.get("device", "/dev/fb0").asString(),
|
grabberConfig.get("device", "/dev/fb0").asString(),
|
||||||
grabberConfig["width"].asUInt(),
|
grabberConfig["width"].asUInt(),
|
||||||
@ -437,6 +445,7 @@ void HyperionDaemon::createGrabberFramebuffer()
|
|||||||
_fbGrabber->start();
|
_fbGrabber->start();
|
||||||
Info(_log, "Framebuffer grabber created and started");
|
Info(_log, "Framebuffer grabber created and started");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
ErrorIf(_config.isMember("framebuffergrabber"), _log, "The framebuffer grabber can not be instantiated, because it has been left out from the build");
|
ErrorIf(_config.isMember("framebuffergrabber"), _log, "The framebuffer grabber can not be instantiated, because it has been left out from the build");
|
||||||
#endif
|
#endif
|
||||||
@ -447,9 +456,11 @@ void HyperionDaemon::createGrabberOsx()
|
|||||||
{
|
{
|
||||||
#ifdef ENABLE_OSX
|
#ifdef ENABLE_OSX
|
||||||
// Construct and start the osx grabber if the configuration is present
|
// Construct and start the osx grabber if the configuration is present
|
||||||
if (_config.isMember("framegrabber"))
|
if (_config.isMember("osxgrabber"))
|
||||||
|
{
|
||||||
|
const Json::Value & grabberConfig = _config["osxgrabber"];
|
||||||
|
if (grabberConfig.get("enable", true).asBool())
|
||||||
{
|
{
|
||||||
const Json::Value & grabberConfig = _config.isMember("osxgrabber")? _config["osxgrabber"] : _config["framegrabber"];
|
|
||||||
_osxGrabber = new OsxWrapper(
|
_osxGrabber = new OsxWrapper(
|
||||||
grabberConfig.get("display", 0).asUInt(),
|
grabberConfig.get("display", 0).asUInt(),
|
||||||
grabberConfig["width"].asUInt(),
|
grabberConfig["width"].asUInt(),
|
||||||
@ -464,6 +475,7 @@ void HyperionDaemon::createGrabberOsx()
|
|||||||
_osxGrabber->start();
|
_osxGrabber->start();
|
||||||
Info(_log, "OSX grabber created and started");
|
Info(_log, "OSX grabber created and started");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
ErrorIf(_config.isMember("osxgrabber"), _log, "The osx grabber can not be instantiated, because it has been left out from the build");
|
ErrorIf(_config.isMember("osxgrabber"), _log, "The osx grabber can not be instantiated, because it has been left out from the build");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user