Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d435fe

Browse files
committed
Cosmetics.
1 parent 7caf611 commit 7d435fe

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Demo/sgi/video/camcorder.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import vtime
1010

1111
# Preallocation parameter
12-
PREALLOC = 8 # Megabyte
12+
PREALLOC = 4 # Megabyte
1313

1414
# Sync audio parameters
1515
SYNCPORT = 10000
@@ -44,7 +44,6 @@ def prealloc(w, h):
4444
print 'Done.'
4545

4646
def grabframe(f,x,y,w,h,pf):
47-
#### saveframes(f, w, h, pf)
4847
readsource(SRC_FRONT)
4948
if pf:
5049
w = w/pf*pf
@@ -143,7 +142,7 @@ def main():
143142
f = open(filename, 'w')
144143
w, h = getsize()
145144
realw, realh = w, h
146-
#doublebuffer()
145+
####doublebuffer()
147146
RGBmode()
148147
gconfig()
149148
qdevice(LEFTMOUSE)
@@ -247,7 +246,7 @@ def main():
247246
rectcopy(vidx+x,vidy+y,vidx+x+w-1,vidy+y+h-1,x,y)
248247
else:
249248
rectcopy(vidx,vidy,vidx+realw-1,vidx+realh-1,0,0)
250-
#swapbuffers()
249+
####swapbuffers()
251250
if outrunning or outsingle:
252251
nframe = nframe + 1
253252
if not sizewritten:

0 commit comments

Comments
 (0)