]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Cosmetics.
authorGuido van Rossum <guido@python.org>
Mon, 4 Nov 1991 18:04:14 +0000 (18:04 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 4 Nov 1991 18:04:14 +0000 (18:04 +0000)
Demo/sgi/video/camcorder.py

index 63a4f743fa2b48e7e7de9a4b88234bc0e9a3d3c8..528ff299cf41eb8fb498bb3d26f75aff72c65dde 100755 (executable)
@@ -9,7 +9,7 @@ import posix
 import vtime
 
 # Preallocation parameter
-PREALLOC = 8 # Megabyte
+PREALLOC = 4 # Megabyte
 
 # Sync audio parameters
 SYNCPORT = 10000
@@ -44,7 +44,6 @@ def prealloc(w, h):
        print 'Done.'
 
 def grabframe(f,x,y,w,h,pf):
-####    saveframes(f, w, h, pf)
     readsource(SRC_FRONT)
     if pf:
        w = w/pf*pf
@@ -143,7 +142,7 @@ def main():
     f = open(filename, 'w')
     w, h = getsize()
     realw, realh = w, h
-    #doublebuffer()
+    ####doublebuffer()
     RGBmode()
     gconfig()
     qdevice(LEFTMOUSE)
@@ -247,7 +246,7 @@ def main():
                        rectcopy(vidx+x,vidy+y,vidx+x+w-1,vidy+y+h-1,x,y)
                else:
                        rectcopy(vidx,vidy,vidx+realw-1,vidx+realh-1,0,0)
-               #swapbuffers()
+               ####swapbuffers()
            if outrunning or outsingle:
                nframe = nframe + 1
                if not sizewritten: