Mercurial > hg > orthanc-python
comparison 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 |
comparison
equal
deleted
inserted
replaced
130:a3f77cf16396 | 131:c55b0583084b |
---|---|
62 * "Class attributes can be added by setting the tp_dict to a | 62 * "Class attributes can be added by setting the tp_dict to a |
63 * dictionary with these attributes before calling PyType_Ready() | 63 * dictionary with these attributes before calling PyType_Ready() |
64 * (in your module initialization function)." | 64 * (in your module initialization function)." |
65 **/ | 65 **/ |
66 | 66 |
67 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE8", PyLong_FromLong(1)); | 67 { |
68 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE16", PyLong_FromLong(2)); | 68 PyObject* tmp = PyLong_FromLong(1); |
69 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "SIGNED_GRAYSCALE16", PyLong_FromLong(3)); | 69 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE8", tmp); |
70 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGB24", PyLong_FromLong(4)); | 70 Py_DECREF(tmp); |
71 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGBA32", PyLong_FromLong(5)); | 71 } |
72 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "UNKNOWN", PyLong_FromLong(6)); | 72 |
73 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGB48", PyLong_FromLong(7)); | 73 { |
74 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE32", PyLong_FromLong(8)); | 74 PyObject* tmp = PyLong_FromLong(2); |
75 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "FLOAT32", PyLong_FromLong(9)); | 75 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE16", tmp); |
76 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "BGRA32", PyLong_FromLong(10)); | 76 Py_DECREF(tmp); |
77 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE64", PyLong_FromLong(11)); | 77 } |
78 | |
79 { | |
80 PyObject* tmp = PyLong_FromLong(3); | |
81 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "SIGNED_GRAYSCALE16", tmp); | |
82 Py_DECREF(tmp); | |
83 } | |
84 | |
85 { | |
86 PyObject* tmp = PyLong_FromLong(4); | |
87 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGB24", tmp); | |
88 Py_DECREF(tmp); | |
89 } | |
90 | |
91 { | |
92 PyObject* tmp = PyLong_FromLong(5); | |
93 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGBA32", tmp); | |
94 Py_DECREF(tmp); | |
95 } | |
96 | |
97 { | |
98 PyObject* tmp = PyLong_FromLong(6); | |
99 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "UNKNOWN", tmp); | |
100 Py_DECREF(tmp); | |
101 } | |
102 | |
103 { | |
104 PyObject* tmp = PyLong_FromLong(7); | |
105 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "RGB48", tmp); | |
106 Py_DECREF(tmp); | |
107 } | |
108 | |
109 { | |
110 PyObject* tmp = PyLong_FromLong(8); | |
111 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE32", tmp); | |
112 Py_DECREF(tmp); | |
113 } | |
114 | |
115 { | |
116 PyObject* tmp = PyLong_FromLong(9); | |
117 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "FLOAT32", tmp); | |
118 Py_DECREF(tmp); | |
119 } | |
120 | |
121 { | |
122 PyObject* tmp = PyLong_FromLong(10); | |
123 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "BGRA32", tmp); | |
124 Py_DECREF(tmp); | |
125 } | |
126 | |
127 { | |
128 PyObject* tmp = PyLong_FromLong(11); | |
129 PyDict_SetItemString(sdk_OrthancPluginPixelFormat_Type.tp_dict, "GRAYSCALE64", tmp); | |
130 Py_DECREF(tmp); | |
131 } | |
132 | |
78 | 133 |
79 Py_INCREF(&sdk_OrthancPluginPixelFormat_Type); | 134 Py_INCREF(&sdk_OrthancPluginPixelFormat_Type); |
80 if (PyModule_AddObject(module, "PixelFormat", (PyObject *)&sdk_OrthancPluginPixelFormat_Type) < 0) | 135 if (PyModule_AddObject(module, "PixelFormat", (PyObject *)&sdk_OrthancPluginPixelFormat_Type) < 0) |
81 { | 136 { |
82 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginPixelFormat"); | 137 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginPixelFormat"); |