mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
update
This commit is contained in:
parent
827294b88c
commit
ef4d4d5f9a
@ -38,6 +38,7 @@ PyMethodDef Effect::effectMethods[] = {
|
|||||||
{"imageMinSize" , Effect::wrapImageMinSize , METH_VARARGS, "sets minimal dimension of background image"},
|
{"imageMinSize" , Effect::wrapImageMinSize , METH_VARARGS, "sets minimal dimension of background image"},
|
||||||
{"imageWidth" , Effect::wrapImageWidth , METH_NOARGS, "gets image width"},
|
{"imageWidth" , Effect::wrapImageWidth , METH_NOARGS, "gets image width"},
|
||||||
{"imageHeight" , Effect::wrapImageHeight , METH_NOARGS, "gets image height"},
|
{"imageHeight" , Effect::wrapImageHeight , METH_NOARGS, "gets image height"},
|
||||||
|
{"hsvF_to_rgb" , Effect::wrapHsvFtoRgb , METH_NOARGS, "convert hsvF (double) to rgb (int)"},
|
||||||
{NULL, NULL, 0, NULL}
|
{NULL, NULL, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -836,6 +837,19 @@ PyObject* Effect::wrapImageHeight(PyObject *self, PyObject *args)
|
|||||||
return Py_BuildValue("i", effect->_imageSize.height());
|
return Py_BuildValue("i", effect->_imageSize.height());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject* Effect::wrapHsvFtoRgb(PyObject *self, PyObject *args)
|
||||||
|
{
|
||||||
|
int argCount = PyTuple_Size(args);
|
||||||
|
double h, s, v, a;
|
||||||
|
|
||||||
|
if ( argCount == 3 && PyArg_ParseTuple(args, "ddd", &h, &s, &v) )
|
||||||
|
{
|
||||||
|
QColor cC.fromHsvF(h,s,v,a = 1.0).toRgb()
|
||||||
|
return Py_BuildValue("iii", cC.red(), cC.green(), cC.blue());
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
Effect * Effect::getEffect()
|
Effect * Effect::getEffect()
|
||||||
{
|
{
|
||||||
// extract the module from the runtime
|
// extract the module from the runtime
|
||||||
|
@ -70,6 +70,7 @@ private:
|
|||||||
static PyObject* wrapImageMinSize (PyObject *self, PyObject *args);
|
static PyObject* wrapImageMinSize (PyObject *self, PyObject *args);
|
||||||
static PyObject* wrapImageWidth (PyObject *self, PyObject *args);
|
static PyObject* wrapImageWidth (PyObject *self, PyObject *args);
|
||||||
static PyObject* wrapImageHeight (PyObject *self, PyObject *args);
|
static PyObject* wrapImageHeight (PyObject *self, PyObject *args);
|
||||||
|
static PyObject* wrapHsvFtoRgb (PyObject *self, PyObject *args);
|
||||||
|
|
||||||
static Effect * getEffect();
|
static Effect * getEffect();
|
||||||
|
|
||||||
|
@ -1303,6 +1303,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"title" : "edt_conf_effp_paths_itemtitle"
|
"title" : "edt_conf_effp_paths_itemtitle"
|
||||||
},
|
},
|
||||||
|
"minItems": 1,
|
||||||
"propertyOrder" : 1
|
"propertyOrder" : 1
|
||||||
},
|
},
|
||||||
"disable" :
|
"disable" :
|
||||||
|
Loading…
Reference in New Issue
Block a user