summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/video/Vstat.py
blob: cc0ecfb54a720f7a05ad0796a25acd953b14c39a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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()