Skip to content

Commit

Permalink
Bump version to v1.5.0 (#36)
Browse files Browse the repository at this point in the history
* Update README.md
* Update turbojpeg.py
* Update setup.py
  • Loading branch information
lilohuang authored Apr 29, 2021
1 parent c2d23b8 commit 900d9f3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@ scaling_factors = jpeg.scaling_factors

# decoding JPEG image properties
in_file = open('input.jpg', 'rb')
(width, height, jpeg_subsample, jpeg_colorspace) = jpeg.decode_header(in_file.read())
width, height, jpeg_subsample, jpeg_colorspace = jpeg.decode_header(in_file.read())
in_file.close()

# decoding input.jpg to YUV array
in_file = open('input.jpg', 'rb')
buffer_array, plane_sizes = jpeg.decode_to_yuv(in_file.read())
in_file.close()

# decoding input.jpg to YUV planes
in_file = open('input.jpg', 'rb')
planes = jpeg.decode_to_yuv_planes(in_file.read())
in_file.close()

# encoding BGR array to output.jpg with default settings.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages
setup(
name='PyTurboJPEG',
version='1.4.3',
version='1.5.0',
description='A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.',
author='Lilo Huang',
author_email='kuso.cc@gmail.com',
Expand Down
2 changes: 1 addition & 1 deletion turbojpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# SOFTWARE.

__author__ = 'Lilo Huang <kuso.cc@gmail.com>'
__version__ = '1.4.3'
__version__ = '1.5.0'

from ctypes import *
from ctypes.util import find_library
Expand Down

0 comments on commit 900d9f3

Please sign in to comment.