2 This script will test highgui's video reading functionality
3 for a given parameter RAW formats.
6 # needed for sys.exit(int) and .works file handling
12 # import the necessary things for OpenCV
18 TESTNAME = "cvCreateFileCapture"
20 PREFIX = os.path.join(os.environ["srcdir"],"../../opencv_extra/testdata/python/videos/qcif_")
24 # this functions tries to open a videofile
25 # using the filename PREFIX+FORMAT+.EXTENSION and returns True/False
28 def video_ok( FORMAT ):
30 # check requirements and delete old .works file
31 if not works.check_files( REQUIRED, TESTNAME+FORMAT ):
34 filename = PREFIX+FORMAT+EXTENSION
35 video = cvCreateFileCapture(PREFIX+FORMAT+EXTENSION)
38 works.set_file( TESTNAME+FORMAT )