PyTurboJPEG 1.8.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyTurboJPEG
3
- Version: 1.8.3
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
@@ -16,9 +16,11 @@ Requires-Dist: pytest>=7.0.0; extra == "test"
16
16
  A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.
17
17
 
18
18
  ## Prerequisites
19
- - [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+)
20
20
  - [numpy](https://github.com/numpy/numpy)
21
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
+
22
24
  ## Example
23
25
 
24
26
  ```python
@@ -202,31 +204,3 @@ cv2.waitKey(0)
202
204
  - sudo apt-get update
203
205
  - sudo apt-get install libturbojpeg
204
206
  - pip install -U git+https://github.com/lilohuang/PyTurboJPEG.git
205
-
206
- ## Benchmark
207
-
208
- ### macOS
209
- - macOS Sierra 10.12.6
210
- - Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
211
- - opencv-python 3.4.0.12 (pre-built)
212
- - turbo-jpeg 1.5.3 (pre-built)
213
-
214
- | Function | Wall-clock time |
215
- | ----------------------|-----------------|
216
- | cv2.imdecode()       | 0.528 sec   |
217
- | TurboJPEG.decode() | 0.191 sec |
218
- | cv2.imencode()       | 0.875 sec   |
219
- | TurboJPEG.encode() | 0.176 sec |
220
-
221
- ### Windows
222
- - Windows 7 Ultimate 64-bit
223
- - Intel(R) Xeon(R) E3-1276 v3 CPU @ 3.60 GHz
224
- - opencv-python 3.4.0.12 (pre-built)
225
- - turbo-jpeg 1.5.3 (pre-built)
226
-
227
- | Function | Wall-clock time |
228
- | ----------------------|-----------------|
229
- | cv2.imdecode()       | 0.358 sec   |
230
- | TurboJPEG.decode() | 0.135 sec |
231
- | cv2.imencode()       | 0.581 sec   |
232
- | TurboJPEG.encode() | 0.140 sec |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyTurboJPEG
3
- Version: 1.8.3
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
@@ -16,9 +16,11 @@ Requires-Dist: pytest>=7.0.0; extra == "test"
16
16
  A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.
17
17
 
18
18
  ## Prerequisites
19
- - [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+)
20
20
  - [numpy](https://github.com/numpy/numpy)
21
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
+
22
24
  ## Example
23
25
 
24
26
  ```python
@@ -202,31 +204,3 @@ cv2.waitKey(0)
202
204
  - sudo apt-get update
203
205
  - sudo apt-get install libturbojpeg
204
206
  - pip install -U git+https://github.com/lilohuang/PyTurboJPEG.git
205
-
206
- ## Benchmark
207
-
208
- ### macOS
209
- - macOS Sierra 10.12.6
210
- - Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
211
- - opencv-python 3.4.0.12 (pre-built)
212
- - turbo-jpeg 1.5.3 (pre-built)
213
-
214
- | Function | Wall-clock time |
215
- | ----------------------|-----------------|
216
- | cv2.imdecode()       | 0.528 sec   |
217
- | TurboJPEG.decode() | 0.191 sec |
218
- | cv2.imencode()       | 0.875 sec   |
219
- | TurboJPEG.encode() | 0.176 sec |
220
-
221
- ### Windows
222
- - Windows 7 Ultimate 64-bit
223
- - Intel(R) Xeon(R) E3-1276 v3 CPU @ 3.60 GHz
224
- - opencv-python 3.4.0.12 (pre-built)
225
- - turbo-jpeg 1.5.3 (pre-built)
226
-
227
- | Function | Wall-clock time |
228
- | ----------------------|-----------------|
229
- | cv2.imdecode()       | 0.358 sec   |
230
- | TurboJPEG.decode() | 0.135 sec |
231
- | cv2.imencode()       | 0.581 sec   |
232
- | TurboJPEG.encode() | 0.140 sec |
@@ -6,4 +6,5 @@ PyTurboJPEG.egg-info/PKG-INFO
6
6
  PyTurboJPEG.egg-info/SOURCES.txt
7
7
  PyTurboJPEG.egg-info/dependency_links.txt
8
8
  PyTurboJPEG.egg-info/requires.txt
9
- PyTurboJPEG.egg-info/top_level.txt
9
+ PyTurboJPEG.egg-info/top_level.txt
10
+ tests/test_turbojpeg.py
@@ -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,7 +2,7 @@ import io
2
2
  from setuptools import setup, find_packages
3
3
  setup(
4
4
  name='PyTurboJPEG',
5
- version='1.8.3',
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',