2018-02-22 08:47:42 +08:00
|
|
|
--- a/cmake/OpenCVModule.cmake
|
|
|
|
+++ b/cmake/OpenCVModule.cmake
|
2018-11-05 03:24:45 +08:00
|
|
|
@@ -848,7 +848,7 @@ macro(ocv_create_module)
|
2018-02-22 08:47:42 +08:00
|
|
|
set(the_module_target ${the_module})
|
|
|
|
endif()
|
2018-03-04 18:31:06 +08:00
|
|
|
|
2018-02-22 08:47:42 +08:00
|
|
|
- if(WINRT)
|
|
|
|
+ if(WINRT AND BUILD_TESTS)
|
|
|
|
# removing APPCONTAINER from modules to run from console
|
|
|
|
# in case of usual starting of WinRT test apps output is missing
|
|
|
|
# so starting of console version w/o APPCONTAINER is required to get test results
|
|
|
|
--- a/modules/highgui/include/opencv2/highgui/highgui_winrt.hpp
|
|
|
|
+++ b/modules/highgui/include/opencv2/highgui/highgui_winrt.hpp
|
|
|
|
@@ -24,6 +24,7 @@
|
|
|
|
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
// POSSIBILITY OF SUCH DAMAGE.
|
2018-03-04 18:31:06 +08:00
|
|
|
|
2018-02-22 08:47:42 +08:00
|
|
|
+#include "opencv2/core/cvdef.h"
|
|
|
|
using namespace Windows::UI::Xaml::Controls;
|
2018-03-04 18:31:06 +08:00
|
|
|
|
2018-02-22 08:47:42 +08:00
|
|
|
namespace cv
|
|
|
|
diff --git a/modules/highgui/src/window_winrt_bridge.hpp b/modules/highgui/src/window_winrt_bridge.hpp
|
|
|
|
index 25f4aef..5429f0b 100644
|
|
|
|
--- a/modules/highgui/src/window_winrt_bridge.hpp
|
|
|
|
+++ b/modules/highgui/src/window_winrt_bridge.hpp
|
|
|
|
@@ -28,6 +28,7 @@
|
2018-03-04 18:31:06 +08:00
|
|
|
|
2018-02-22 08:47:42 +08:00
|
|
|
#include <map>
|
|
|
|
#include <opencv2\core.hpp>
|
|
|
|
+#include "opencv2/highgui/highgui_c.h"
|
2018-03-04 18:31:06 +08:00
|
|
|
|
2018-02-22 08:47:42 +08:00
|
|
|
using namespace Windows::UI::Xaml::Controls;
|
2018-03-04 18:31:06 +08:00
|
|
|
|
2018-02-22 08:47:42 +08:00
|
|
|
diff --git a/modules/videoio/src/cap_winrt/CaptureFrameGrabber.cpp b/modules/videoio/src/cap_winrt/CaptureFrameGrabber.cpp
|
|
|
|
index 236e227..e2417dc 100644
|
|
|
|
--- a/modules/videoio/src/cap_winrt/CaptureFrameGrabber.cpp
|
|
|
|
+++ b/modules/videoio/src/cap_winrt/CaptureFrameGrabber.cpp
|
|
|
|
@@ -94,10 +94,10 @@ Media::CaptureFrameGrabber::~CaptureFrameGrabber()
|
2018-03-04 18:31:06 +08:00
|
|
|
|
2018-02-22 08:47:42 +08:00
|
|
|
void Media::CaptureFrameGrabber::ShowCameraSettings()
|
|
|
|
{
|
|
|
|
-#if WINAPI_FAMILY!=WINAPI_FAMILY_PHONE_APP
|
|
|
|
+#if (WINAPI_FAMILY!=WINAPI_FAMILY_PHONE_APP) && (WINAPI_FAMILY!=WINAPI_FAMILY_APP)
|
|
|
|
if (_state == State::Started)
|
|
|
|
{
|
|
|
|
- CameraOptionsUI::Show(_capture.Get());
|
|
|
|
+ CameraOptionsUI::Show(_capture.Get()); // TODO: Turn it on again in UWP mode by adding reference to UWP Desktop Extensions
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|