Update to 2.0.0 tree from current Fremantle build
[opencv] / tests / swig_python / highgui / cvCreateFileCaptureY8.py
diff --git a/tests/swig_python/highgui/cvCreateFileCaptureY8.py b/tests/swig_python/highgui/cvCreateFileCaptureY8.py
new file mode 100755 (executable)
index 0000000..f2da9ef
--- /dev/null
@@ -0,0 +1,17 @@
+#! /usr/bin/env python
+"""
+This script will test highgui's video reading functionality
+for RAW Y8 (luminance only) .avi files
+"""
+
+# pixel format to check
+FORMAT   = "Y8"
+
+# import check routine
+import cvCreateFileCapture
+
+# check video file of format FORMAT,
+# the function also exits and returns
+# 0,1 or 77 accordingly.
+
+cvCreateFileCapture.video_ok(FORMAT)