diff options
Diffstat (limited to 'Demo/sgi/video/Vstat.py')
-rwxr-xr-x | Demo/sgi/video/Vstat.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Demo/sgi/video/Vstat.py b/Demo/sgi/video/Vstat.py new file mode 100755 index 0000000..cc0ecfb --- /dev/null +++ b/Demo/sgi/video/Vstat.py @@ -0,0 +1,23 @@ +#! /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() + |