summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/video/Vb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-09 13:26:29 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-09 13:26:29 (GMT)
commit1554b7b061fc8711b2a2ea7781c39b0139c274c0 (patch)
tree75c0271dbec9e9c0c6e40a876e98f488877d0e79 /Demo/sgi/video/Vb.py
parent1e57a04301355bec43044951d57c316e7d3ffc5b (diff)
downloadcpython-1554b7b061fc8711b2a2ea7781c39b0139c274c0.zip
cpython-1554b7b061fc8711b2a2ea7781c39b0139c274c0.tar.gz
cpython-1554b7b061fc8711b2a2ea7781c39b0139c274c0.tar.bz2
Use constants defined in cl module. (Sjoerd)
Diffstat (limited to 'Demo/sgi/video/Vb.py')
-rwxr-xr-xDemo/sgi/video/Vb.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/Demo/sgi/video/Vb.py b/Demo/sgi/video/Vb.py
index ec59f22..e1b06d6 100755
--- a/Demo/sgi/video/Vb.py
+++ b/Demo/sgi/video/Vb.py
@@ -33,7 +33,6 @@ sys.path.append('/ufs/jack/src/av/vcr')
import VCR
try:
import cl
- import CL
except ImportError:
cl = None
@@ -200,10 +199,10 @@ class VideoBagOfTricks:
self.c_rgb24_size.addto_choice(label)
self.c_rgb24_size.set_choice(self.rgb24_size)
if cl:
- algs = cl.QueryAlgorithms(CL.VIDEO)
+ algs = cl.QueryAlgorithms(cl.VIDEO)
self.all_comp_schemes = []
for i in range(0, len(algs), 2):
- if algs[i+1] in (CL.COMPRESSOR, CL.CODEC):
+ if algs[i+1] in (cl.COMPRESSOR, cl.CODEC):
self.all_comp_schemes.append(algs[i])
self.c_cformat.clear_choice()
for label in self.all_comp_schemes:
@@ -778,11 +777,11 @@ class VideoBagOfTricks:
def init_compressor(self, w, h):
self.compressor = None
- scheme = cl.QuerySchemeFromName(CL.VIDEO, self.comp_scheme)
+ scheme = cl.QuerySchemeFromName(cl.VIDEO, self.comp_scheme)
self.compressor = cl.OpenCompressor(scheme)
- parambuf = [CL.IMAGE_WIDTH, w, \
- CL.IMAGE_HEIGHT, h, \
- CL.ORIGINAL_FORMAT, CL.YUV422DC]
+ parambuf = [cl.IMAGE_WIDTH, w, \
+ cl.IMAGE_HEIGHT, h, \
+ cl.ORIGINAL_FORMAT, cl.YUV422DC]
self.compressor.SetParams(parambuf)
return self.compressor.Compress(0, '')