mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-30 09:53:39 +03:00
Merge pull request #8739 from radarhere/boolean
This commit is contained in:
commit
3c2310e090
|
@ -1253,7 +1253,7 @@ PyImaging_Jpeg2KEncoderNew(PyObject *self, PyObject *args) {
|
||||||
PyObject *quality_layers = NULL;
|
PyObject *quality_layers = NULL;
|
||||||
Py_ssize_t num_resolutions = 0;
|
Py_ssize_t num_resolutions = 0;
|
||||||
PyObject *cblk_size = NULL, *precinct_size = NULL;
|
PyObject *cblk_size = NULL, *precinct_size = NULL;
|
||||||
PyObject *irreversible = NULL;
|
int irreversible = 0;
|
||||||
char *progression = "LRCP";
|
char *progression = "LRCP";
|
||||||
OPJ_PROG_ORDER prog_order;
|
OPJ_PROG_ORDER prog_order;
|
||||||
char *cinema_mode = "no";
|
char *cinema_mode = "no";
|
||||||
|
@ -1267,7 +1267,7 @@ PyImaging_Jpeg2KEncoderNew(PyObject *self, PyObject *args) {
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(
|
if (!PyArg_ParseTuple(
|
||||||
args,
|
args,
|
||||||
"ss|OOOsOnOOOssbbnz#p",
|
"ss|OOOsOnOOpssbbnz#p",
|
||||||
&mode,
|
&mode,
|
||||||
&format,
|
&format,
|
||||||
&offset,
|
&offset,
|
||||||
|
@ -1402,7 +1402,7 @@ PyImaging_Jpeg2KEncoderNew(PyObject *self, PyObject *args) {
|
||||||
precinct_size, &context->precinct_width, &context->precinct_height
|
precinct_size, &context->precinct_width, &context->precinct_height
|
||||||
);
|
);
|
||||||
|
|
||||||
context->irreversible = PyObject_IsTrue(irreversible);
|
context->irreversible = irreversible;
|
||||||
context->progression = prog_order;
|
context->progression = prog_order;
|
||||||
context->cinema_mode = cine_mode;
|
context->cinema_mode = cine_mode;
|
||||||
context->mct = mct;
|
context->mct = mct;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user