summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/video/VFile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sgi/video/VFile.py')
-rwxr-xr-xDemo/sgi/video/VFile.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py
index f588f4b..2f435d4 100755
--- a/Demo/sgi/video/VFile.py
+++ b/Demo/sgi/video/VFile.py
@@ -345,15 +345,15 @@ class VideoParams:
if self.format <> 'compress':
return data
if not self.decompressor:
- import cl, CL
+ import cl
scheme = cl.QueryScheme(self.compressheader)
self.decompressor = cl.OpenDecompressor(scheme)
headersize = self.decompressor.ReadHeader(self.compressheader)
- width = self.decompressor.GetParam(CL.IMAGE_WIDTH)
- height = self.decompressor.GetParam(CL.IMAGE_HEIGHT)
- params = [CL.ORIGINAL_FORMAT, CL.RGBX, \
- CL.ORIENTATION, CL.BOTTOM_UP, \
- CL.FRAME_BUFFER_SIZE, width*height*CL.BytesPerPixel(CL.RGBX)]
+ width = self.decompressor.GetParam(cl.IMAGE_WIDTH)
+ height = self.decompressor.GetParam(cl.IMAGE_HEIGHT)
+ params = [cl.ORIGINAL_FORMAT, cl.RGBX, \
+ cl.ORIENTATION, cl.BOTTOM_UP, \
+ cl.FRAME_BUFFER_SIZE, width*height*cl.BytesPerPixel(cl.RGBX)]
self.decompressor.SetParams(params)
data = self.decompressor.Decompress(1, data)
return data