diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1993-02-19 10:06:28 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1993-02-19 10:06:28 (GMT) |
commit | c82cfc86df16f9f6e72654f0b8912c78e4b0eada (patch) | |
tree | 14d0ff9f011913565eb39262965e9992ed484ebd /Demo/sgi | |
parent | 245be3a3c5d79915dda12ad1a7b066d48bb4f67c (diff) | |
download | cpython-c82cfc86df16f9f6e72654f0b8912c78e4b0eada.zip cpython-c82cfc86df16f9f6e72654f0b8912c78e4b0eada.tar.gz cpython-c82cfc86df16f9f6e72654f0b8912c78e4b0eada.tar.bz2 |
Fix to allow tightly packed films to be converted
Diffstat (limited to 'Demo/sgi')
-rwxr-xr-x | Demo/sgi/video/video2rgb.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Demo/sgi/video/video2rgb.py b/Demo/sgi/video/video2rgb.py index 07407a8..61456c4 100755 --- a/Demo/sgi/video/video2rgb.py +++ b/Demo/sgi/video/video2rgb.py @@ -18,7 +18,7 @@ def help(): # Imported modules import sys -sys.path.append('/ufs/guido/src/video') # Increase chance of finding VFile +sys.path.append('/ufs/jack/src/av/video') # Increase chance of finding VFile import VFile import time import getopt @@ -112,6 +112,12 @@ def process(filename): def convert(vin, cf, width, height, depth, pf): global seqno + if type(pf) == type(()): + xpf, ypf = pf + elif pf == 0: + xpf = ypf = 1 + else: + xpf = ypf = pf while 1: try: time, data, cdata = vin.getnextframe() @@ -120,6 +126,7 @@ def convert(vin, cf, width, height, depth, pf): if cdata: print 'Film contains chromdata!' return + data = cf(data, width/xpf, height/abs(ypf)) if pf: data = applypackfactor(data, width, height, pf) s = `seqno` |