summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-02-25 00:17:22 (GMT)
committerGuido van Rossum <guido@python.org>1993-02-25 00:17:22 (GMT)
commitbe6d77a9b8b4e97ff2892eddb9c54c5d81a79e39 (patch)
tree96037c1b54011eb4d0e9cb7218d4fc1f84bb0568
parent83c81448b1db067a8eeea140afbde525499f507b (diff)
downloadcpython-be6d77a9b8b4e97ff2892eddb9c54c5d81a79e39.zip
cpython-be6d77a9b8b4e97ff2892eddb9c54c5d81a79e39.tar.gz
cpython-be6d77a9b8b4e97ff2892eddb9c54c5d81a79e39.tar.bz2
Fix typos in jpeg code
-rwxr-xr-xDemo/sgi/video/imgconv.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/sgi/video/imgconv.py b/Demo/sgi/video/imgconv.py
index ab004c2..af6d60e 100755
--- a/Demo/sgi/video/imgconv.py
+++ b/Demo/sgi/video/imgconv.py
@@ -21,14 +21,14 @@ def rgb2jpeg(img, x, y):
def jpeggrey2grey(img, width, height):
import jpeg
- data, width, height, bytesperpixel = jpeg.decompress(data)
+ data, width, height, bytesperpixel = jpeg.decompress(img)
if bytesperpixel <> 1: raise RuntimeError, 'not grayscale jpeg'
return data
def jpeg2rgb(img, width, height):
import cl, CL
import jpeg
- data, width, height, bytesperpixel = jpeg.decompress(data)
+ data, width, height, bytesperpixel = jpeg.decompress(img)
if bytesperpixel <> 4: raise RuntimeError, 'not rgb jpeg'
return data
@@ -44,9 +44,9 @@ converters = [ \
('rgb', 'grey', imageop.rgb2grey, LOSSY), \
('grey', 'rgb', imageop.grey2rgb, NOT_LOSSY), \
('jpeggrey','grey',jpeggrey2grey, NOT_LOSSY), \
- ('grey', 'jpeggrey',grey2jpeggrey, NOT_LOSSY), \
+ ('grey', 'jpeggrey',grey2jpeggrey, LOSSY), \
('jpeg', 'rgb', jpeg2rgb, NOT_LOSSY), \
- ('rgb', 'jpeg', rgb2jpeg, NOT_LOSSY), \
+ ('rgb', 'jpeg', rgb2jpeg, LOSSY), \
]
built = {}