Update to 2.0.0 tree from current Fremantle build
[opencv] / tests / swig_python / highgui / size_divx.py
1 #! /usr/bin/env python
2
3 """
4 This script checks HighGUI's cvGetCaptureProperty functionality for correct return
5 of the frame width and height of a DivX-compressed .avi file.
6 """
7
8 # name if this test and it's requirements
9 TESTNAME = "size_divx"
10 REQUIRED = []
11
12 # needed for sys.exit(int), .works file handling and check routine
13 import sys
14 import works
15 import size_test
16
17 # check requirements and delete old flag file, if it exists
18 if not works.check_files(REQUIRED,TESTNAME):
19         sys.exit(77)
20
21 # name of file we check here
22 FILENAME='divx.avi'
23
24 # run check routine
25 result=size_test.size_ok(FILENAME)
26
27 # create flag file for following tests
28 works.set_file(TESTNAME)
29
30  # return result of test routine
31 sys.exit(result)