From c82cfc86df16f9f6e72654f0b8912c78e4b0eada Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 19 Feb 1993 10:06:28 +0000 Subject: [PATCH] Fix to allow tightly packed films to be converted --- Demo/sgi/video/video2rgb.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Demo/sgi/video/video2rgb.py b/Demo/sgi/video/video2rgb.py index 07407a80fc4..61456c48fe3 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`