mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Microscopic changes, comments/messages changed.
Real important: turn off FIELDDROP in Vrec.
This commit is contained in:
parent
8ed294150e
commit
ff3da0502f
5 changed files with 17 additions and 9 deletions
|
@ -61,6 +61,9 @@ Vmkjpeg.py compress an rgb or grey video file to jpeg[grey] format
|
||||||
|
|
||||||
Vunjpeg.py expand a jpeg[grey] video file to rgb or grey format
|
Vunjpeg.py expand a jpeg[grey] video file to rgb or grey format
|
||||||
|
|
||||||
|
Vfix.py truncate the scan line width of a video file to
|
||||||
|
a multiple of 4 ('grey' images only)
|
||||||
|
|
||||||
Vedit.py interactive video editing program
|
Vedit.py interactive video editing program
|
||||||
|
|
||||||
Vsend.py unicast or multicast live video as UDP packets
|
Vsend.py unicast or multicast live video as UDP packets
|
||||||
|
@ -80,7 +83,10 @@ LiveVideoOut.py live video output class, used by Vsend and Vreceive
|
||||||
|
|
||||||
|
|
||||||
The following are C programs, either for efficiency or because they
|
The following are C programs, either for efficiency or because they
|
||||||
need to link with a C library:
|
need to link with a C library. (These probably don't work any more
|
||||||
|
since the video file format has changed several times since they were
|
||||||
|
written. Also, they can now be recoded in Python using the 'imageop'
|
||||||
|
and 'imgfile' modules.)
|
||||||
|
|
||||||
squash.c make a movie smaller by averaging pixels
|
squash.c make a movie smaller by averaging pixels
|
||||||
usage: squash factor [bits] <moviefile >newmoviefile
|
usage: squash factor [bits] <moviefile >newmoviefile
|
||||||
|
@ -104,9 +110,8 @@ These programs are obsolete, but kept around for sentimental reasons.
|
||||||
Most either don't work any more because they don't use VFile and hence
|
Most either don't work any more because they don't use VFile and hence
|
||||||
haven't followed the frequent changes in the CMIF video file format;
|
haven't followed the frequent changes in the CMIF video file format;
|
||||||
or they are dependent upon hardware we don't have (SGI's previous
|
or they are dependent upon hardware we don't have (SGI's previous
|
||||||
generation framegrabber). Except for cam.py / tv.py, their
|
generation framegrabber). Anyway, their functionality is present in
|
||||||
functionality is present in the suite of programs whose name begins
|
the suite of programs whose name begins with 'V' listed above.
|
||||||
with 'V' listed above.
|
|
||||||
|
|
||||||
cam.py network real-time tv broadcast; see tv.py
|
cam.py network real-time tv broadcast; see tv.py
|
||||||
usage: cam [packfactor [host]]
|
usage: cam [packfactor [host]]
|
||||||
|
@ -158,5 +163,3 @@ vinfo.py print summary of movie file(s)
|
||||||
vpregs.py definition of VP registers
|
vpregs.py definition of VP registers
|
||||||
|
|
||||||
vtime.py virtual time module imported by syncaudio.py and camcorder.py
|
vtime.py virtual time module imported by syncaudio.py and camcorder.py
|
||||||
|
|
||||||
colorsys.py color system conversions (now part of std python lib)
|
|
||||||
|
|
|
@ -538,6 +538,8 @@ def readfileheader(fp, filename):
|
||||||
format, rest = eval(line[:-1])
|
format, rest = eval(line[:-1])
|
||||||
except:
|
except:
|
||||||
raise Error, filename + ': Bad 3.0 color info'
|
raise Error, filename + ': Bad 3.0 color info'
|
||||||
|
if format == 'xrgb8':
|
||||||
|
format = 'rgb8' # rgb8 upside-down, for X
|
||||||
if format in ('rgb', 'jpeg'):
|
if format in ('rgb', 'jpeg'):
|
||||||
c0bits = c1bits = c2bits = 0
|
c0bits = c1bits = c2bits = 0
|
||||||
chrompack = 0
|
chrompack = 0
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
#! /ufs/guido/bin/sgi/python-405
|
|
||||||
#! /ufs/guido/bin/sgi/python
|
#! /ufs/guido/bin/sgi/python
|
||||||
#! /usr/local/python
|
|
||||||
|
|
||||||
# Play CMIF movie files
|
# Play CMIF movie files
|
||||||
|
|
||||||
|
|
|
@ -123,6 +123,11 @@ def main():
|
||||||
print x, 'x', y
|
print x, 'x', y
|
||||||
|
|
||||||
v.SetSize(x, y)
|
v.SetSize(x, y)
|
||||||
|
|
||||||
|
# VERY IMPORTANT (for PAL at least): don't drop fields!
|
||||||
|
param = [SV.FIELDDROP, 0]
|
||||||
|
v.SetParam(param)
|
||||||
|
|
||||||
v.BindGLWindow(win, SV.IN_REPLACE)
|
v.BindGLWindow(win, SV.IN_REPLACE)
|
||||||
|
|
||||||
gl.qdevice(DEVICE.LEFTMOUSE)
|
gl.qdevice(DEVICE.LEFTMOUSE)
|
||||||
|
|
|
@ -74,7 +74,7 @@ def main():
|
||||||
hosts.append(gethostbyname(DEFMCAST))
|
hosts.append(gethostbyname(DEFMCAST))
|
||||||
|
|
||||||
if not LiveVideoIn.have_video:
|
if not LiveVideoIn.have_video:
|
||||||
print 'Sorry, no video available (use python-405 on roos)'
|
print 'Sorry, no video available (use python-405)'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
gl.foreground()
|
gl.foreground()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue