Glymur 0.13.0__py3-none-any.whl → 0.13.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {Glymur-0.13.0.dist-info → Glymur-0.13.1.dist-info}/METADATA +1 -1
- {Glymur-0.13.0.dist-info → Glymur-0.13.1.dist-info}/RECORD +10 -10
- glymur/jp2box.py +0 -3
- glymur/jp2kr.py +0 -56
- glymur/lib/tiff.py +0 -18
- glymur/version.py +1 -1
- {Glymur-0.13.0.dist-info → Glymur-0.13.1.dist-info}/LICENSE.txt +0 -0
- {Glymur-0.13.0.dist-info → Glymur-0.13.1.dist-info}/WHEEL +0 -0
- {Glymur-0.13.0.dist-info → Glymur-0.13.1.dist-info}/entry_points.txt +0 -0
- {Glymur-0.13.0.dist-info → Glymur-0.13.1.dist-info}/top_level.txt +0 -0
|
@@ -4,22 +4,22 @@ glymur/codestream.py,sha256=R9eEFFwndNpx4ixFFisfUJXi9bX5Ofp-eqGfULXOq4w,59979
|
|
|
4
4
|
glymur/command_line.py,sha256=jm-6dD2jcU_G7mJAJ0U5sanfG9kRy-j0-G3eSN_Ieek,7476
|
|
5
5
|
glymur/config.py,sha256=BDjNKkjb7oOleqSTxYpvS4uhEIo0TknVjvelJSUJKGM,4443
|
|
6
6
|
glymur/core.py,sha256=IDkk8FESyukQTB10LHBZ4VQM36NwKE4CXCcuJ407Kzg,3638
|
|
7
|
-
glymur/jp2box.py,sha256=
|
|
7
|
+
glymur/jp2box.py,sha256=FyyWoVc0Pse5A1UQWiOPoOvMhxJKleKjrBXuXzIH6BI,112477
|
|
8
8
|
glymur/jp2k.py,sha256=iEO5bd-Jzla5s2gflwXhPgrRNjUm0HyWPjhx2IK_mGI,54689
|
|
9
|
-
glymur/jp2kr.py,sha256=
|
|
9
|
+
glymur/jp2kr.py,sha256=glr57vIZEe2L_V8J5sOuYgnTGRTM4mGZeS240lxK9hw,31686
|
|
10
10
|
glymur/options.py,sha256=-JZrrDzYsLZZ9Rce6l9e_lxtSGtXoWo9j3wajyDHVi8,6386
|
|
11
11
|
glymur/tiff.py,sha256=bHqR0mQPcIAUjKEujaYLVpnSOP0gfGNCA20_ORaznq0,41653
|
|
12
|
-
glymur/version.py,sha256=
|
|
12
|
+
glymur/version.py,sha256=ovhSpUXA79dE_wg4pI2hs6BE68ZtSCno7sXhvJvWv0U,981
|
|
13
13
|
glymur/data/__init__.py,sha256=pU_6hn1_8aAVVdgCAIUY1B73VkLf_nSlunQuPcGgVTU,1163
|
|
14
14
|
glymur/data/goodstuff.j2k,sha256=xKQG68KMu33gYjRUDTQvam1Cue2tdio85rNp5J-rYZE,115220
|
|
15
15
|
glymur/data/heliov.jpx,sha256=KXnYdBZgl25jcGLu-m-QfhuP9pqUXV0Hp9HHEdJqr34,1399071
|
|
16
16
|
glymur/data/nemo.jp2,sha256=yJ1NkTEwU0B_gBtAiA1c5hxtGYSJtJgq6cHC2IHpj70,1132373
|
|
17
17
|
glymur/lib/__init__.py,sha256=JnM9oPfcZhBDLKo7_yLS-lIRQ1wXb1N9hKKQ-G7vYVk,127
|
|
18
18
|
glymur/lib/openjp2.py,sha256=qHvKDGtdCYuPtrFWnT248s90j8tju-kIx22vEDcAyfU,44941
|
|
19
|
-
glymur/lib/tiff.py,sha256=
|
|
20
|
-
Glymur-0.13.
|
|
21
|
-
Glymur-0.13.
|
|
22
|
-
Glymur-0.13.
|
|
23
|
-
Glymur-0.13.
|
|
24
|
-
Glymur-0.13.
|
|
25
|
-
Glymur-0.13.
|
|
19
|
+
glymur/lib/tiff.py,sha256=hvRrpDh9wLGcAZ7GBHjHrRICk5PNJGEWn45ArRvGh20,50485
|
|
20
|
+
Glymur-0.13.1.dist-info/LICENSE.txt,sha256=G9pvBgkJdPTtZqQmoRyIgAydtic1ZwWtOWBea9VMW7I,1077
|
|
21
|
+
Glymur-0.13.1.dist-info/METADATA,sha256=GjT7wVmOncBZRNH7hj0J2YpVKIbrsJ1GzvsLmOR1UnU,1070
|
|
22
|
+
Glymur-0.13.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
23
|
+
Glymur-0.13.1.dist-info/entry_points.txt,sha256=inzxpDbDDfIxtdXpCncAHdAdwJfjtXt3xKvIOsuZsG8,93
|
|
24
|
+
Glymur-0.13.1.dist-info/top_level.txt,sha256=D0SvtBUoPxOs40OTRW3l-kjGFHM6VrXS8yZPK5Fx2wY,7
|
|
25
|
+
Glymur-0.13.1.dist-info/RECORD,,
|
glymur/jp2box.py
CHANGED
glymur/jp2kr.py
CHANGED
|
@@ -915,62 +915,6 @@ class Jp2kr(Jp2kBox):
|
|
|
915
915
|
|
|
916
916
|
return codestream
|
|
917
917
|
|
|
918
|
-
def _populate_image_struct(
|
|
919
|
-
self, image, imgdata, tile_x_factor=1, tile_y_factor=1
|
|
920
|
-
):
|
|
921
|
-
"""Populates image struct needed for compression.
|
|
922
|
-
|
|
923
|
-
Parameters
|
|
924
|
-
----------
|
|
925
|
-
image : ImageType(ctypes.Structure)
|
|
926
|
-
Corresponds to image_t type in openjp2 headers.
|
|
927
|
-
imgdata : ndarray
|
|
928
|
-
Image data to be written to file.
|
|
929
|
-
tile_x_factor, tile_y_factor: int
|
|
930
|
-
Used only when writing tile-by-tile. In this case, the image data
|
|
931
|
-
that we have is only the size of a single tile.
|
|
932
|
-
"""
|
|
933
|
-
|
|
934
|
-
if len(self.shape) < 3:
|
|
935
|
-
(numrows, numcols), num_comps = self.shape, 1
|
|
936
|
-
else:
|
|
937
|
-
numrows, numcols, num_comps = self.shape
|
|
938
|
-
|
|
939
|
-
for k in range(num_comps):
|
|
940
|
-
self._validate_nonzero_image_size(numrows, numcols, k)
|
|
941
|
-
|
|
942
|
-
# set image offset and reference grid
|
|
943
|
-
image.contents.x0 = self._cparams.image_offset_x0
|
|
944
|
-
image.contents.y0 = self._cparams.image_offset_y0
|
|
945
|
-
image.contents.x1 = (
|
|
946
|
-
image.contents.x0
|
|
947
|
-
+ (numcols - 1) * self._cparams.subsampling_dx * tile_x_factor
|
|
948
|
-
+ 1
|
|
949
|
-
)
|
|
950
|
-
image.contents.y1 = (
|
|
951
|
-
image.contents.y0
|
|
952
|
-
+ (numrows - 1) * self._cparams.subsampling_dy * tile_y_factor
|
|
953
|
-
+ 1
|
|
954
|
-
)
|
|
955
|
-
|
|
956
|
-
if tile_x_factor != 1 or tile_y_factor != 1:
|
|
957
|
-
# don't stage the data if writing tiles
|
|
958
|
-
return image
|
|
959
|
-
|
|
960
|
-
# Stage the image data to the openjpeg data structure.
|
|
961
|
-
for k in range(0, num_comps):
|
|
962
|
-
if self._cparams.rsiz in (core.OPJ_PROFILE_CINEMA_2K,
|
|
963
|
-
core.OPJ_PROFILE_CINEMA_4K):
|
|
964
|
-
image.contents.comps[k].prec = 12
|
|
965
|
-
image.contents.comps[k].bpp = 12
|
|
966
|
-
|
|
967
|
-
layer = np.ascontiguousarray(imgdata[:, :, k], dtype=np.int32)
|
|
968
|
-
dest = image.contents.comps[k].data
|
|
969
|
-
src = layer.ctypes.data
|
|
970
|
-
ctypes.memmove(dest, src, layer.nbytes)
|
|
971
|
-
|
|
972
|
-
return image
|
|
973
|
-
|
|
974
918
|
def _validate_nonzero_image_size(self, nrows, ncols, component_index):
|
|
975
919
|
"""The image cannot have area of zero."""
|
|
976
920
|
if nrows == 0 or ncols == 0:
|
glymur/lib/tiff.py
CHANGED
|
@@ -552,24 +552,6 @@ def getVersion():
|
|
|
552
552
|
return m.group('version')
|
|
553
553
|
|
|
554
554
|
|
|
555
|
-
def printDirectory(tiff_fp, ofp, mode=0):
|
|
556
|
-
"""Corresponds to TIFFPrintDirectory
|
|
557
|
-
|
|
558
|
-
Parameters
|
|
559
|
-
----------
|
|
560
|
-
filename : path or str
|
|
561
|
-
Path to TIFF
|
|
562
|
-
"""
|
|
563
|
-
err_handler, warn_handler = _set_error_warning_handlers()
|
|
564
|
-
|
|
565
|
-
ARGTYPES = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_long]
|
|
566
|
-
_LIBTIFF.TIFFPrintDirectory.argtypes = ARGTYPES
|
|
567
|
-
_LIBTIFF.TIFFPrintDirectory.restype = ctypes.c_void_p
|
|
568
|
-
_LIBTIFF.TIFFPrintDirectory(tiff_fp, ofp, mode)
|
|
569
|
-
|
|
570
|
-
_reset_error_warning_handlers(err_handler, warn_handler)
|
|
571
|
-
|
|
572
|
-
|
|
573
555
|
def open(filename, mode='r'):
|
|
574
556
|
"""Corresponds to TIFFOpen
|
|
575
557
|
|
glymur/version.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|