summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ambithread.c2
-rw-r--r--boblightservice.c11
2 files changed, 7 insertions, 6 deletions
diff --git a/ambithread.c b/ambithread.c
index 3b972bf..78f3e2d 100644
--- a/ambithread.c
+++ b/ambithread.c
@@ -191,7 +191,7 @@ int cAmbiThread::grabImage()
softHdPlugin ? "service" : "plugin");
// grab image at sofhddevice
- req.width = -64; //warum? steht hier => http://projects.vdr-developer.org/projects/plg-softhddevice/repository/revisions/master/entry/video.c#L7372
+ req.width = 64;
req.height = 64;
req.img = 0;
diff --git a/boblightservice.c b/boblightservice.c
index 733ebd6..8c2ac87 100644
--- a/boblightservice.c
+++ b/boblightservice.c
@@ -81,13 +81,14 @@ int cBoblight::ping() {
int cBoblight::writePix(int *rgb)
{
+ tell(2, "writePix r:%d g:%d b:%d", rgb[0], rgb[1], rgb[2]);
boblight_addpixel(m_boblight, -1, rgb);
return success;
}
int cBoblight::writeColor(int *rgb, int x, int y)
-{
+{
boblight_addpixelxy(m_boblight, x, y, rgb);
return success;
@@ -96,7 +97,7 @@ int cBoblight::writeColor(int *rgb, int x, int y)
int cBoblight::send() {
if (!boblight_sendrgb(m_boblight, 0, NULL))
{
- //m_error = boblight_geterror(m_boblight);
+ tell(1, "Error sendrgb boblight %s", boblight_geterror(m_boblight));
return fail;
}
return success;
@@ -111,16 +112,16 @@ int cBoblight::sendOptions() {
if (m_boblight == 0) return fail;
char buf[32];
- sprintf(buf, "%s %1f", "value", cfg.value * 0.01);
+ sprintf(buf, "%s %1f", "value", cfg.value * 0.1f);
boblight_setoption(m_boblight, -1, buf);
sprintf(buf, "%s %d", "threshold", cfg.threshold);
boblight_setoption(m_boblight, -1, buf);
- sprintf(buf, "%s %.1f", "gamma", cfg.gamma * 0.01);
+ sprintf(buf, "%s %.1f", "gamma", cfg.gamma * 0.1f);
boblight_setoption(m_boblight, -1, buf);
- sprintf(buf, "%s %1f", "saturation", cfg.saturation * 0.01);
+ sprintf(buf, "%s %1f", "saturation", cfg.saturation * 0.1f);
boblight_setoption(m_boblight, -1, buf);
sprintf(buf, "%s %d", "speed", cfg.speed);