Skip to content

Commit

Permalink
Update imagecodecs/_jpeg2k.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Dec 24, 2022
1 parent 497601f commit 530500f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions imagecodecs/_jpeg2k.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

"""JPEG 2000 codec for the imagecodecs package."""

__version__ = '2022.2.22'
__version__ = '2022.12.24'

include '_shared.pxi'

Expand Down Expand Up @@ -776,6 +776,7 @@ cdef opj_stream_t* opj_memstream_create(


cdef void j2k_error_callback(char* msg, void* client_data) with gil:
# TODO: this does not raise an exception, only prints the error message
raise Jpeg2kError(msg.decode().strip())


Expand All @@ -787,8 +788,8 @@ cdef void j2k_info_callback(char* msg, void* client_data) with gil:
_log_warning('JPEG2K info: %s', msg.decode().strip())


cdef OPJ_COLOR_SPACE opj_colorspace(colorspace):
"""Return OPJ colorspace value from user input."""
cdef opj_colorspace(colorspace):
"""Return OPJ_COLOR_SPACE value from user input."""
return {
'GRAY': OPJ_CLRSPC_GRAY,
'GRAYSCALE': OPJ_CLRSPC_GRAY,
Expand Down

0 comments on commit 530500f

Please sign in to comment.