diff options
author | Guido van Rossum <guido@python.org> | 1993-02-25 16:10:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-02-25 16:10:16 (GMT) |
commit | 85f7bd5251398f4a114740a39222772025a895b7 (patch) | |
tree | 8201b1a9a2946add803bb5659ed793a88ab86b51 /Demo/sgi/video/Vcopy.py | |
parent | c97d2eddee1d679553a35728b44b5c8ff01d7ce6 (diff) | |
download | cpython-85f7bd5251398f4a114740a39222772025a895b7.zip cpython-85f7bd5251398f4a114740a39222772025a895b7.tar.gz cpython-85f7bd5251398f4a114740a39222772025a895b7.tar.bz2 |
Vrec.py, Vrecb.py:
- call v.SetParam() after v.BindGLWindow()
- turn of dithering in mono/grey mode
- use prefposition to place the top left corner at (150, 150)
(so that the video remains visible during recording)
- default width is 256
Vcopy.py: correct typos; more verbose output.
OldVcopy.py: new name for Jack's old grabbing Vcopy.py.
Vstat.py: print values of all video parameters.
Diffstat (limited to 'Demo/sgi/video/Vcopy.py')
-rwxr-xr-x | Demo/sgi/video/Vcopy.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Demo/sgi/video/Vcopy.py b/Demo/sgi/video/Vcopy.py index f9c954a..e8d4f55 100755 --- a/Demo/sgi/video/Vcopy.py +++ b/Demo/sgi/video/Vcopy.py @@ -166,6 +166,7 @@ def process(infilename, outfilename): sys.stderr.write(outfilename + ': I/O error: ' + `msg` + '\n') return 1 + print '=== input file ===' vin.printinfo() vout.setinfo(vin.getinfo()) @@ -187,7 +188,6 @@ def process(infilename, outfilename): if not ypf: ypf = vout.ypf newpf = (xpf, ypf) vout.setpf(newpf) - scale = 1 if newwidth and newheight: scale = 1 @@ -221,6 +221,7 @@ def process(infilename, outfilename): newwidth = newwidth / vout.xpf newheight = newheight / vout.ypf + print '=== output file ===' vout.printinfo() vout.writeheader() @@ -251,13 +252,14 @@ def process(infilename, outfilename): inwidth, inheight, newwidth, newheight) if flip: x0, y0 = 0, 0 - x1, y1 = newwidth-1, neheight-1 + x1, y1 = newwidth-1, newheight-1 if vin.upside_down <> vout.upside_down: y1, y0 = y0, y1 if vin.mirror_image <> vout.mirror_image: x1, x0 = x0, x1 data = imageop.crop(data, vout.bpp/8, \ newwidth, newheight, x0, y0, x1, y1) + print 'Writing frame', nout vout.writeframe(tout, data, cdata) nout = nout + 1 |