summaryrefslogtreecommitdiffstats
path: root/Demo/sgi
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1993-06-08 12:47:20 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1993-06-08 12:47:20 (GMT)
commit35173716e5fbd7c3ebe6ddf2465b82d02532ab1c (patch)
tree0a27b81806325733a1e0e30c56c8e32e6c04f268 /Demo/sgi
parenta1e1f73e2f3882fe7c86948bc2ad1c34f4e61b19 (diff)
downloadcpython-35173716e5fbd7c3ebe6ddf2465b82d02532ab1c.zip
cpython-35173716e5fbd7c3ebe6ddf2465b82d02532ab1c.tar.gz
cpython-35173716e5fbd7c3ebe6ddf2465b82d02532ab1c.tar.bz2
Added jpeg grabber
Diffstat (limited to 'Demo/sgi')
-rwxr-xr-xDemo/sgi/video/VGrabber.py6
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'