summaryrefslogtreecommitdiffstats
path: root/Demo/sgi
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-02-16 16:49:44 (GMT)
committerGuido van Rossum <guido@python.org>1993-02-16 16:49:44 (GMT)
commit3ea6161bb5d4f443aba0aac2d01e5e80c43113e1 (patch)
treec15b2aeeddfbd047e0009b83e7e779599f21caca /Demo/sgi
parent9b86e1f5f0656375b5aa38ddfb9fe8ea6a9aa0d4 (diff)
downloadcpython-3ea6161bb5d4f443aba0aac2d01e5e80c43113e1.zip
cpython-3ea6161bb5d4f443aba0aac2d01e5e80c43113e1.tar.gz
cpython-3ea6161bb5d4f443aba0aac2d01e5e80c43113e1.tar.bz2
Cleanup of old files, added watchcursor.py (for Vedit.py), updated README.
Diffstat (limited to 'Demo/sgi')
-rw-r--r--Demo/sgi/video/README12
-rwxr-xr-xDemo/sgi/video/watchcursor.py44
2 files changed, 53 insertions, 3 deletions
diff --git a/Demo/sgi/video/README b/Demo/sgi/video/README
index 9c4867e..6a9f894 100644
--- a/Demo/sgi/video/README
+++ b/Demo/sgi/video/README
@@ -10,9 +10,9 @@ History
We started this in October 1991, when we had a large framegrabber
board on loan from SGI for a few weeks: we developed a movie recording
-program (camcorder.py) and added numerous features, including still
-frame capture and synchronous sound recording using a second machine
-(the machine holding the framegrabber board didn't have audio).
+program and added numerous features, including still frame capture and
+synchronous sound recording using a second machine (the machine
+holding the framegrabber board didn't have audio).
During the following months, when we started using and processing the
recorded film fragments, the "CMIF video format" was revised several
@@ -80,6 +80,8 @@ Vaddcache.py add a "cached index" to a video file, for faster playing
Vrecb.py like Vrec.py but uses "burst capture" -- somewhat specialized
+rgb2video.py combine a sequence of rgb images into a CMIF video file
+
These modules and files are used by the above programs:
@@ -91,6 +93,10 @@ LiveVideoIn.py live video input class, used by Vsend
LiveVideoOut.py live video output class, used by Vsend and Vreceive
+imgconv.py Image conversion subroutines for rgb2video.py
+
senddefs.py Defaults shared by Vsend and Vreceice
+watchcursor.py Generally useful module to define a watch cursor in GL
+
VeditForm.fd FORMS' fdesign definition for Vedit's form
diff --git a/Demo/sgi/video/watchcursor.py b/Demo/sgi/video/watchcursor.py
new file mode 100755
index 0000000..650df6a
--- /dev/null
+++ b/Demo/sgi/video/watchcursor.py
@@ -0,0 +1,44 @@
+# Define a 16x16 cursor looking like a watch
+
+# X11 bitmap file:
+##define x_width 16
+##define x_height 16
+#static char x_bits[] = {
+# 0xf0, 0x0f, 0xf8, 0x1f, 0x1c, 0x38, 0x8e, 0x71, 0x87, 0xe1, 0x83, 0xc1,
+# 0x83, 0xc1, 0xf3, 0xc1, 0xf3, 0xc1, 0x03, 0xc0, 0x03, 0xc0, 0x07, 0xe0,
+# 0x0e, 0x70, 0x1c, 0x38, 0xf8, 0x1f, 0xf0, 0x0f};
+
+
+watch = [ \
+ 0x0ff0,\
+ 0x1ff8,\
+ 0x381c,\
+ 0x718e,\
+ 0xe187,\
+ 0xc183,\
+ 0xc183,\
+ 0xc1f3,\
+ 0xc1f3,\
+ 0xc003,\
+ 0xc003,\
+ 0xe007,\
+ 0x700e,\
+ 0x381c,\
+ 0x1ff8,\
+ 0x0ff0,\
+ ]
+
+watch.reverse() # Turn it upside-down
+
+def defwatch(index):
+ import gl
+ gl.defcursor(index, watch*8)
+
+def test():
+ import gl
+ gl.foreground()
+ gl.winopen('test watchcursor')
+ defwatch(1)
+ gl.setcursor(1, 0, 0)
+ import time
+ time.sleep(10)