Mercurial > hg > orthanc-python
diff Sources/Autogenerated/sdk_OrthancPluginPixelFormat.impl.h @ 131:c55b0583084b
integration fix-leak->mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Aug 2023 11:52:45 +0200 |
parents | 65ec5597ec70 5b59ebc267e1 |
children | 71d305c29cfa |
line wrap: on
line diff
--- a/Sources/Autogenerated/sdk_OrthancPluginPixelFormat.impl.h Wed Aug 30 11:49:59 2023 +0200 +++ b/Sources/Autogenerated/sdk_OrthancPluginPixelFormat.impl.h Wed Aug 30 11:52:45 2023 +0200 @@ -64,17 +64,72 @@ * (in your module initialization function)." **/ - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE8", PyLong_FromLong(1)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE16", PyLong_FromLong(2)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "SIGNED_GRAYSCALE16", PyLong_FromLong(3)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGB24", PyLong_FromLong(4)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGBA32", PyLong_FromLong(5)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "UNKNOWN", PyLong_FromLong(6)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGB48", PyLong_FromLong(7)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE32", PyLong_FromLong(8)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "FLOAT32", PyLong_FromLong(9)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "BGRA32", PyLong_FromLong(10)); - PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE64", PyLong_FromLong(11)); + { + PyObject* tmp = PyLong_FromLong(1); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE8", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(2); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE16", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(3); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "SIGNED_GRAYSCALE16", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(4); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGB24", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(5); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGBA32", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(6); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "UNKNOWN", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(7); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGB48", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(8); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE32", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(9); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "FLOAT32", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(10); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "BGRA32", tmp); + Py_DECREF(tmp); + } + + { + PyObject* tmp = PyLong_FromLong(11); + PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE64", tmp); + Py_DECREF(tmp); + } + Py_INCREF(&sdk_OrthancPluginPixelFormat_Type); if (PyModule_AddObject(module, "PixelFormat", (PyObject *)&sdk_OrthancPluginPixelFormat_Type) < 0)