implement optional color correction for V4L only (#267)

* remove color temperatire, its the same as color adjustment

* remove temperature from schema

* implement most part of v4l only colro settings,
now hyperion update knows from which component the colors come

* update configs

* fix webui config write

* reomve correction and temperature from hyperion-remote
This commit is contained in:
redPanther
2016-10-10 18:29:54 +02:00
committed by GitHub
parent d9c2a2d91a
commit e889996ae7
31 changed files with 107 additions and 638 deletions

View File

@@ -47,7 +47,7 @@ void AmlogicWrapper::action()
}
_processor->process(_image, _ledColors);
_hyperion->setColors(_priority, _ledColors, _timeout_ms);
setColors(_ledColors, _timeout_ms);
}
void AmlogicWrapper::setVideoMode(const VideoMode mode)

View File

@@ -43,7 +43,7 @@ void DispmanxWrapper::action()
}
_processor->process(_image, _ledColors);
_hyperion->setColors(_priority, _ledColors, _timeout_ms);
setColors(_ledColors, _timeout_ms);
}
void DispmanxWrapper::kodiPlay()

View File

@@ -37,7 +37,7 @@ void FramebufferWrapper::action()
}
_processor->process(_image, _ledColors);
_hyperion->setColors(_priority, _ledColors, _timeout_ms);
setColors(_ledColors, _timeout_ms);
}
void FramebufferWrapper::setVideoMode(const VideoMode mode)

View File

@@ -37,7 +37,7 @@ void OsxWrapper::action()
}
_processor->process(_image, _ledColors);
_hyperion->setColors(_priority, _ledColors, _timeout_ms);
setColors(_ledColors, _timeout_ms);
}

View File

@@ -35,6 +35,7 @@ V4L2Wrapper::V4L2Wrapper(const std::string &device,
// register the image type
qRegisterMetaType<Image<ColorRgb>>("Image<ColorRgb>");
qRegisterMetaType<std::vector<ColorRgb>>("std::vector<ColorRgb>");
qRegisterMetaType<hyperion::Components>("hyperion::Components");
// Handle the image in the captured thread using a direct connection
QObject::connect(&_grabber, SIGNAL(newFrame(Image<ColorRgb>)), this, SLOT(newFrame(Image<ColorRgb>)), Qt::DirectConnection);
@@ -88,7 +89,7 @@ void V4L2Wrapper::newFrame(const Image<ColorRgb> &image)
// process the new image
_processor->process(image, _ledColors);
_hyperion->setColors(_priority, _ledColors, _timeout_ms);
setColors(_ledColors, _timeout_ms);
}
void V4L2Wrapper::readError(const char* err)

View File

@@ -70,7 +70,7 @@ void X11Wrapper::action()
}
_processor->process(_image, _ledColors);
_hyperion->setColors(_priority, _ledColors, _timeout_ms);
setColors(_ledColors, _timeout_ms);
}