Commit aa6b5ac1 authored by Andrey Pavlenko's avatar Andrey Pavlenko

Merge pull request #3291 from asmorkalov:android_superres_video_check

parents d54d580f ca40a749
...@@ -60,4 +60,17 @@ ...@@ -60,4 +60,17 @@
#include "opencv2/superres/superres.hpp" #include "opencv2/superres/superres.hpp"
#include "input_array_utility.hpp" #include "input_array_utility.hpp"
#if defined(HAVE_XINE) || \
defined(HAVE_GSTREAMER) || \
defined(HAVE_QUICKTIME) || \
defined(HAVE_QTKIT) || \
defined(HAVE_AVFOUNDATION) || \
defined(HAVE_FFMPEG) || \
defined(HAVE_MSMF) || \
defined(HAVE_VFW)
# define BUILD_WITH_VIDEO_INPUT_SUPPORT 1
#else
# define BUILD_WITH_VIDEO_INPUT_SUPPORT 0
#endif
#endif #endif
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
#include "test_precomp.hpp" #include "test_precomp.hpp"
#if BUILD_WITH_VIDEO_INPUT_SUPPORT
class AllignedFrameSource : public cv::superres::FrameSource class AllignedFrameSource : public cv::superres::FrameSource
{ {
public: public:
...@@ -291,3 +293,5 @@ TEST_F(SuperResolution, BTVL1_OCL) ...@@ -291,3 +293,5 @@ TEST_F(SuperResolution, BTVL1_OCL)
RunTest(cv::superres::createSuperResolution_BTVL1_OCL()); RunTest(cv::superres::createSuperResolution_BTVL1_OCL());
} }
#endif #endif
#endif // BUILD_WITH_VIDEO_INPUT_SUPPORT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment