PyTurboJPEG 1.8.2__tar.gz → 2.0.0__tar.gz
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.
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/LICENSE +1 -1
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/PKG-INFO +7 -33
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/PyTurboJPEG.egg-info/PKG-INFO +7 -33
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/PyTurboJPEG.egg-info/SOURCES.txt +2 -1
- pyturbojpeg-2.0.0/PyTurboJPEG.egg-info/requires.txt +4 -0
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/README.md +3 -29
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/setup.py +4 -1
- pyturbojpeg-2.0.0/tests/test_turbojpeg.py +1286 -0
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/turbojpeg.py +279 -166
- PyTurboJPEG-1.8.2/PyTurboJPEG.egg-info/requires.txt +0 -1
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/PyTurboJPEG.egg-info/dependency_links.txt +0 -0
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/PyTurboJPEG.egg-info/top_level.txt +0 -0
- {PyTurboJPEG-1.8.2 → pyturbojpeg-2.0.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2018-
|
|
3
|
+
Copyright (c) 2018-2026 Lilo Huang <kuso.cc@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyTurboJPEG
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.
|
|
5
5
|
Home-page: https://github.com/lilohuang/PyTurboJPEG
|
|
6
6
|
Author: Lilo Huang
|
|
7
7
|
Author-email: kuso.cc@gmail.com
|
|
8
8
|
License: MIT
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Description-Content-Type: text/markdown
|
|
11
10
|
License-File: LICENSE
|
|
11
|
+
Requires-Dist: numpy
|
|
12
|
+
Provides-Extra: test
|
|
13
|
+
Requires-Dist: pytest>=7.0.0; extra == "test"
|
|
12
14
|
|
|
13
15
|
# PyTurboJPEG
|
|
14
16
|
A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.
|
|
15
17
|
|
|
16
18
|
## Prerequisites
|
|
17
|
-
- [libjpeg-turbo](https://github.com/libjpeg-turbo/libjpeg-turbo/releases)
|
|
19
|
+
- [libjpeg-turbo](https://github.com/libjpeg-turbo/libjpeg-turbo/releases) **3.0 or later** (required for PyTurboJPEG 2.0+)
|
|
18
20
|
- [numpy](https://github.com/numpy/numpy)
|
|
19
21
|
|
|
22
|
+
**Important**: PyTurboJPEG 2.0+ requires libjpeg-turbo 3.0 or later as it uses the new function-based TurboJPEG 3 API. If you need to use libjpeg-turbo 2.x, please use PyTurboJPEG 1.x instead.
|
|
23
|
+
|
|
20
24
|
## Example
|
|
21
25
|
|
|
22
26
|
```python
|
|
@@ -200,33 +204,3 @@ cv2.waitKey(0)
|
|
|
200
204
|
- sudo apt-get update
|
|
201
205
|
- sudo apt-get install libturbojpeg
|
|
202
206
|
- pip install -U git+https://github.com/lilohuang/PyTurboJPEG.git
|
|
203
|
-
|
|
204
|
-
## Benchmark
|
|
205
|
-
|
|
206
|
-
### macOS
|
|
207
|
-
- macOS Sierra 10.12.6
|
|
208
|
-
- Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
|
|
209
|
-
- opencv-python 3.4.0.12 (pre-built)
|
|
210
|
-
- turbo-jpeg 1.5.3 (pre-built)
|
|
211
|
-
|
|
212
|
-
| Function | Wall-clock time |
|
|
213
|
-
| ----------------------|-----------------|
|
|
214
|
-
| cv2.imdecode() | 0.528 sec |
|
|
215
|
-
| TurboJPEG.decode() | 0.191 sec |
|
|
216
|
-
| cv2.imencode() | 0.875 sec |
|
|
217
|
-
| TurboJPEG.encode() | 0.176 sec |
|
|
218
|
-
|
|
219
|
-
### Windows
|
|
220
|
-
- Windows 7 Ultimate 64-bit
|
|
221
|
-
- Intel(R) Xeon(R) E3-1276 v3 CPU @ 3.60 GHz
|
|
222
|
-
- opencv-python 3.4.0.12 (pre-built)
|
|
223
|
-
- turbo-jpeg 1.5.3 (pre-built)
|
|
224
|
-
|
|
225
|
-
| Function | Wall-clock time |
|
|
226
|
-
| ----------------------|-----------------|
|
|
227
|
-
| cv2.imdecode() | 0.358 sec |
|
|
228
|
-
| TurboJPEG.decode() | 0.135 sec |
|
|
229
|
-
| cv2.imencode() | 0.581 sec |
|
|
230
|
-
| TurboJPEG.encode() | 0.140 sec |
|
|
231
|
-
|
|
232
|
-
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyTurboJPEG
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.
|
|
5
5
|
Home-page: https://github.com/lilohuang/PyTurboJPEG
|
|
6
6
|
Author: Lilo Huang
|
|
7
7
|
Author-email: kuso.cc@gmail.com
|
|
8
8
|
License: MIT
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Description-Content-Type: text/markdown
|
|
11
10
|
License-File: LICENSE
|
|
11
|
+
Requires-Dist: numpy
|
|
12
|
+
Provides-Extra: test
|
|
13
|
+
Requires-Dist: pytest>=7.0.0; extra == "test"
|
|
12
14
|
|
|
13
15
|
# PyTurboJPEG
|
|
14
16
|
A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.
|
|
15
17
|
|
|
16
18
|
## Prerequisites
|
|
17
|
-
- [libjpeg-turbo](https://github.com/libjpeg-turbo/libjpeg-turbo/releases)
|
|
19
|
+
- [libjpeg-turbo](https://github.com/libjpeg-turbo/libjpeg-turbo/releases) **3.0 or later** (required for PyTurboJPEG 2.0+)
|
|
18
20
|
- [numpy](https://github.com/numpy/numpy)
|
|
19
21
|
|
|
22
|
+
**Important**: PyTurboJPEG 2.0+ requires libjpeg-turbo 3.0 or later as it uses the new function-based TurboJPEG 3 API. If you need to use libjpeg-turbo 2.x, please use PyTurboJPEG 1.x instead.
|
|
23
|
+
|
|
20
24
|
## Example
|
|
21
25
|
|
|
22
26
|
```python
|
|
@@ -200,33 +204,3 @@ cv2.waitKey(0)
|
|
|
200
204
|
- sudo apt-get update
|
|
201
205
|
- sudo apt-get install libturbojpeg
|
|
202
206
|
- pip install -U git+https://github.com/lilohuang/PyTurboJPEG.git
|
|
203
|
-
|
|
204
|
-
## Benchmark
|
|
205
|
-
|
|
206
|
-
### macOS
|
|
207
|
-
- macOS Sierra 10.12.6
|
|
208
|
-
- Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
|
|
209
|
-
- opencv-python 3.4.0.12 (pre-built)
|
|
210
|
-
- turbo-jpeg 1.5.3 (pre-built)
|
|
211
|
-
|
|
212
|
-
| Function | Wall-clock time |
|
|
213
|
-
| ----------------------|-----------------|
|
|
214
|
-
| cv2.imdecode() | 0.528 sec |
|
|
215
|
-
| TurboJPEG.decode() | 0.191 sec |
|
|
216
|
-
| cv2.imencode() | 0.875 sec |
|
|
217
|
-
| TurboJPEG.encode() | 0.176 sec |
|
|
218
|
-
|
|
219
|
-
### Windows
|
|
220
|
-
- Windows 7 Ultimate 64-bit
|
|
221
|
-
- Intel(R) Xeon(R) E3-1276 v3 CPU @ 3.60 GHz
|
|
222
|
-
- opencv-python 3.4.0.12 (pre-built)
|
|
223
|
-
- turbo-jpeg 1.5.3 (pre-built)
|
|
224
|
-
|
|
225
|
-
| Function | Wall-clock time |
|
|
226
|
-
| ----------------------|-----------------|
|
|
227
|
-
| cv2.imdecode() | 0.358 sec |
|
|
228
|
-
| TurboJPEG.decode() | 0.135 sec |
|
|
229
|
-
| cv2.imencode() | 0.581 sec |
|
|
230
|
-
| TurboJPEG.encode() | 0.140 sec |
|
|
231
|
-
|
|
232
|
-
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.
|
|
3
3
|
|
|
4
4
|
## Prerequisites
|
|
5
|
-
- [libjpeg-turbo](https://github.com/libjpeg-turbo/libjpeg-turbo/releases)
|
|
5
|
+
- [libjpeg-turbo](https://github.com/libjpeg-turbo/libjpeg-turbo/releases) **3.0 or later** (required for PyTurboJPEG 2.0+)
|
|
6
6
|
- [numpy](https://github.com/numpy/numpy)
|
|
7
7
|
|
|
8
|
+
**Important**: PyTurboJPEG 2.0+ requires libjpeg-turbo 3.0 or later as it uses the new function-based TurboJPEG 3 API. If you need to use libjpeg-turbo 2.x, please use PyTurboJPEG 1.x instead.
|
|
9
|
+
|
|
8
10
|
## Example
|
|
9
11
|
|
|
10
12
|
```python
|
|
@@ -188,31 +190,3 @@ cv2.waitKey(0)
|
|
|
188
190
|
- sudo apt-get update
|
|
189
191
|
- sudo apt-get install libturbojpeg
|
|
190
192
|
- pip install -U git+https://github.com/lilohuang/PyTurboJPEG.git
|
|
191
|
-
|
|
192
|
-
## Benchmark
|
|
193
|
-
|
|
194
|
-
### macOS
|
|
195
|
-
- macOS Sierra 10.12.6
|
|
196
|
-
- Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
|
|
197
|
-
- opencv-python 3.4.0.12 (pre-built)
|
|
198
|
-
- turbo-jpeg 1.5.3 (pre-built)
|
|
199
|
-
|
|
200
|
-
| Function | Wall-clock time |
|
|
201
|
-
| ----------------------|-----------------|
|
|
202
|
-
| cv2.imdecode() | 0.528 sec |
|
|
203
|
-
| TurboJPEG.decode() | 0.191 sec |
|
|
204
|
-
| cv2.imencode() | 0.875 sec |
|
|
205
|
-
| TurboJPEG.encode() | 0.176 sec |
|
|
206
|
-
|
|
207
|
-
### Windows
|
|
208
|
-
- Windows 7 Ultimate 64-bit
|
|
209
|
-
- Intel(R) Xeon(R) E3-1276 v3 CPU @ 3.60 GHz
|
|
210
|
-
- opencv-python 3.4.0.12 (pre-built)
|
|
211
|
-
- turbo-jpeg 1.5.3 (pre-built)
|
|
212
|
-
|
|
213
|
-
| Function | Wall-clock time |
|
|
214
|
-
| ----------------------|-----------------|
|
|
215
|
-
| cv2.imdecode() | 0.358 sec |
|
|
216
|
-
| TurboJPEG.decode() | 0.135 sec |
|
|
217
|
-
| cv2.imencode() | 0.581 sec |
|
|
218
|
-
| TurboJPEG.encode() | 0.140 sec |
|
|
@@ -2,13 +2,16 @@ import io
|
|
|
2
2
|
from setuptools import setup, find_packages
|
|
3
3
|
setup(
|
|
4
4
|
name='PyTurboJPEG',
|
|
5
|
-
version='
|
|
5
|
+
version='2.0.0',
|
|
6
6
|
description='A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.',
|
|
7
7
|
author='Lilo Huang',
|
|
8
8
|
author_email='kuso.cc@gmail.com',
|
|
9
9
|
url='https://github.com/lilohuang/PyTurboJPEG',
|
|
10
10
|
license='MIT',
|
|
11
11
|
install_requires=['numpy'],
|
|
12
|
+
extras_require={
|
|
13
|
+
'test': ['pytest>=7.0.0'],
|
|
14
|
+
},
|
|
12
15
|
py_modules=['turbojpeg'],
|
|
13
16
|
packages=find_packages(),
|
|
14
17
|
long_description_content_type='text/markdown',
|