diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1993-06-08 12:47:20 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1993-06-08 12:47:20 (GMT) |
commit | 35173716e5fbd7c3ebe6ddf2465b82d02532ab1c (patch) | |
tree | 0a27b81806325733a1e0e30c56c8e32e6c04f268 /Demo/sgi | |
parent | a1e1f73e2f3882fe7c86948bc2ad1c34f4e61b19 (diff) | |
download | cpython-35173716e5fbd7c3ebe6ddf2465b82d02532ab1c.zip cpython-35173716e5fbd7c3ebe6ddf2465b82d02532ab1c.tar.gz cpython-35173716e5fbd7c3ebe6ddf2465b82d02532ab1c.tar.bz2 |
Added jpeg grabber
Diffstat (limited to 'Demo/sgi')
-rwxr-xr-x | Demo/sgi/video/VGrabber.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Demo/sgi/video/VGrabber.py b/Demo/sgi/video/VGrabber.py index 74813b1..3c8693c 100755 --- a/Demo/sgi/video/VGrabber.py +++ b/Demo/sgi/video/VGrabber.py @@ -71,8 +71,10 @@ def grab_hsv(w, h, pf): raise Error, 'Sorry, grabbing hsv not implemented' def grab_jpeg(w, h, pf): - # XXX Ought to grab rgb and compress it - raise Error, 'sorry, grabbing jpeg not implemented' + data, dummy = grab_rgb(w, h, pf) + import jpeg + data = jpeg.compress(data, w, h, 4) + return data, None def grab_jpeggrey(w, h, pf): raise Error, 'sorry, grabbing jpeggrey not implemented' |