mirror of
https://github.com/python/cpython.git
synced 2025-09-01 06:28:36 +00:00

- call v.SetParam() after v.BindGLWindow() - turn of dithering in mono/grey mode - use prefposition to place the top left corner at (150, 150) (so that the video remains visible during recording) - default width is 256 Vcopy.py: correct typos; more verbose output. OldVcopy.py: new name for Jack's old grabbing Vcopy.py. Vstat.py: print values of all video parameters.
23 lines
377 B
Python
Executable file
23 lines
377 B
Python
Executable file
#! /ufs/guido/bin/sgi/python
|
|
|
|
# Print the value of all video parameters
|
|
|
|
import sys
|
|
import sv, SV
|
|
|
|
def main():
|
|
v = sv.OpenVideo()
|
|
for name in dir(SV):
|
|
const = getattr(SV, name)
|
|
if type(const) is type(0):
|
|
sys.stdout.flush()
|
|
params = [const, 0]
|
|
try:
|
|
v.GetParam(params)
|
|
except sv.error, msg:
|
|
## print name, msg
|
|
continue
|
|
print name, params
|
|
|
|
main()
|
|
|