Merge pull request #3700 from MSOpenTech:winrt-cmake-contrib
9
.gitignore
vendored
@ -8,3 +8,12 @@
|
|||||||
Thumbs.db
|
Thumbs.db
|
||||||
tags
|
tags
|
||||||
tegra/
|
tegra/
|
||||||
|
bin/
|
||||||
|
CMakeFiles/
|
||||||
|
*.sdf
|
||||||
|
*.opensdf
|
||||||
|
*.obj
|
||||||
|
*.stamp
|
||||||
|
*.depend
|
||||||
|
*.rule
|
||||||
|
*.tmp
|
||||||
|
4
3rdparty/libpng/CMakeLists.txt
vendored
@ -29,10 +29,6 @@ if(MSVC)
|
|||||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
if (HAVE_WINRT)
|
|
||||||
add_definitions(-DHAVE_WINRT)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_library(${PNG_LIBRARY} STATIC ${lib_srcs} ${lib_hdrs})
|
add_library(${PNG_LIBRARY} STATIC ${lib_srcs} ${lib_hdrs})
|
||||||
target_link_libraries(${PNG_LIBRARY} ${ZLIB_LIBRARIES})
|
target_link_libraries(${PNG_LIBRARY} ${ZLIB_LIBRARIES})
|
||||||
|
|
||||||
|
4
3rdparty/libpng/opencv-libpng.patch
vendored
@ -7,7 +7,7 @@ index 07b2b0b..e7824b8 100644
|
|||||||
/* Memory model/platform independent fns */
|
/* Memory model/platform independent fns */
|
||||||
#ifndef PNG_ABORT
|
#ifndef PNG_ABORT
|
||||||
-# ifdef _WINDOWS_
|
-# ifdef _WINDOWS_
|
||||||
+# if defined(_WINDOWS_) && !defined(HAVE_WINRT)
|
+# if defined(_WINDOWS_) && !defined(WINRT)
|
||||||
# define PNG_ABORT() ExitProcess(0)
|
# define PNG_ABORT() ExitProcess(0)
|
||||||
# else
|
# else
|
||||||
# define PNG_ABORT() abort()
|
# define PNG_ABORT() abort()
|
||||||
@ -16,7 +16,7 @@ index 07b2b0b..e7824b8 100644
|
|||||||
# define png_memset _fmemset
|
# define png_memset _fmemset
|
||||||
#else
|
#else
|
||||||
-# ifdef _WINDOWS_ /* Favor Windows over C runtime fns */
|
-# ifdef _WINDOWS_ /* Favor Windows over C runtime fns */
|
||||||
+# if defined(_WINDOWS_) && !defined(HAVE_WINRT) /* Favor Windows over C runtime fns */
|
+# if defined(_WINDOWS_) && !defined(WINRT) /* Favor Windows over C runtime fns */
|
||||||
# define CVT_PTR(ptr) (ptr)
|
# define CVT_PTR(ptr) (ptr)
|
||||||
# define CVT_PTR_NOCHECK(ptr) (ptr)
|
# define CVT_PTR_NOCHECK(ptr) (ptr)
|
||||||
# define png_strlen lstrlenA
|
# define png_strlen lstrlenA
|
||||||
|
4
3rdparty/libpng/pngpriv.h
vendored
@ -360,7 +360,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
|
|||||||
|
|
||||||
/* Memory model/platform independent fns */
|
/* Memory model/platform independent fns */
|
||||||
#ifndef PNG_ABORT
|
#ifndef PNG_ABORT
|
||||||
# if defined(_WINDOWS_) && !defined(HAVE_WINRT)
|
# if defined(_WINDOWS_) && !defined(WINRT)
|
||||||
# define PNG_ABORT() ExitProcess(0)
|
# define PNG_ABORT() ExitProcess(0)
|
||||||
# else
|
# else
|
||||||
# define PNG_ABORT() abort()
|
# define PNG_ABORT() abort()
|
||||||
@ -378,7 +378,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
|
|||||||
# define png_memcpy _fmemcpy
|
# define png_memcpy _fmemcpy
|
||||||
# define png_memset _fmemset
|
# define png_memset _fmemset
|
||||||
#else
|
#else
|
||||||
# if defined(_WINDOWS_) && !defined(HAVE_WINRT) /* Favor Windows over C runtime fns */
|
# if defined(_WINDOWS_) && !defined(WINRT) /* Favor Windows over C runtime fns */
|
||||||
# define CVT_PTR(ptr) (ptr)
|
# define CVT_PTR(ptr) (ptr)
|
||||||
# define CVT_PTR_NOCHECK(ptr) (ptr)
|
# define CVT_PTR_NOCHECK(ptr) (ptr)
|
||||||
# define png_strlen lstrlenA
|
# define png_strlen lstrlenA
|
||||||
|
4
3rdparty/libtiff/CMakeLists.txt
vendored
@ -17,7 +17,7 @@ check_include_file(string.h HAVE_STRING_H)
|
|||||||
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
||||||
check_include_file(unistd.h HAVE_UNISTD_H)
|
check_include_file(unistd.h HAVE_UNISTD_H)
|
||||||
|
|
||||||
if(WIN32 AND NOT HAVE_WINRT)
|
if(WIN32)
|
||||||
set(USE_WIN32_FILEIO 1)
|
set(USE_WIN32_FILEIO 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ set(lib_srcs
|
|||||||
"${CMAKE_CURRENT_BINARY_DIR}/tif_config.h"
|
"${CMAKE_CURRENT_BINARY_DIR}/tif_config.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
if(WIN32 AND NOT HAVE_WINRT)
|
if(WIN32)
|
||||||
list(APPEND lib_srcs tif_win32.c)
|
list(APPEND lib_srcs tif_win32.c)
|
||||||
else()
|
else()
|
||||||
list(APPEND lib_srcs tif_unix.c)
|
list(APPEND lib_srcs tif_unix.c)
|
||||||
|
@ -12,6 +12,12 @@ include(cmake/OpenCVMinDepVersions.cmake)
|
|||||||
|
|
||||||
if(CMAKE_GENERATOR MATCHES Xcode AND XCODE_VERSION VERSION_GREATER 4.3)
|
if(CMAKE_GENERATOR MATCHES Xcode AND XCODE_VERSION VERSION_GREATER 4.3)
|
||||||
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
|
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore)
|
||||||
|
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
|
||||||
|
#Required to resolve linker error issues due to incompatibility with CMake v3.0+ policies.
|
||||||
|
#CMake fails to find _fseeko() which leads to subsequent linker error.
|
||||||
|
#See details here: http://www.cmake.org/Wiki/CMake/Policies
|
||||||
|
cmake_policy(VERSION 2.8)
|
||||||
else()
|
else()
|
||||||
cmake_minimum_required(VERSION "${MIN_VER_CMAKE}" FATAL_ERROR)
|
cmake_minimum_required(VERSION "${MIN_VER_CMAKE}" FATAL_ERROR)
|
||||||
endif()
|
endif()
|
||||||
@ -33,6 +39,13 @@ else(NOT CMAKE_TOOLCHAIN_FILE)
|
|||||||
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Installation Directory")
|
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Installation Directory")
|
||||||
endif(NOT CMAKE_TOOLCHAIN_FILE)
|
endif(NOT CMAKE_TOOLCHAIN_FILE)
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore)
|
||||||
|
set(WINRT TRUE)
|
||||||
|
endif(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore)
|
||||||
|
|
||||||
|
if(WINRT)
|
||||||
|
add_definitions(-DWINRT -DNO_GETENV)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(POLICY CMP0022)
|
if(POLICY CMP0022)
|
||||||
cmake_policy(SET CMP0022 OLD)
|
cmake_policy(SET CMP0022 OLD)
|
||||||
@ -120,66 +133,66 @@ endif()
|
|||||||
|
|
||||||
# Optional 3rd party components
|
# Optional 3rd party components
|
||||||
# ===================================================
|
# ===================================================
|
||||||
OCV_OPTION(WITH_1394 "Include IEEE1394 support" ON IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_1394 "Include IEEE1394 support" ON IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_AVFOUNDATION "Use AVFoundation for Video I/O" ON IF IOS)
|
OCV_OPTION(WITH_AVFOUNDATION "Use AVFoundation for Video I/O" ON IF IOS)
|
||||||
OCV_OPTION(WITH_CARBON "Use Carbon for UI instead of Cocoa" OFF IF APPLE )
|
OCV_OPTION(WITH_CARBON "Use Carbon for UI instead of Cocoa" OFF IF APPLE )
|
||||||
OCV_OPTION(WITH_VTK "Include VTK library support (and build opencv_viz module eiher)" ON IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_VTK "Include VTK library support (and build opencv_viz module eiher)" ON IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_CUDA "Include NVidia Cuda Runtime support" ON IF (NOT IOS) )
|
OCV_OPTION(WITH_CUDA "Include NVidia Cuda Runtime support" ON IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_CUFFT "Include NVidia Cuda Fast Fourier Transform (FFT) library support" ON IF (NOT IOS) )
|
OCV_OPTION(WITH_CUFFT "Include NVidia Cuda Fast Fourier Transform (FFT) library support" ON IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_CUBLAS "Include NVidia Cuda Basic Linear Algebra Subprograms (BLAS) library support" OFF IF (NOT IOS) )
|
OCV_OPTION(WITH_CUBLAS "Include NVidia Cuda Basic Linear Algebra Subprograms (BLAS) library support" OFF IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_NVCUVID "Include NVidia Video Decoding library support" OFF IF (NOT IOS AND NOT APPLE) )
|
OCV_OPTION(WITH_NVCUVID "Include NVidia Video Decoding library support" OFF IF (NOT IOS AND NOT APPLE) )
|
||||||
OCV_OPTION(WITH_EIGEN "Include Eigen2/Eigen3 support" ON)
|
OCV_OPTION(WITH_EIGEN "Include Eigen2/Eigen3 support" ON IF (NOT WINRT) )
|
||||||
OCV_OPTION(WITH_VFW "Include Video for Windows support" ON IF WIN32 )
|
OCV_OPTION(WITH_VFW "Include Video for Windows support" ON IF WIN32 )
|
||||||
OCV_OPTION(WITH_FFMPEG "Include FFMPEG support" ON IF (NOT ANDROID AND NOT IOS))
|
OCV_OPTION(WITH_FFMPEG "Include FFMPEG support" ON IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_GSTREAMER "Include Gstreamer support" ON IF (UNIX AND NOT ANDROID) )
|
OCV_OPTION(WITH_GSTREAMER "Include Gstreamer support" ON IF (UNIX AND NOT ANDROID) )
|
||||||
OCV_OPTION(WITH_GSTREAMER_0_10 "Enable Gstreamer 0.10 support (instead of 1.x)" OFF )
|
OCV_OPTION(WITH_GSTREAMER_0_10 "Enable Gstreamer 0.10 support (instead of 1.x)" OFF )
|
||||||
OCV_OPTION(WITH_GTK "Include GTK support" ON IF (UNIX AND NOT APPLE AND NOT ANDROID) )
|
OCV_OPTION(WITH_GTK "Include GTK support" ON IF (UNIX AND NOT APPLE AND NOT ANDROID) )
|
||||||
OCV_OPTION(WITH_GTK_2_X "Use GTK version 2" OFF IF (UNIX AND NOT APPLE AND NOT ANDROID) )
|
OCV_OPTION(WITH_GTK_2_X "Use GTK version 2" OFF IF (UNIX AND NOT APPLE AND NOT ANDROID) )
|
||||||
OCV_OPTION(WITH_IPP "Include Intel IPP support" ON IF (X86_64 OR X86) )
|
OCV_OPTION(WITH_IPP "Include Intel IPP support" ON IF (X86_64 OR X86) AND NOT WINRT)
|
||||||
OCV_OPTION(WITH_JASPER "Include JPEG2K support" ON IF (NOT IOS) )
|
OCV_OPTION(WITH_JASPER "Include JPEG2K support" ON IF (NOT IOS) )
|
||||||
OCV_OPTION(WITH_JPEG "Include JPEG support" ON)
|
OCV_OPTION(WITH_JPEG "Include JPEG support" ON)
|
||||||
OCV_OPTION(WITH_WEBP "Include WebP support" ON IF (NOT IOS) )
|
OCV_OPTION(WITH_WEBP "Include WebP support" ON IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_OPENEXR "Include ILM support via OpenEXR" ON IF (NOT IOS) )
|
OCV_OPTION(WITH_OPENEXR "Include ILM support via OpenEXR" ON IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_OPENGL "Include OpenGL support" OFF IF (NOT ANDROID) )
|
OCV_OPTION(WITH_OPENGL "Include OpenGL support" OFF IF (NOT ANDROID AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_OPENNI "Include OpenNI support" OFF IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_OPENNI "Include OpenNI support" OFF IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_OPENNI2 "Include OpenNI2 support" OFF IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_OPENNI2 "Include OpenNI2 support" OFF IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_PNG "Include PNG support" ON)
|
OCV_OPTION(WITH_PNG "Include PNG support" ON)
|
||||||
OCV_OPTION(WITH_PVAPI "Include Prosilica GigE support" ON IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_PVAPI "Include Prosilica GigE support" ON IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_GIGEAPI "Include Smartek GigE support" ON IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_GIGEAPI "Include Smartek GigE support" ON IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_QT "Build with Qt Backend support" OFF IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_QT "Build with Qt Backend support" OFF IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_WIN32UI "Build with Win32 UI Backend support" ON IF WIN32 )
|
OCV_OPTION(WITH_WIN32UI "Build with Win32 UI Backend support" ON IF WIN32 AND NOT WINRT)
|
||||||
OCV_OPTION(WITH_QUICKTIME "Use QuickTime for Video I/O insted of QTKit" OFF IF APPLE )
|
OCV_OPTION(WITH_QUICKTIME "Use QuickTime for Video I/O insted of QTKit" OFF IF APPLE )
|
||||||
OCV_OPTION(WITH_TBB "Include Intel TBB support" OFF IF (NOT IOS) )
|
OCV_OPTION(WITH_TBB "Include Intel TBB support" OFF IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_OPENMP "Include OpenMP support" OFF)
|
OCV_OPTION(WITH_OPENMP "Include OpenMP support" OFF)
|
||||||
OCV_OPTION(WITH_CSTRIPES "Include C= support" OFF IF WIN32 )
|
OCV_OPTION(WITH_CSTRIPES "Include C= support" OFF IF (WIN32 AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_TIFF "Include TIFF support" ON IF (NOT IOS) )
|
OCV_OPTION(WITH_TIFF "Include TIFF support" ON IF (NOT IOS) )
|
||||||
OCV_OPTION(WITH_UNICAP "Include Unicap support (GPL)" OFF IF (UNIX AND NOT APPLE AND NOT ANDROID) )
|
OCV_OPTION(WITH_UNICAP "Include Unicap support (GPL)" OFF IF (UNIX AND NOT APPLE AND NOT ANDROID) )
|
||||||
OCV_OPTION(WITH_V4L "Include Video 4 Linux support" ON IF (UNIX AND NOT ANDROID) )
|
OCV_OPTION(WITH_V4L "Include Video 4 Linux support" ON IF (UNIX AND NOT ANDROID) )
|
||||||
OCV_OPTION(WITH_LIBV4L "Use libv4l for Video 4 Linux support" ON IF (UNIX AND NOT ANDROID) )
|
OCV_OPTION(WITH_LIBV4L "Use libv4l for Video 4 Linux support" ON IF (UNIX AND NOT ANDROID) )
|
||||||
OCV_OPTION(WITH_DSHOW "Build VideoIO with DirectShow support" ON IF (WIN32 AND NOT ARM) )
|
OCV_OPTION(WITH_DSHOW "Build VideoIO with DirectShow support" ON IF (WIN32 AND NOT ARM AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_MSMF "Build VideoIO with Media Foundation support" OFF IF WIN32 )
|
OCV_OPTION(WITH_MSMF "Build VideoIO with Media Foundation support" OFF IF WIN32 )
|
||||||
OCV_OPTION(WITH_XIMEA "Include XIMEA cameras support" OFF IF (NOT ANDROID) )
|
OCV_OPTION(WITH_XIMEA "Include XIMEA cameras support" OFF IF (NOT ANDROID AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_XINE "Include Xine support (GPL)" OFF IF (UNIX AND NOT APPLE AND NOT ANDROID) )
|
OCV_OPTION(WITH_XINE "Include Xine support (GPL)" OFF IF (UNIX AND NOT APPLE AND NOT ANDROID) )
|
||||||
OCV_OPTION(WITH_CLP "Include Clp support (EPL)" OFF)
|
OCV_OPTION(WITH_CLP "Include Clp support (EPL)" OFF)
|
||||||
OCV_OPTION(WITH_OPENCL "Include OpenCL Runtime support" NOT ANDROID IF (NOT IOS) )
|
OCV_OPTION(WITH_OPENCL "Include OpenCL Runtime support" NOT ANDROID IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_OPENCL_SVM "Include OpenCL Shared Virtual Memory support" OFF ) # experimental
|
OCV_OPTION(WITH_OPENCL_SVM "Include OpenCL Shared Virtual Memory support" OFF ) # experimental
|
||||||
OCV_OPTION(WITH_OPENCLAMDFFT "Include AMD OpenCL FFT library support" ON IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_OPENCLAMDFFT "Include AMD OpenCL FFT library support" ON IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_OPENCLAMDBLAS "Include AMD OpenCL BLAS library support" ON IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_OPENCLAMDBLAS "Include AMD OpenCL BLAS library support" ON IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_DIRECTX "Include DirectX support" ON IF WIN32 )
|
OCV_OPTION(WITH_DIRECTX "Include DirectX support" ON IF (WIN32 AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_INTELPERC "Include Intel Perceptual Computing support" OFF IF WIN32 )
|
OCV_OPTION(WITH_INTELPERC "Include Intel Perceptual Computing support" OFF IF (WIN32 AND NOT WINRT) )
|
||||||
OCV_OPTION(WITH_IPP_A "Include Intel IPP_A support" OFF IF (MSVC OR X86 OR X86_64) )
|
OCV_OPTION(WITH_IPP_A "Include Intel IPP_A support" OFF IF (MSVC OR X86 OR X86_64) )
|
||||||
OCV_OPTION(WITH_GDAL "Include GDAL Support" OFF IF (NOT ANDROID AND NOT IOS) )
|
OCV_OPTION(WITH_GDAL "Include GDAL Support" OFF IF (NOT ANDROID AND NOT IOS AND NOT WINRT) )
|
||||||
|
|
||||||
# OpenCV build components
|
# OpenCV build components
|
||||||
# ===================================================
|
# ===================================================
|
||||||
OCV_OPTION(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" NOT (ANDROID OR IOS) )
|
OCV_OPTION(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" NOT (ANDROID OR IOS) )
|
||||||
OCV_OPTION(BUILD_opencv_apps "Build utility applications (used for example to train classifiers)" (NOT ANDROID) IF (NOT IOS) )
|
OCV_OPTION(BUILD_opencv_apps "Build utility applications (used for example to train classifiers)" (NOT ANDROID AND NOT WINRT) IF (NOT IOS) )
|
||||||
OCV_OPTION(BUILD_ANDROID_EXAMPLES "Build examples for Android platform" ON IF ANDROID )
|
OCV_OPTION(BUILD_ANDROID_EXAMPLES "Build examples for Android platform" ON IF ANDROID )
|
||||||
OCV_OPTION(BUILD_DOCS "Create build rules for OpenCV Documentation" ON )
|
OCV_OPTION(BUILD_DOCS "Create build rules for OpenCV Documentation" ON IF NOT WINRT)
|
||||||
OCV_OPTION(BUILD_EXAMPLES "Build all examples" OFF )
|
OCV_OPTION(BUILD_EXAMPLES "Build all examples" OFF )
|
||||||
OCV_OPTION(BUILD_PACKAGE "Enables 'make package_source' command" ON )
|
OCV_OPTION(BUILD_PACKAGE "Enables 'make package_source' command" ON IF NOT WINRT)
|
||||||
OCV_OPTION(BUILD_PERF_TESTS "Build performance tests" ON IF (NOT IOS) )
|
OCV_OPTION(BUILD_PERF_TESTS "Build performance tests" ON IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(BUILD_TESTS "Build accuracy & regression tests" ON IF (NOT IOS) )
|
OCV_OPTION(BUILD_TESTS "Build accuracy & regression tests" ON IF (NOT IOS AND NOT WINRT) )
|
||||||
OCV_OPTION(BUILD_WITH_DEBUG_INFO "Include debug info into debug libs (not MSCV only)" ON )
|
OCV_OPTION(BUILD_WITH_DEBUG_INFO "Include debug info into debug libs (not MSCV only)" ON )
|
||||||
OCV_OPTION(BUILD_WITH_STATIC_CRT "Enables use of staticaly linked CRT for staticaly linked OpenCV" ON IF MSVC )
|
OCV_OPTION(BUILD_WITH_STATIC_CRT "Enables use of staticaly linked CRT for staticaly linked OpenCV" ON IF MSVC )
|
||||||
OCV_OPTION(BUILD_WITH_DYNAMIC_IPP "Enables dynamic linking of IPP (only for standalone IPP)" OFF )
|
OCV_OPTION(BUILD_WITH_DYNAMIC_IPP "Enables dynamic linking of IPP (only for standalone IPP)" OFF )
|
||||||
@ -194,7 +207,7 @@ OCV_OPTION(BUILD_TIFF "Build libtiff from source" WIN32 O
|
|||||||
OCV_OPTION(BUILD_JASPER "Build libjasper from source" WIN32 OR ANDROID OR APPLE )
|
OCV_OPTION(BUILD_JASPER "Build libjasper from source" WIN32 OR ANDROID OR APPLE )
|
||||||
OCV_OPTION(BUILD_JPEG "Build libjpeg from source" WIN32 OR ANDROID OR APPLE )
|
OCV_OPTION(BUILD_JPEG "Build libjpeg from source" WIN32 OR ANDROID OR APPLE )
|
||||||
OCV_OPTION(BUILD_PNG "Build libpng from source" WIN32 OR ANDROID OR APPLE )
|
OCV_OPTION(BUILD_PNG "Build libpng from source" WIN32 OR ANDROID OR APPLE )
|
||||||
OCV_OPTION(BUILD_OPENEXR "Build openexr from source" WIN32 OR ANDROID OR APPLE )
|
OCV_OPTION(BUILD_OPENEXR "Build openexr from source" (WIN32 OR ANDROID OR APPLE) AND NOT WINRT)
|
||||||
OCV_OPTION(BUILD_TBB "Download and build TBB from source" ANDROID )
|
OCV_OPTION(BUILD_TBB "Download and build TBB from source" ANDROID )
|
||||||
|
|
||||||
# OpenCV installation options
|
# OpenCV installation options
|
||||||
@ -229,8 +242,6 @@ OCV_OPTION(ENABLE_NEON "Enable NEON instructions"
|
|||||||
OCV_OPTION(ENABLE_VFPV3 "Enable VFPv3-D32 instructions" OFF IF CMAKE_COMPILER_IS_GNUCXX AND (ARM OR AARCH64 OR IOS) )
|
OCV_OPTION(ENABLE_VFPV3 "Enable VFPv3-D32 instructions" OFF IF CMAKE_COMPILER_IS_GNUCXX AND (ARM OR AARCH64 OR IOS) )
|
||||||
OCV_OPTION(ENABLE_NOISY_WARNINGS "Show all warnings even if they are too noisy" OFF )
|
OCV_OPTION(ENABLE_NOISY_WARNINGS "Show all warnings even if they are too noisy" OFF )
|
||||||
OCV_OPTION(OPENCV_WARNINGS_ARE_ERRORS "Treat warnings as errors" OFF )
|
OCV_OPTION(OPENCV_WARNINGS_ARE_ERRORS "Treat warnings as errors" OFF )
|
||||||
OCV_OPTION(ENABLE_WINRT_MODE "Build with Windows Runtime support" OFF IF WIN32 )
|
|
||||||
OCV_OPTION(ENABLE_WINRT_MODE_NATIVE "Build with Windows Runtime native C++ support" OFF IF WIN32 )
|
|
||||||
OCV_OPTION(ANDROID_EXAMPLES_WITH_LIBS "Build binaries of Android examples with native libraries" OFF IF ANDROID )
|
OCV_OPTION(ANDROID_EXAMPLES_WITH_LIBS "Build binaries of Android examples with native libraries" OFF IF ANDROID )
|
||||||
OCV_OPTION(ENABLE_IMPL_COLLECTION "Collect implementation data on function call" OFF )
|
OCV_OPTION(ENABLE_IMPL_COLLECTION "Collect implementation data on function call" OFF )
|
||||||
|
|
||||||
@ -759,11 +770,12 @@ endif()
|
|||||||
# ================== Windows RT features ==================
|
# ================== Windows RT features ==================
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
status("")
|
status("")
|
||||||
status(" Windows RT support:" HAVE_WINRT THEN YES ELSE NO)
|
status(" Windows RT support:" WINRT THEN YES ELSE NO)
|
||||||
if (ENABLE_WINRT_MODE OR ENABLE_WINRT_MODE_NATIVE)
|
if(WINRT)
|
||||||
status(" Windows SDK v8.0:" ${WINDOWS_SDK_PATH})
|
status(" Building for Microsoft platform: " ${CMAKE_SYSTEM_NAME})
|
||||||
status(" Visual Studio 2012:" ${VISUAL_STUDIO_PATH})
|
status(" Building for architectures: " ${CMAKE_VS_EFFECTIVE_PLATFORMS})
|
||||||
endif()
|
status(" Building for version: " ${CMAKE_SYSTEM_VERSION})
|
||||||
|
endif()
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
# ========================== GUI ==========================
|
# ========================== GUI ==========================
|
||||||
@ -913,7 +925,7 @@ endif(DEFINED WITH_OPENNI)
|
|||||||
|
|
||||||
if(DEFINED WITH_OPENNI2)
|
if(DEFINED WITH_OPENNI2)
|
||||||
status(" OpenNI2:" HAVE_OPENNI2 THEN "YES (ver ${OPENNI2_VERSION_STRING}, build ${OPENNI2_VERSION_BUILD})"
|
status(" OpenNI2:" HAVE_OPENNI2 THEN "YES (ver ${OPENNI2_VERSION_STRING}, build ${OPENNI2_VERSION_BUILD})"
|
||||||
ELSE NO)
|
ELSE NO)
|
||||||
endif(DEFINED WITH_OPENNI2)
|
endif(DEFINED WITH_OPENNI2)
|
||||||
|
|
||||||
if(DEFINED WITH_PVAPI)
|
if(DEFINED WITH_PVAPI)
|
||||||
|
@ -2,47 +2,37 @@ if(NOT MSVC)
|
|||||||
message(FATAL_ERROR "CRT options are available only for MSVC")
|
message(FATAL_ERROR "CRT options are available only for MSVC")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#INCLUDE (CheckIncludeFiles)
|
#if (${CMAKE_SYSTEM_NAME} MATCHES "WindowsStore" OR ${CMAKE_SYSTEM_NAME} MATCHES "WindowsPhone")
|
||||||
|
# set(WINRT TRUE)
|
||||||
|
|
||||||
set(HAVE_WINRT FALSE)
|
if (WINRT)
|
||||||
|
add_definitions(/DWINVER=_WIN32_WINNT_WIN8 /DNTDDI_VERSION=NTDDI_WIN8 /D_WIN32_WINNT=_WIN32_WINNT_WIN8)
|
||||||
# search Windows Platform SDK
|
|
||||||
message(STATUS "Checking for Windows Platform SDK")
|
|
||||||
GET_FILENAME_COMPONENT(WINDOWS_SDK_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v8.0;InstallationFolder]" ABSOLUTE CACHE)
|
|
||||||
if(WINDOWS_SDK_PATH STREQUAL "")
|
|
||||||
set(HAVE_MSPDK FALSE)
|
|
||||||
message(STATUS "Windows Platform SDK 8.0 was not found")
|
|
||||||
else()
|
|
||||||
set(HAVE_MSPDK TRUE)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#search for Visual Studio 11.0 install directory
|
# Removing LNK4075 warnings for debug WinRT builds
|
||||||
message(STATUS "Checking for Visual Studio 2012")
|
# "LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification"
|
||||||
GET_FILENAME_COMPONENT(VISUAL_STUDIO_PATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0\\Setup\\VS;ProductDir] REALPATH CACHE)
|
# "LNK4075: ignoring '/INCREMENTAL' due to '/OPT:REF' specification"
|
||||||
if(VISUAL_STUDIO_PATH STREQUAL "")
|
if(MSVC AND WINRT)
|
||||||
set(HAVE_MSVC2012 FALSE)
|
# Optional verification checks since we don't know existing contents of variables below
|
||||||
message(STATUS "Visual Studio 2012 was not found")
|
string(REPLACE "/OPT:ICF " "/OPT:NOICF " CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
|
||||||
else()
|
string(REPLACE "/OPT:REF " "/OPT:NOREF " CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
|
||||||
set(HAVE_MSVC2012 TRUE)
|
string(REPLACE "/INCREMENTAL:YES " "/INCREMENTAL:NO " CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
|
||||||
endif()
|
string(REPLACE "/INCREMENTAL " "/INCREMENTAL:NO " CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
|
||||||
|
|
||||||
try_compile(HAVE_WINRT_SDK
|
string(REPLACE "/OPT:ICF " "/OPT:NOICF " CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG}")
|
||||||
"${OpenCV_BINARY_DIR}"
|
string(REPLACE "/OPT:REF " "/OPT:NORE F" CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG}")
|
||||||
"${OpenCV_SOURCE_DIR}/cmake/checks/winrttest.cpp")
|
string(REPLACE "/INCREMENTAL:YES " "/INCREMENTAL:NO " CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG}")
|
||||||
|
string(REPLACE "/INCREMENTAL " "/INCREMENTAL:NO " CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG}")
|
||||||
|
|
||||||
if(ENABLE_WINRT_MODE AND HAVE_WINRT_SDK AND HAVE_MSVC2012 AND HAVE_MSPDK)
|
string(REPLACE "/OPT:ICF " "/OPT:NOICF " CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}")
|
||||||
set(HAVE_WINRT TRUE)
|
string(REPLACE "/OPT:REF " "/OPT:NOREF " CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}")
|
||||||
set(HAVE_WINRT_CX TRUE)
|
string(REPLACE "/INCREMENTAL:YES " "/INCREMENTAL:NO " CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}")
|
||||||
elseif(ENABLE_WINRT_MODE_NATIVE AND HAVE_WINRT_SDK AND HAVE_MSVC2012 AND HAVE_MSPDK)
|
string(REPLACE "/INCREMENTAL " "/INCREMENTAL:NO " CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}")
|
||||||
set(HAVE_WINRT TRUE)
|
|
||||||
set(HAVE_WINRT_CX FALSE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(HAVE_WINRT)
|
# Mandatory
|
||||||
add_definitions(/DWINVER=0x0602 /DNTDDI_VERSION=NTDDI_WIN8 /D_WIN32_WINNT=0x0602)
|
set(CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO /OPT:NOREF /OPT:NOICF")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /appcontainer")
|
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO /OPT:NOREF /OPT:NOICF")
|
||||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /appcontainer")
|
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO /OPT:NOREF /OPT:NOICF")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /appcontainer")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT BUILD_SHARED_LIBS AND BUILD_WITH_STATIC_CRT)
|
if(NOT BUILD_SHARED_LIBS AND BUILD_WITH_STATIC_CRT)
|
||||||
|
@ -65,6 +65,9 @@ if(MSVC)
|
|||||||
if(CMAKE_CL_64)
|
if(CMAKE_CL_64)
|
||||||
set(OpenCV_ARCH x64)
|
set(OpenCV_ARCH x64)
|
||||||
set(OpenCV_TBB_ARCH intel64)
|
set(OpenCV_TBB_ARCH intel64)
|
||||||
|
elseif((CMAKE_GENERATOR MATCHES "ARM") OR ("${arch_hint}" STREQUAL "ARM") OR (CMAKE_VS_EFFECTIVE_PLATFORMS MATCHES "ARM|arm"))
|
||||||
|
# see Modules/CmakeGenericSystem.cmake
|
||||||
|
set(OpenCV_ARCH ARM)
|
||||||
else()
|
else()
|
||||||
set(OpenCV_ARCH x86)
|
set(OpenCV_ARCH x86)
|
||||||
set(OpenCV_TBB_ARCH ia32)
|
set(OpenCV_TBB_ARCH ia32)
|
||||||
|
@ -127,6 +127,9 @@ endif()
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
if(CMAKE_CL_64)
|
if(CMAKE_CL_64)
|
||||||
set(OpenCV_ARCH x64)
|
set(OpenCV_ARCH x64)
|
||||||
|
elseif((CMAKE_GENERATOR MATCHES "ARM") OR ("${arch_hint}" STREQUAL "ARM") OR (CMAKE_VS_EFFECTIVE_PLATFORMS MATCHES "ARM|arm"))
|
||||||
|
# see Modules/CmakeGenericSystem.cmake
|
||||||
|
set(OpenCV_ARCH ARM)
|
||||||
else()
|
else()
|
||||||
set(OpenCV_ARCH x86)
|
set(OpenCV_ARCH x86)
|
||||||
endif()
|
endif()
|
||||||
|
@ -10,6 +10,11 @@ else(APPLE)
|
|||||||
set(OPENCL_INCLUDE_DIR "${OpenCV_SOURCE_DIR}/3rdparty/include/opencl/1.2")
|
set(OPENCL_INCLUDE_DIR "${OpenCV_SOURCE_DIR}/3rdparty/include/opencl/1.2")
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
|
if(WINRT)
|
||||||
|
set(OPENCL_FOUND NO)
|
||||||
|
set(HAVE_OPENCL_STATIC OFF)
|
||||||
|
endif(WINRT)
|
||||||
|
|
||||||
if(OPENCL_FOUND)
|
if(OPENCL_FOUND)
|
||||||
if(NOT HAVE_OPENCL_STATIC)
|
if(NOT HAVE_OPENCL_STATIC)
|
||||||
try_compile(__VALID_OPENCL
|
try_compile(__VALID_OPENCL
|
||||||
@ -24,7 +29,9 @@ if(OPENCL_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(HAVE_OPENCL 1)
|
if(NOT WINRT)
|
||||||
|
set(HAVE_OPENCL 1)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(WITH_OPENCL_SVM)
|
if(WITH_OPENCL_SVM)
|
||||||
set(HAVE_OPENCL_SVM 1)
|
set(HAVE_OPENCL_SVM 1)
|
||||||
|
@ -169,9 +169,6 @@
|
|||||||
/* Win32 UI */
|
/* Win32 UI */
|
||||||
#cmakedefine HAVE_WIN32UI
|
#cmakedefine HAVE_WIN32UI
|
||||||
|
|
||||||
/* Windows Runtime support */
|
|
||||||
#cmakedefine HAVE_WINRT
|
|
||||||
|
|
||||||
/* XIMEA camera support */
|
/* XIMEA camera support */
|
||||||
#cmakedefine HAVE_XIMEA
|
#cmakedefine HAVE_XIMEA
|
||||||
|
|
||||||
|
@ -3,11 +3,10 @@ ocv_add_module(core PRIVATE_REQUIRED ${ZLIB_LIBRARIES} "${OPENCL_LIBRARIES}"
|
|||||||
OPTIONAL opencv_cudev
|
OPTIONAL opencv_cudev
|
||||||
WRAP java python)
|
WRAP java python)
|
||||||
|
|
||||||
if(HAVE_WINRT_CX)
|
set(extra_libs "")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
|
|
||||||
endif()
|
if(WINRT AND CMAKE_SYSTEM_NAME MATCHES WindowsStore AND CMAKE_SYSTEM_VERSION MATCHES "8.0")
|
||||||
if(HAVE_WINRT)
|
list(APPEND extra_libs ole32.lib)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GS /Gm- /AI\"${WINDOWS_SDK_PATH}/References/CommonConfiguration/Neutral\" /AI\"${VISUAL_STUDIO_PATH}/vcpackages\"")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_CUDA)
|
if(HAVE_CUDA)
|
||||||
@ -24,7 +23,7 @@ ocv_glob_module_sources(SOURCES "${OPENCV_MODULE_opencv_core_BINARY_DIR}/version
|
|||||||
HEADERS ${lib_cuda_hdrs} ${lib_cuda_hdrs_detail})
|
HEADERS ${lib_cuda_hdrs} ${lib_cuda_hdrs_detail})
|
||||||
|
|
||||||
ocv_module_include_directories(${the_module} ${ZLIB_INCLUDE_DIRS})
|
ocv_module_include_directories(${the_module} ${ZLIB_INCLUDE_DIRS})
|
||||||
ocv_create_module()
|
ocv_create_module(${extra_libs})
|
||||||
|
|
||||||
ocv_add_accuracy_tests()
|
ocv_add_accuracy_tests()
|
||||||
ocv_add_perf_tests()
|
ocv_add_perf_tests()
|
||||||
|
@ -56,14 +56,14 @@ namespace
|
|||||||
|
|
||||||
struct DIR
|
struct DIR
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
WIN32_FIND_DATAW data;
|
WIN32_FIND_DATAW data;
|
||||||
#else
|
#else
|
||||||
WIN32_FIND_DATA data;
|
WIN32_FIND_DATA data;
|
||||||
#endif
|
#endif
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
dirent ent;
|
dirent ent;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
DIR() { }
|
DIR() { }
|
||||||
~DIR()
|
~DIR()
|
||||||
{
|
{
|
||||||
@ -77,7 +77,7 @@ namespace
|
|||||||
{
|
{
|
||||||
DIR* dir = new DIR;
|
DIR* dir = new DIR;
|
||||||
dir->ent.d_name = 0;
|
dir->ent.d_name = 0;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
cv::String full_path = cv::String(path) + "\\*";
|
cv::String full_path = cv::String(path) + "\\*";
|
||||||
wchar_t wfull_path[MAX_PATH];
|
wchar_t wfull_path[MAX_PATH];
|
||||||
size_t copied = mbstowcs(wfull_path, full_path.c_str(), MAX_PATH);
|
size_t copied = mbstowcs(wfull_path, full_path.c_str(), MAX_PATH);
|
||||||
@ -99,7 +99,7 @@ namespace
|
|||||||
|
|
||||||
dirent* readdir(DIR* dir)
|
dirent* readdir(DIR* dir)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
if (dir->ent.d_name != 0)
|
if (dir->ent.d_name != 0)
|
||||||
{
|
{
|
||||||
if (::FindNextFileW(dir->handle, &dir->data) != TRUE)
|
if (::FindNextFileW(dir->handle, &dir->data) != TRUE)
|
||||||
@ -147,7 +147,7 @@ static bool isDir(const cv::String& path, DIR* dir)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
WIN32_FILE_ATTRIBUTE_DATA all_attrs;
|
WIN32_FILE_ATTRIBUTE_DATA all_attrs;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
wchar_t wpath[MAX_PATH];
|
wchar_t wpath[MAX_PATH];
|
||||||
size_t copied = mbstowcs(wpath, path.c_str(), MAX_PATH);
|
size_t copied = mbstowcs(wpath, path.c_str(), MAX_PATH);
|
||||||
CV_Assert((copied != MAX_PATH) && (copied != (size_t)-1));
|
CV_Assert((copied != MAX_PATH) && (copied != (size_t)-1));
|
||||||
|
@ -64,7 +64,15 @@
|
|||||||
// TODO Move to some common place
|
// TODO Move to some common place
|
||||||
static bool getBoolParameter(const char* name, bool defaultValue)
|
static bool getBoolParameter(const char* name, bool defaultValue)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* If your system doesn't support getenv(), define NO_GETENV to disable
|
||||||
|
* this feature.
|
||||||
|
*/
|
||||||
|
#ifdef NO_GETENV
|
||||||
|
const char* envValue = NULL;
|
||||||
|
#else
|
||||||
const char* envValue = getenv(name);
|
const char* envValue = getenv(name);
|
||||||
|
#endif
|
||||||
if (envValue == NULL)
|
if (envValue == NULL)
|
||||||
{
|
{
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
@ -85,7 +93,7 @@ static bool getBoolParameter(const char* name, bool defaultValue)
|
|||||||
// TODO Move to some common place
|
// TODO Move to some common place
|
||||||
static size_t getConfigurationParameterForSize(const char* name, size_t defaultValue)
|
static size_t getConfigurationParameterForSize(const char* name, size_t defaultValue)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef NO_GETENV
|
||||||
const char* envValue = NULL;
|
const char* envValue = NULL;
|
||||||
#else
|
#else
|
||||||
const char* envValue = getenv(name);
|
const char* envValue = getenv(name);
|
||||||
@ -728,7 +736,7 @@ static void* initOpenCLAndLoad(const char* funcname)
|
|||||||
static HMODULE handle = 0;
|
static HMODULE handle = 0;
|
||||||
if (!handle)
|
if (!handle)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_WINRT
|
#ifndef WINRT
|
||||||
if(!initialized)
|
if(!initialized)
|
||||||
{
|
{
|
||||||
handle = LoadLibraryA("OpenCL.dll");
|
handle = LoadLibraryA("OpenCL.dll");
|
||||||
@ -2231,7 +2239,7 @@ static bool parseOpenCLDeviceConfiguration(const std::string& configurationStr,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
static cl_device_id selectOpenCLDevice()
|
static cl_device_id selectOpenCLDevice()
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
#define HAVE_GCD
|
#define HAVE_GCD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined _MSC_VER && _MSC_VER >= 1600
|
#if defined _MSC_VER && _MSC_VER >= 1600 && !defined(WINRT)
|
||||||
#define HAVE_CONCURRENCY
|
#define HAVE_CONCURRENCY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -458,7 +458,7 @@ int cv::getNumberOfCPUs(void)
|
|||||||
{
|
{
|
||||||
#if defined WIN32 || defined _WIN32
|
#if defined WIN32 || defined _WIN32
|
||||||
SYSTEM_INFO sysinfo;
|
SYSTEM_INFO sysinfo;
|
||||||
#if defined(_M_ARM) || defined(_M_X64) || defined(HAVE_WINRT)
|
#if defined(_M_ARM) || defined(_M_X64) || defined(WINRT)
|
||||||
GetNativeSystemInfo( &sysinfo );
|
GetNativeSystemInfo( &sysinfo );
|
||||||
#else
|
#else
|
||||||
GetSystemInfo( &sysinfo );
|
GetSystemInfo( &sysinfo );
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#include <wrl/client.h>
|
#include <wrl/client.h>
|
||||||
#ifndef __cplusplus_winrt
|
#ifndef __cplusplus_winrt
|
||||||
#include <windows.storage.h>
|
#include <windows.storage.h>
|
||||||
@ -159,7 +159,7 @@ std::wstring GetTempFileNameWinRT(std::wstring prefix)
|
|||||||
UINT(g.Data4[2]), UINT(g.Data4[3]), UINT(g.Data4[4]),
|
UINT(g.Data4[2]), UINT(g.Data4[3]), UINT(g.Data4[4]),
|
||||||
UINT(g.Data4[5]), UINT(g.Data4[6]), UINT(g.Data4[7]));
|
UINT(g.Data4[5]), UINT(g.Data4[6]), UINT(g.Data4[7]));
|
||||||
|
|
||||||
return prefix + std::wstring(guidStr);
|
return prefix.append(std::wstring(guidStr));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@ -542,12 +542,12 @@ String format( const char* fmt, ... )
|
|||||||
String tempfile( const char* suffix )
|
String tempfile( const char* suffix )
|
||||||
{
|
{
|
||||||
String fname;
|
String fname;
|
||||||
#ifndef HAVE_WINRT
|
#ifndef WINRT
|
||||||
const char *temp_dir = getenv("OPENCV_TEMP_PATH");
|
const char *temp_dir = getenv("OPENCV_TEMP_PATH");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined WIN32 || defined _WIN32
|
#if defined WIN32 || defined _WIN32
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
RoInitialize(RO_INIT_MULTITHREADED);
|
RoInitialize(RO_INIT_MULTITHREADED);
|
||||||
std::wstring temp_dir = L"";
|
std::wstring temp_dir = L"";
|
||||||
const wchar_t* opencv_temp_dir = GetTempPathWinRT().c_str();
|
const wchar_t* opencv_temp_dir = GetTempPathWinRT().c_str();
|
||||||
@ -559,7 +559,7 @@ String tempfile( const char* suffix )
|
|||||||
if (temp_file.empty())
|
if (temp_file.empty())
|
||||||
return String();
|
return String();
|
||||||
|
|
||||||
temp_file = temp_dir + std::wstring(L"\\") + temp_file;
|
temp_file = temp_dir.append(std::wstring(L"\\")).append(temp_file);
|
||||||
DeleteFileW(temp_file.c_str());
|
DeleteFileW(temp_file.c_str());
|
||||||
|
|
||||||
char aname[MAX_PATH];
|
char aname[MAX_PATH];
|
||||||
@ -955,7 +955,7 @@ public:
|
|||||||
#pragma warning(disable:4505) // unreferenced local function has been removed
|
#pragma warning(disable:4505) // unreferenced local function has been removed
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
// using C++11 thread attribute for local thread data
|
// using C++11 thread attribute for local thread data
|
||||||
static __declspec( thread ) TLSStorage* g_tlsdata = NULL;
|
static __declspec( thread ) TLSStorage* g_tlsdata = NULL;
|
||||||
|
|
||||||
@ -1006,10 +1006,10 @@ public:
|
|||||||
}
|
}
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
#endif //HAVE_WINRT
|
#endif //WINRT
|
||||||
|
|
||||||
#if defined CVAPI_EXPORTS && defined WIN32 && !defined WINCE
|
#if defined CVAPI_EXPORTS && defined WIN32 && !defined WINCE
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
|
#pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
if(IOS OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||||
ocv_module_disable(cudaarithm)
|
ocv_module_disable(cudaarithm)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS OR APPLE OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
if(IOS OR APPLE OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||||
ocv_module_disable(cudacodec)
|
ocv_module_disable(cudacodec)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
if(IOS OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||||
ocv_module_disable(cudafeatures2d)
|
ocv_module_disable(cudafeatures2d)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
if(IOS OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||||
ocv_module_disable(cudafilters)
|
ocv_module_disable(cudafilters)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
if(IOS OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||||
ocv_module_disable(cudaimgproc)
|
ocv_module_disable(cudaimgproc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
if(IOS OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||||
ocv_module_disable(cudaoptflow)
|
ocv_module_disable(cudaoptflow)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
if(IOS OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||||
ocv_module_disable(cudastereo)
|
ocv_module_disable(cudastereo)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
if(IOS OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
|
||||||
ocv_module_disable(cudawarping)
|
ocv_module_disable(cudawarping)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
if (WINRT)
|
||||||
|
ocv_module_disable(highgui)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(the_description "High-level GUI and Media I/O")
|
set(the_description "High-level GUI and Media I/O")
|
||||||
ocv_add_module(highgui opencv_imgproc opencv_imgcodecs opencv_videoio OPTIONAL opencv_androidcamera WRAP python)
|
ocv_add_module(highgui opencv_imgproc opencv_imgcodecs opencv_videoio OPTIONAL opencv_androidcamera WRAP python)
|
||||||
|
|
||||||
@ -7,7 +11,8 @@ ocv_add_module(highgui opencv_imgproc opencv_imgcodecs opencv_videoio OPTIONAL o
|
|||||||
# Jose Luis Blanco, 2008
|
# Jose Luis Blanco, 2008
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
if(HAVE_WINRT_CX)
|
# Compilation with /ZW is not allowed for *.c files
|
||||||
|
if(HAVE_WINRT_CX AND NOT WINRT)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
if(WINRT)
|
||||||
|
ocv_module_disable(imgcodecs)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(the_description "Image codecs")
|
set(the_description "Image codecs")
|
||||||
ocv_add_module(imgcodecs opencv_imgproc WRAP java python)
|
ocv_add_module(imgcodecs opencv_imgproc WRAP java python)
|
||||||
|
|
||||||
@ -9,7 +13,7 @@ ocv_add_module(imgcodecs opencv_imgproc WRAP java python)
|
|||||||
|
|
||||||
ocv_clear_vars(GRFMT_LIBS)
|
ocv_clear_vars(GRFMT_LIBS)
|
||||||
|
|
||||||
if(HAVE_WINRT_CX)
|
if(HAVE_WINRT_CX AND NOT WINRT)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# CMake file for java support
|
# CMake file for java support
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
if(IOS OR NOT PYTHON_DEFAULT_AVAILABLE OR NOT ANT_EXECUTABLE OR NOT (JNI_FOUND OR (ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER 7))
|
if(IOS OR WINRT OR NOT PYTHON_DEFAULT_AVAILABLE OR NOT ANT_EXECUTABLE OR NOT (JNI_FOUND OR (ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER 7))
|
||||||
OR BUILD_opencv_world
|
OR BUILD_opencv_world
|
||||||
)
|
)
|
||||||
ocv_module_disable(java)
|
ocv_module_disable(java)
|
||||||
|
@ -9,7 +9,7 @@ if((WIN32 AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
ocv_module_disable(python3)
|
ocv_module_disable(python3)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ANDROID OR IOS)
|
if(ANDROID OR IOS OR WINRT)
|
||||||
ocv_module_disable(python2)
|
ocv_module_disable(python2)
|
||||||
ocv_module_disable(python3)
|
ocv_module_disable(python3)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
if(IOS)
|
if(IOS OR WINRT)
|
||||||
ocv_module_disable(superres)
|
ocv_module_disable(superres)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
set(the_description "The ts module")
|
set(the_description "The ts module")
|
||||||
|
|
||||||
if(IOS)
|
if(IOS OR WINRT)
|
||||||
ocv_module_disable(ts)
|
ocv_module_disable(ts)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
|
#pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
if(WINRT)
|
||||||
|
ocv_module_disable(videoio)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(the_description "Media I/O")
|
set(the_description "Media I/O")
|
||||||
ocv_add_module(videoio opencv_imgproc opencv_imgcodecs OPTIONAL opencv_androidcamera WRAP java python)
|
ocv_add_module(videoio opencv_imgproc opencv_imgcodecs OPTIONAL opencv_androidcamera WRAP java python)
|
||||||
|
|
||||||
@ -7,7 +11,7 @@ ocv_add_module(videoio opencv_imgproc opencv_imgcodecs OPTIONAL opencv_androidca
|
|||||||
# Jose Luis Blanco, 2008
|
# Jose Luis Blanco, 2008
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
if(HAVE_WINRT_CX)
|
if(HAVE_WINRT_CX AND NOT WINRT)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ private:
|
|||||||
icvInitFFMPEG()
|
icvInitFFMPEG()
|
||||||
{
|
{
|
||||||
#if defined WIN32 || defined _WIN32
|
#if defined WIN32 || defined _WIN32
|
||||||
# ifdef HAVE_WINRT
|
# ifdef WINRT
|
||||||
const wchar_t* module_name = L"opencv_ffmpeg"
|
const wchar_t* module_name = L"opencv_ffmpeg"
|
||||||
CVAUX_STRW(CV_MAJOR_VERSION) CVAUX_STRW(CV_MINOR_VERSION) CVAUX_STRW(CV_SUBMINOR_VERSION)
|
CVAUX_STRW(CV_MAJOR_VERSION) CVAUX_STRW(CV_MINOR_VERSION) CVAUX_STRW(CV_SUBMINOR_VERSION)
|
||||||
#if (defined _MSC_VER && defined _M_X64) || (defined __GNUC__ && defined __x86_64__)
|
#if (defined _MSC_VER && defined _M_X64) || (defined __GNUC__ && defined __x86_64__)
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
#include <mferror.h>
|
#include <mferror.h>
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
// for ComPtr usage
|
// for ComPtr usage
|
||||||
#include <wrl/client.h>
|
#include <wrl/client.h>
|
||||||
#ifdef __cplusplus_winrt
|
#ifdef __cplusplus_winrt
|
||||||
@ -266,7 +266,7 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct IMFMediaType;
|
struct IMFMediaType;
|
||||||
#ifndef HAVE_WINRT
|
#ifndef WINRT
|
||||||
struct IMFActivate;
|
struct IMFActivate;
|
||||||
struct IMFMediaSource;
|
struct IMFMediaSource;
|
||||||
#endif
|
#endif
|
||||||
@ -406,7 +406,7 @@ private:
|
|||||||
ImageGrabberCallback& operator=(const ImageGrabberCallback&); // Declared to fix compilation warning.
|
ImageGrabberCallback& operator=(const ImageGrabberCallback&); // Declared to fix compilation warning.
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
extern const __declspec(selectany) WCHAR RuntimeClass_CV_ImageGrabberWinRT[] = L"cv.ImageGrabberWinRT";
|
extern const __declspec(selectany) WCHAR RuntimeClass_CV_ImageGrabberWinRT[] = L"cv.ImageGrabberWinRT";
|
||||||
|
|
||||||
class ImageGrabberWinRT :
|
class ImageGrabberWinRT :
|
||||||
@ -547,7 +547,7 @@ public:
|
|||||||
CamParametrs getParametrs();
|
CamParametrs getParametrs();
|
||||||
void setParametrs(CamParametrs parametrs);
|
void setParametrs(CamParametrs parametrs);
|
||||||
void setEmergencyStopEvent(void *userData, void(*func)(int, void *));
|
void setEmergencyStopEvent(void *userData, void(*func)(int, void *));
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
long readInfoOfDevice(MAKE_WRL_REF(_IDeviceInformation) pDevice, unsigned int Num);
|
long readInfoOfDevice(MAKE_WRL_REF(_IDeviceInformation) pDevice, unsigned int Num);
|
||||||
void waitForDevice()
|
void waitForDevice()
|
||||||
{
|
{
|
||||||
@ -593,7 +593,7 @@ private:
|
|||||||
std::map<UINT64, FrameRateMap> vd_CaptureFormats;
|
std::map<UINT64, FrameRateMap> vd_CaptureFormats;
|
||||||
std::vector<MediaType> vd_CurrentFormats;
|
std::vector<MediaType> vd_CurrentFormats;
|
||||||
IMFMediaSource *vd_pSource;
|
IMFMediaSource *vd_pSource;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
MAKE_WRL_AGILE_REF(_MediaCapture) vd_pMedCap;
|
MAKE_WRL_AGILE_REF(_MediaCapture) vd_pMedCap;
|
||||||
EventRegistrationToken vd_cookie;
|
EventRegistrationToken vd_cookie;
|
||||||
ImageGrabberWinRT *vd_pImGr;
|
ImageGrabberWinRT *vd_pImGr;
|
||||||
@ -608,7 +608,7 @@ private:
|
|||||||
long setDeviceFormat(IMFMediaSource *pSource, unsigned long dwFormatIndex);
|
long setDeviceFormat(IMFMediaSource *pSource, unsigned long dwFormatIndex);
|
||||||
void buildLibraryofTypes();
|
void buildLibraryofTypes();
|
||||||
int findType(unsigned int size, unsigned int frameRate = 0);
|
int findType(unsigned int size, unsigned int frameRate = 0);
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
HRESULT enumerateCaptureFormats(MAKE_WRL_REF(_MediaCapture) pSource);
|
HRESULT enumerateCaptureFormats(MAKE_WRL_REF(_MediaCapture) pSource);
|
||||||
long setDeviceFormat(MAKE_WRL_REF(_MediaCapture) pSource, unsigned long dwFormatIndex, MAKE_WRL_REF(_AsyncAction)* pAction);
|
long setDeviceFormat(MAKE_WRL_REF(_MediaCapture) pSource, unsigned long dwFormatIndex, MAKE_WRL_REF(_AsyncAction)* pAction);
|
||||||
long resetDevice(MAKE_WRL_REF(_IDeviceInformation) pDevice);
|
long resetDevice(MAKE_WRL_REF(_IDeviceInformation) pDevice);
|
||||||
@ -627,7 +627,7 @@ class videoDevices
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
~videoDevices(void);
|
~videoDevices(void);
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
long initDevices(_DeviceClass devClass);
|
long initDevices(_DeviceClass devClass);
|
||||||
void waitInit() {
|
void waitInit() {
|
||||||
if (vds_enumTask) {
|
if (vds_enumTask) {
|
||||||
@ -646,7 +646,7 @@ public:
|
|||||||
void clearDevices();
|
void clearDevices();
|
||||||
private:
|
private:
|
||||||
UINT32 count;
|
UINT32 count;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
MAKE_WRL_REF(_AsyncAction) vds_enumTask;
|
MAKE_WRL_REF(_AsyncAction) vds_enumTask;
|
||||||
#endif
|
#endif
|
||||||
std::vector<videoDevice *> vds_Devices;
|
std::vector<videoDevice *> vds_Devices;
|
||||||
@ -715,7 +715,7 @@ public:
|
|||||||
bool setupDevice(int deviceID, unsigned int w, unsigned int h, unsigned int idealFramerate = 30);
|
bool setupDevice(int deviceID, unsigned int w, unsigned int h, unsigned int idealFramerate = 30);
|
||||||
// Checking of recivig of new frame from video device with deviceID
|
// Checking of recivig of new frame from video device with deviceID
|
||||||
bool isFrameNew(int deviceID);
|
bool isFrameNew(int deviceID);
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
void waitForDevice(int deviceID);
|
void waitForDevice(int deviceID);
|
||||||
#endif
|
#endif
|
||||||
// Writing of Raw Data pixels from video device with deviceID with correction of RedAndBlue flipping flipRedAndBlue and vertical flipping flipImage
|
// Writing of Raw Data pixels from video device with deviceID with correction of RedAndBlue flipping flipRedAndBlue and vertical flipping flipImage
|
||||||
@ -1237,7 +1237,7 @@ ImageGrabber::~ImageGrabber(void)
|
|||||||
DebugPrintOut(L"IMAGEGRABBER VIDEODEVICE %i: Destroying instance of the ImageGrabber class\n", ig_DeviceID);
|
DebugPrintOut(L"IMAGEGRABBER VIDEODEVICE %i: Destroying instance of the ImageGrabber class\n", ig_DeviceID);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
|
|
||||||
ImageGrabberWinRT::ImageGrabberWinRT(bool synchronous):
|
ImageGrabberWinRT::ImageGrabberWinRT(bool synchronous):
|
||||||
ImageGrabberCallback(synchronous),
|
ImageGrabberCallback(synchronous),
|
||||||
@ -1899,7 +1899,7 @@ Media_Foundation::~Media_Foundation(void)
|
|||||||
bool Media_Foundation::buildListOfDevices()
|
bool Media_Foundation::buildListOfDevices()
|
||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
videoDevices *vDs = &videoDevices::getInstance();
|
videoDevices *vDs = &videoDevices::getInstance();
|
||||||
hr = vDs->initDevices(WRL_ENUM_GET(_DeviceClass, DeviceClass, VideoCapture));
|
hr = vDs->initDevices(WRL_ENUM_GET(_DeviceClass, DeviceClass, VideoCapture));
|
||||||
#else
|
#else
|
||||||
@ -1987,7 +1987,7 @@ unsigned char * RawImage::getpPixels()
|
|||||||
videoDevice::videoDevice(void): vd_IsSetuped(false), vd_LockOut(OpenLock), vd_pFriendlyName(NULL),
|
videoDevice::videoDevice(void): vd_IsSetuped(false), vd_LockOut(OpenLock), vd_pFriendlyName(NULL),
|
||||||
vd_Width(0), vd_Height(0), vd_FrameRate(0), vd_pSource(NULL), vd_pImGrTh(NULL), vd_func(NULL), vd_userData(NULL)
|
vd_Width(0), vd_Height(0), vd_FrameRate(0), vd_pSource(NULL), vd_pImGrTh(NULL), vd_func(NULL), vd_userData(NULL)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
vd_pMedCap = nullptr;
|
vd_pMedCap = nullptr;
|
||||||
vd_cookie.value = 0;
|
vd_cookie.value = 0;
|
||||||
vd_pImGr = NULL;
|
vd_pImGr = NULL;
|
||||||
@ -2075,7 +2075,7 @@ CamParametrs videoDevice::getParametrs()
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
long videoDevice::resetDevice(MAKE_WRL_REF(_IDeviceInformation) pDevice)
|
long videoDevice::resetDevice(MAKE_WRL_REF(_IDeviceInformation) pDevice)
|
||||||
#else
|
#else
|
||||||
long videoDevice::resetDevice(IMFActivate *pActivate)
|
long videoDevice::resetDevice(IMFActivate *pActivate)
|
||||||
@ -2086,7 +2086,7 @@ long videoDevice::resetDevice(IMFActivate *pActivate)
|
|||||||
if(vd_pFriendlyName)
|
if(vd_pFriendlyName)
|
||||||
CoTaskMemFree(vd_pFriendlyName);
|
CoTaskMemFree(vd_pFriendlyName);
|
||||||
vd_pFriendlyName = NULL;
|
vd_pFriendlyName = NULL;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
if (pDevice)
|
if (pDevice)
|
||||||
{
|
{
|
||||||
ACTIVATE_OBJ(RuntimeClass_Windows_Media_Capture_MediaCapture, _MediaCapture, pIMedCap, hr)
|
ACTIVATE_OBJ(RuntimeClass_Windows_Media_Capture_MediaCapture, _MediaCapture, pIMedCap, hr)
|
||||||
@ -2157,7 +2157,7 @@ long videoDevice::resetDevice(IMFActivate *pActivate)
|
|||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
long videoDevice::readInfoOfDevice(MAKE_WRL_REF(_IDeviceInformation) pDevice, unsigned int Num)
|
long videoDevice::readInfoOfDevice(MAKE_WRL_REF(_IDeviceInformation) pDevice, unsigned int Num)
|
||||||
{
|
{
|
||||||
HRESULT hr = -1;
|
HRESULT hr = -1;
|
||||||
@ -2173,7 +2173,7 @@ long videoDevice::readInfoOfDevice(IMFActivate *pActivate, unsigned int Num)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
long videoDevice::checkDevice(_DeviceClass devClass, DEFINE_TASK<void>* pTask, MAKE_WRL_REF(_IDeviceInformation)* ppDevice)
|
long videoDevice::checkDevice(_DeviceClass devClass, DEFINE_TASK<void>* pTask, MAKE_WRL_REF(_IDeviceInformation)* ppDevice)
|
||||||
{
|
{
|
||||||
@ -2273,7 +2273,7 @@ long videoDevice::initDevice()
|
|||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
CoInitialize(NULL);
|
CoInitialize(NULL);
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
Concurrency::critical_section::scoped_lock _LockHolder(vd_lock);
|
Concurrency::critical_section::scoped_lock _LockHolder(vd_lock);
|
||||||
MAKE_WRL_REF(_AsyncAction) pOldAction = vd_pAction;
|
MAKE_WRL_REF(_AsyncAction) pOldAction = vd_pAction;
|
||||||
@ -2381,7 +2381,7 @@ void videoDevice::closeDevice()
|
|||||||
{
|
{
|
||||||
vd_IsSetuped = false;
|
vd_IsSetuped = false;
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
if (DEREF_AGILE_WRL_OBJ(vd_pMedCap)) {
|
if (DEREF_AGILE_WRL_OBJ(vd_pMedCap)) {
|
||||||
MAKE_WRL_REF(_AsyncAction) action;
|
MAKE_WRL_REF(_AsyncAction) action;
|
||||||
@ -2535,7 +2535,7 @@ void videoDevice::buildLibraryofTypes()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
long videoDevice::setDeviceFormat(MAKE_WRL_REF(_MediaCapture) pSource, unsigned long dwFormatIndex, MAKE_WRL_REF(_AsyncAction)* pAction)
|
long videoDevice::setDeviceFormat(MAKE_WRL_REF(_MediaCapture) pSource, unsigned long dwFormatIndex, MAKE_WRL_REF(_AsyncAction)* pAction)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
@ -2596,7 +2596,7 @@ bool videoDevice::isDeviceSetup()
|
|||||||
RawImage * videoDevice::getRawImageOut()
|
RawImage * videoDevice::getRawImageOut()
|
||||||
{
|
{
|
||||||
if(!vd_IsSetuped) return NULL;
|
if(!vd_IsSetuped) return NULL;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
if(vd_pImGr) return vd_pImGr->getRawImage();
|
if(vd_pImGr) return vd_pImGr->getRawImage();
|
||||||
#endif
|
#endif
|
||||||
if(vd_pImGrTh)
|
if(vd_pImGrTh)
|
||||||
@ -2618,7 +2618,7 @@ bool videoDevice::isFrameNew()
|
|||||||
vd_LockOut = RawDataLock;
|
vd_LockOut = RawDataLock;
|
||||||
|
|
||||||
//must already be closed
|
//must already be closed
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
if (DEREF_AGILE_WRL_OBJ(vd_pMedCap)) {
|
if (DEREF_AGILE_WRL_OBJ(vd_pMedCap)) {
|
||||||
MAKE_WRL_REF(_AsyncAction) action;
|
MAKE_WRL_REF(_AsyncAction) action;
|
||||||
if (FAILED(ImageGrabberWinRT::CreateInstance(&vd_pImGr))) return false;
|
if (FAILED(ImageGrabberWinRT::CreateInstance(&vd_pImGr))) return false;
|
||||||
@ -2649,7 +2649,7 @@ bool videoDevice::isFrameNew()
|
|||||||
vd_pImGrTh->start();
|
vd_pImGrTh->start();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
if(vd_pImGr)
|
if(vd_pImGr)
|
||||||
return vd_pImGr->getRawImage()->isNew();
|
return vd_pImGr->getRawImage()->isNew();
|
||||||
#endif
|
#endif
|
||||||
@ -2678,7 +2678,7 @@ bool videoDevice::setupDevice(unsigned int id)
|
|||||||
HRESULT hr = initDevice();
|
HRESULT hr = initDevice();
|
||||||
if(SUCCEEDED(hr))
|
if(SUCCEEDED(hr))
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
Concurrency::critical_section::scoped_lock _LockHolder(vd_lock);
|
Concurrency::critical_section::scoped_lock _LockHolder(vd_lock);
|
||||||
MAKE_WRL_REF(_AsyncAction) pOldAction = vd_pAction;
|
MAKE_WRL_REF(_AsyncAction) pOldAction = vd_pAction;
|
||||||
@ -2692,7 +2692,7 @@ bool videoDevice::setupDevice(unsigned int id)
|
|||||||
vd_Height = vd_CurrentFormats[id].height;
|
vd_Height = vd_CurrentFormats[id].height;
|
||||||
vd_FrameRate = vd_CurrentFormats[id].MF_MT_FRAME_RATE_NUMERATOR /
|
vd_FrameRate = vd_CurrentFormats[id].MF_MT_FRAME_RATE_NUMERATOR /
|
||||||
vd_CurrentFormats[id].MF_MT_FRAME_RATE_DENOMINATOR;
|
vd_CurrentFormats[id].MF_MT_FRAME_RATE_DENOMINATOR;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
if (DEREF_AGILE_WRL_OBJ(vd_pMedCap)) {
|
if (DEREF_AGILE_WRL_OBJ(vd_pMedCap)) {
|
||||||
DEFINE_TASK<void> _task;
|
DEFINE_TASK<void> _task;
|
||||||
@ -2710,7 +2710,7 @@ bool videoDevice::setupDevice(unsigned int id)
|
|||||||
if(vd_IsSetuped)
|
if(vd_IsSetuped)
|
||||||
DebugPrintOut(L"\n\nVIDEODEVICE %i: Device is setuped \n", vd_CurrentNumber);
|
DebugPrintOut(L"\n\nVIDEODEVICE %i: Device is setuped \n", vd_CurrentNumber);
|
||||||
vd_PrevParametrs = getParametrs();
|
vd_PrevParametrs = getParametrs();
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
END_CREATE_ASYNC(hr));
|
END_CREATE_ASYNC(hr));
|
||||||
#endif
|
#endif
|
||||||
@ -2749,7 +2749,7 @@ wchar_t *videoDevice::getName()
|
|||||||
videoDevice::~videoDevice(void)
|
videoDevice::~videoDevice(void)
|
||||||
{
|
{
|
||||||
closeDevice();
|
closeDevice();
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
RELEASE_WRL(vd_pMedCap)
|
RELEASE_WRL(vd_pMedCap)
|
||||||
#endif
|
#endif
|
||||||
SafeRelease(&vd_pSource);
|
SafeRelease(&vd_pSource);
|
||||||
@ -2757,7 +2757,7 @@ videoDevice::~videoDevice(void)
|
|||||||
CoTaskMemFree(vd_pFriendlyName);
|
CoTaskMemFree(vd_pFriendlyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
HRESULT videoDevice::enumerateCaptureFormats(MAKE_WRL_REF(_MediaCapture) pSource)
|
HRESULT videoDevice::enumerateCaptureFormats(MAKE_WRL_REF(_MediaCapture) pSource)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
@ -2831,7 +2831,7 @@ done:
|
|||||||
|
|
||||||
videoDevices::videoDevices(void): count(0)
|
videoDevices::videoDevices(void): count(0)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
vds_enumTask = nullptr;
|
vds_enumTask = nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -2862,7 +2862,7 @@ videoDevice * videoDevices::getDevice(unsigned int i)
|
|||||||
return vds_Devices[i];
|
return vds_Devices[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
long videoDevices::initDevices(_DeviceClass devClass)
|
long videoDevices::initDevices(_DeviceClass devClass)
|
||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
@ -3196,7 +3196,7 @@ bool videoInput::isFrameNew(int deviceID)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
void videoInput::waitForDevice(int deviceID)
|
void videoInput::waitForDevice(int deviceID)
|
||||||
{
|
{
|
||||||
if (deviceID < 0)
|
if (deviceID < 0)
|
||||||
@ -3405,7 +3405,7 @@ unsigned int videoInput::listDevices(bool silent)
|
|||||||
if(accessToDevices)
|
if(accessToDevices)
|
||||||
{
|
{
|
||||||
videoDevices *VDS = &videoDevices::getInstance();
|
videoDevices *VDS = &videoDevices::getInstance();
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
VDS->waitInit();
|
VDS->waitInit();
|
||||||
#endif
|
#endif
|
||||||
out = VDS->getCount();
|
out = VDS->getCount();
|
||||||
@ -3595,7 +3595,7 @@ protected:
|
|||||||
int index, width, height, fourcc;
|
int index, width, height, fourcc;
|
||||||
IplImage* frame;
|
IplImage* frame;
|
||||||
videoInput VI;
|
videoInput VI;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
DEFINE_TASK<bool> openTask;
|
DEFINE_TASK<bool> openTask;
|
||||||
Concurrency::critical_section lock;
|
Concurrency::critical_section lock;
|
||||||
@ -3643,7 +3643,7 @@ void CvCaptureCAM_MSMF::close()
|
|||||||
// Initialize camera input
|
// Initialize camera input
|
||||||
bool CvCaptureCAM_MSMF::open( int _index )
|
bool CvCaptureCAM_MSMF::open( int _index )
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
SAVE_CURRENT_CONTEXT(context);
|
SAVE_CURRENT_CONTEXT(context);
|
||||||
auto func = [_index, context, this](DEFINE_RET_VAL(bool)) -> DEFINE_RET_FORMAL(bool) {
|
auto func = [_index, context, this](DEFINE_RET_VAL(bool)) -> DEFINE_RET_FORMAL(bool) {
|
||||||
@ -3656,14 +3656,14 @@ bool CvCaptureCAM_MSMF::open( int _index )
|
|||||||
if (devices == 0)
|
if (devices == 0)
|
||||||
return false;
|
return false;
|
||||||
try_index = try_index < 0 ? 0 : (try_index > devices-1 ? devices-1 : try_index);
|
try_index = try_index < 0 ? 0 : (try_index > devices-1 ? devices-1 : try_index);
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
BEGIN_CALL_IN_CONTEXT(hr, context, this, try_index)
|
BEGIN_CALL_IN_CONTEXT(hr, context, this, try_index)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
VI.setupDevice(try_index, 0, 0, 0); // With maximum frame size.
|
VI.setupDevice(try_index, 0, 0, 0); // With maximum frame size.
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
END_CALL_IN_CONTEXT_BASE
|
END_CALL_IN_CONTEXT_BASE
|
||||||
VI.waitForDevice(try_index);
|
VI.waitForDevice(try_index);
|
||||||
@ -3672,13 +3672,13 @@ bool CvCaptureCAM_MSMF::open( int _index )
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
if( !VI.isFrameNew(try_index) )
|
if( !VI.isFrameNew(try_index) )
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
hr = E_FAIL;
|
hr = E_FAIL;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
index = try_index;
|
index = try_index;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#ifdef HAVE_CONCURRENCY
|
#ifdef HAVE_CONCURRENCY
|
||||||
END_CALL_IN_CONTEXT_BASE
|
END_CALL_IN_CONTEXT_BASE
|
||||||
RET_VAL(true)
|
RET_VAL(true)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
#define ICustomStreamSink StreamSink
|
#define ICustomStreamSink StreamSink
|
||||||
#ifndef __cplusplus_winrt
|
#ifndef __cplusplus_winrt
|
||||||
|
|
||||||
@ -380,7 +380,7 @@ MAKE_ENUM(MFSTREAMSINK_MARKER_TYPE) StreamSinkMarkerTypePairs[] = {
|
|||||||
};
|
};
|
||||||
MAKE_MAP(MFSTREAMSINK_MARKER_TYPE) StreamSinkMarkerTypeMap(StreamSinkMarkerTypePairs, StreamSinkMarkerTypePairs + sizeof(StreamSinkMarkerTypePairs) / sizeof(StreamSinkMarkerTypePairs[0]));
|
MAKE_MAP(MFSTREAMSINK_MARKER_TYPE) StreamSinkMarkerTypeMap(StreamSinkMarkerTypePairs, StreamSinkMarkerTypePairs + sizeof(StreamSinkMarkerTypePairs) / sizeof(StreamSinkMarkerTypePairs[0]));
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
|
|
||||||
#ifdef __cplusplus_winrt
|
#ifdef __cplusplus_winrt
|
||||||
#define _ContextCallback Concurrency::details::_ContextCallback
|
#define _ContextCallback Concurrency::details::_ContextCallback
|
||||||
@ -1070,7 +1070,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
class StreamSink :
|
class StreamSink :
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
public Microsoft::WRL::RuntimeClass<
|
public Microsoft::WRL::RuntimeClass<
|
||||||
Microsoft::WRL::RuntimeClassFlags< Microsoft::WRL::RuntimeClassType::ClassicCom>,
|
Microsoft::WRL::RuntimeClassFlags< Microsoft::WRL::RuntimeClassType::ClassicCom>,
|
||||||
IMFStreamSink,
|
IMFStreamSink,
|
||||||
@ -1100,7 +1100,7 @@ public:
|
|||||||
if (riid == IID_IMarshal) {
|
if (riid == IID_IMarshal) {
|
||||||
return MarshalQI(riid, ppv);
|
return MarshalQI(riid, ppv);
|
||||||
} else {
|
} else {
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
hr = RuntimeClassT::QueryInterface(riid, ppv);
|
hr = RuntimeClassT::QueryInterface(riid, ppv);
|
||||||
#else
|
#else
|
||||||
if (riid == IID_IUnknown || riid == IID_IMFStreamSink) {
|
if (riid == IID_IUnknown || riid == IID_IMFStreamSink) {
|
||||||
@ -1126,7 +1126,7 @@ public:
|
|||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
STDMETHOD(RuntimeClassInitialize)() { return S_OK; }
|
STDMETHOD(RuntimeClassInitialize)() { return S_OK; }
|
||||||
#else
|
#else
|
||||||
ULONG STDMETHODCALLTYPE AddRef()
|
ULONG STDMETHODCALLTYPE AddRef()
|
||||||
@ -1177,7 +1177,7 @@ public:
|
|||||||
m_StartTime(0), m_fGetStartTimeFromSample(false), m_fWaitingForFirstSample(false),
|
m_StartTime(0), m_fGetStartTimeFromSample(false), m_fWaitingForFirstSample(false),
|
||||||
m_state(State_TypeNotSet), m_pParent(nullptr),
|
m_state(State_TypeNotSet), m_pParent(nullptr),
|
||||||
m_imageWidthInPixels(0), m_imageHeightInPixels(0) {
|
m_imageWidthInPixels(0), m_imageHeightInPixels(0) {
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
m_token.value = 0;
|
m_token.value = 0;
|
||||||
#else
|
#else
|
||||||
m_bConnected = false;
|
m_bConnected = false;
|
||||||
@ -1856,7 +1856,7 @@ public:
|
|||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
EventRegistrationToken m_token;
|
EventRegistrationToken m_token;
|
||||||
#else
|
#else
|
||||||
bool m_bConnected;
|
bool m_bConnected;
|
||||||
@ -1864,7 +1864,7 @@ private:
|
|||||||
|
|
||||||
bool m_IsShutdown; // Flag to indicate if Shutdown() method was called.
|
bool m_IsShutdown; // Flag to indicate if Shutdown() method was called.
|
||||||
CRITICAL_SECTION m_critSec;
|
CRITICAL_SECTION m_critSec;
|
||||||
#ifndef HAVE_WINRT
|
#ifndef WINRT
|
||||||
long m_cRef;
|
long m_cRef;
|
||||||
#endif
|
#endif
|
||||||
IMFAttributes* m_pParent;
|
IMFAttributes* m_pParent;
|
||||||
@ -2408,7 +2408,7 @@ protected:
|
|||||||
extern const __declspec(selectany) WCHAR RuntimeClass_CV_MediaSink[] = L"cv.MediaSink";
|
extern const __declspec(selectany) WCHAR RuntimeClass_CV_MediaSink[] = L"cv.MediaSink";
|
||||||
|
|
||||||
class MediaSink :
|
class MediaSink :
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
public Microsoft::WRL::RuntimeClass<
|
public Microsoft::WRL::RuntimeClass<
|
||||||
Microsoft::WRL::RuntimeClassFlags< Microsoft::WRL::RuntimeClassType::WinRtClassicComMix >,
|
Microsoft::WRL::RuntimeClassFlags< Microsoft::WRL::RuntimeClassType::WinRtClassicComMix >,
|
||||||
Microsoft::WRL::Implements<ABI::Windows::Media::IMediaExtension>,
|
Microsoft::WRL::Implements<ABI::Windows::Media::IMediaExtension>,
|
||||||
@ -2420,7 +2420,7 @@ class MediaSink :
|
|||||||
public IMFMediaSink, public IMFClockStateSink, public CBaseAttributes<>
|
public IMFMediaSink, public IMFClockStateSink, public CBaseAttributes<>
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
InspectableClass(RuntimeClass_CV_MediaSink, BaseTrust)
|
InspectableClass(RuntimeClass_CV_MediaSink, BaseTrust)
|
||||||
public:
|
public:
|
||||||
#else
|
#else
|
||||||
@ -2488,7 +2488,7 @@ public:
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
STDMETHODIMP SetProperties(ABI::Windows::Foundation::Collections::IPropertySet *pConfiguration)
|
STDMETHODIMP SetProperties(ABI::Windows::Foundation::Collections::IPropertySet *pConfiguration)
|
||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
@ -2828,7 +2828,7 @@ public:
|
|||||||
|
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
{
|
{
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
pStream = Microsoft::WRL::Make<StreamSink>();
|
pStream = Microsoft::WRL::Make<StreamSink>();
|
||||||
if (pStream == nullptr) {
|
if (pStream == nullptr) {
|
||||||
hr = E_OUTOFMEMORY;
|
hr = E_OUTOFMEMORY;
|
||||||
@ -2940,7 +2940,7 @@ public:
|
|||||||
{
|
{
|
||||||
hr = m_streams.Remove(pos, nullptr);
|
hr = m_streams.Remove(pos, nullptr);
|
||||||
_ComPtr<ICustomStreamSink> spCustomSink;
|
_ComPtr<ICustomStreamSink> spCustomSink;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
spCustomSink = static_cast<StreamSink*>(spStream.Get());
|
spCustomSink = static_cast<StreamSink*>(spStream.Get());
|
||||||
hr = S_OK;
|
hr = S_OK;
|
||||||
#else
|
#else
|
||||||
@ -3164,7 +3164,7 @@ public:
|
|||||||
{
|
{
|
||||||
_ComPtr<ICustomStreamSink> spCustomSink;
|
_ComPtr<ICustomStreamSink> spCustomSink;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
spCustomSink = static_cast<StreamSink*>(pStream);
|
spCustomSink = static_cast<StreamSink*>(pStream);
|
||||||
#else
|
#else
|
||||||
hr = pStream->QueryInterface(IID_PPV_ARGS(spCustomSink.GetAddressOf()));
|
hr = pStream->QueryInterface(IID_PPV_ARGS(spCustomSink.GetAddressOf()));
|
||||||
@ -3187,7 +3187,7 @@ public:
|
|||||||
{
|
{
|
||||||
_ComPtr<ICustomStreamSink> spCustomSink;
|
_ComPtr<ICustomStreamSink> spCustomSink;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
spCustomSink = static_cast<StreamSink*>(pStream);
|
spCustomSink = static_cast<StreamSink*>(pStream);
|
||||||
#else
|
#else
|
||||||
hr = pStream->QueryInterface(IID_PPV_ARGS(spCustomSink.GetAddressOf()));
|
hr = pStream->QueryInterface(IID_PPV_ARGS(spCustomSink.GetAddressOf()));
|
||||||
@ -3207,7 +3207,7 @@ public:
|
|||||||
{
|
{
|
||||||
_ComPtr<ICustomStreamSink> spCustomSink;
|
_ComPtr<ICustomStreamSink> spCustomSink;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
spCustomSink = static_cast<StreamSink*>(pStream);
|
spCustomSink = static_cast<StreamSink*>(pStream);
|
||||||
#else
|
#else
|
||||||
hr = pStream->QueryInterface(IID_PPV_ARGS(spCustomSink.GetAddressOf()));
|
hr = pStream->QueryInterface(IID_PPV_ARGS(spCustomSink.GetAddressOf()));
|
||||||
@ -3317,7 +3317,7 @@ public:
|
|||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
#ifndef HAVE_WINRT
|
#ifndef WINRT
|
||||||
long m_cRef;
|
long m_cRef;
|
||||||
#endif
|
#endif
|
||||||
CRITICAL_SECTION m_critSec;
|
CRITICAL_SECTION m_critSec;
|
||||||
@ -3327,6 +3327,6 @@ private:
|
|||||||
LONGLONG m_llStartTime;
|
LONGLONG m_llStartTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef HAVE_WINRT
|
#ifdef WINRT
|
||||||
ActivatableClass(MediaSink);
|
ActivatableClass(MediaSink);
|
||||||
#endif
|
#endif
|
||||||
|
86
platforms/winrt/build_all.bat
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
set FOUND_VC=0
|
||||||
|
|
||||||
|
if defined VS120COMNTOOLS (
|
||||||
|
set VSTOOLS="%VS120COMNTOOLS%"
|
||||||
|
set VC_VER=120
|
||||||
|
set FOUND_VC=1
|
||||||
|
)
|
||||||
|
|
||||||
|
set VSTOOLS=%VSTOOLS:"=%
|
||||||
|
set "VSTOOLS=%VSTOOLS:\=/%"
|
||||||
|
|
||||||
|
set VSVARS="%VSTOOLS%vsvars32.bat"
|
||||||
|
|
||||||
|
if not defined VSVARS (
|
||||||
|
echo Can't find VC2013 installed!
|
||||||
|
goto ERROR
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
echo./*
|
||||||
|
echo. * Building OpenCV
|
||||||
|
echo. */
|
||||||
|
echo.
|
||||||
|
|
||||||
|
|
||||||
|
call %VSVARS%
|
||||||
|
|
||||||
|
if %FOUND_VC%==1 (
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.1\x86\OpenCV.sln Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.1\x86\INSTALL.vcxproj Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.1\x86\OpenCV.sln Release
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.1\x86\INSTALL.vcxproj Release
|
||||||
|
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.1\ARM\OpenCV.sln Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.1\ARM\INSTALL.vcxproj Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.1\ARM\OpenCV.sln Release
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.1\ARM\INSTALL.vcxproj Release
|
||||||
|
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.1\x86\OpenCV.sln Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.1\x86\INSTALL.vcxproj Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.1\x86\OpenCV.sln Release
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.1\x86\INSTALL.vcxproj Release
|
||||||
|
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.1\ARM\OpenCV.sln Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.1\ARM\INSTALL.vcxproj Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.1\ARM\OpenCV.sln Release
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.1\ARM\INSTALL.vcxproj Release
|
||||||
|
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.0\x86\OpenCV.sln Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.0\x86\INSTALL.vcxproj Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.0\x86\OpenCV.sln Release
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.0\x86\INSTALL.vcxproj Release
|
||||||
|
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.0\ARM\OpenCV.sln Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.0\ARM\INSTALL.vcxproj Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.0\ARM\OpenCV.sln Release
|
||||||
|
call:DoMSBuild ..\..\bin\WP\8.0\ARM\INSTALL.vcxproj Release
|
||||||
|
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.0\x86\OpenCV.sln Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.0\x86\INSTALL.vcxproj Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.0\x86\OpenCV.sln Release
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.0\x86\INSTALL.vcxproj Release
|
||||||
|
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.0\ARM\OpenCV.sln Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.0\ARM\INSTALL.vcxproj Debug
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.0\ARM\OpenCV.sln Release
|
||||||
|
call:DoMSBuild ..\..\bin\WS\8.0\ARM\INSTALL.vcxproj Release
|
||||||
|
)
|
||||||
|
|
||||||
|
echo.&goto:EOF
|
||||||
|
|
||||||
|
|
||||||
|
::--------------------------------------------------------
|
||||||
|
::-- DoMSBuild
|
||||||
|
::--------------------------------------------------------
|
||||||
|
:DoMSBuild
|
||||||
|
msbuild %~1 /p:Configuration="%~2" /m
|
||||||
|
@if errorlevel 1 goto :ERROR
|
||||||
|
goto:EOF
|
||||||
|
|
||||||
|
:ERROR
|
||||||
|
pause
|
||||||
|
:EOF
|
102
platforms/winrt/readme.txt
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
Building OpenCV from Source, using CMake and Command Line
|
||||||
|
=========================================================
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
============
|
||||||
|
CMake 3.1.0 or higher
|
||||||
|
Windows Phone/Store 8.1 Visual Studio 2013
|
||||||
|
Windows Phone/Store 8.0 Visual Studio 2012
|
||||||
|
|
||||||
|
For example, to be able to build all Windows Phone and Windows Store projects install the following:
|
||||||
|
|
||||||
|
Install Visual Studio 2013 Community Edition
|
||||||
|
http://go.microsoft.com/?linkid=9863608
|
||||||
|
|
||||||
|
Install Visual Studio Express 2012 for Windows Desktop
|
||||||
|
http://www.microsoft.com/en-us/download/details.aspx?id=34673
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
To create all Windows Phone (8.0, 8.1) and Windows Store (8.0, 8.1) Visual Studio projects
|
||||||
|
==========================================================================================
|
||||||
|
cd opencv/platforms/winrt
|
||||||
|
setup_winrt.bat "WP,WS" "8.0,8.1" "x86,ARM"
|
||||||
|
|
||||||
|
If everything's fine, a few minutes later you will get the following output in the opencv/bin directory:
|
||||||
|
|
||||||
|
bin
|
||||||
|
WP
|
||||||
|
8.0
|
||||||
|
ARM
|
||||||
|
x86
|
||||||
|
8.1
|
||||||
|
ARM
|
||||||
|
x86
|
||||||
|
WS
|
||||||
|
8.0
|
||||||
|
ARM
|
||||||
|
x86
|
||||||
|
8.1
|
||||||
|
ARM
|
||||||
|
x86
|
||||||
|
|
||||||
|
Build the OpenCV.sln for the particular platform you are targeting. Due to the current limitations of CMake, separate x86/x64/ARM projects must be generated for each platform.
|
||||||
|
|
||||||
|
You can also target a single specific configuration
|
||||||
|
setup_winrt.bat "WP" "8.1" "x86"
|
||||||
|
|
||||||
|
Or a subset of configurations
|
||||||
|
setup_winrt.bat "WP,WS" "8.1" "x86"
|
||||||
|
|
||||||
|
To display the command line options for setup_winrt.bat
|
||||||
|
setup_winrt.bat -h
|
||||||
|
|
||||||
|
Note that x64 CMake generation support is as follows:
|
||||||
|
------------------------------
|
||||||
|
Platform\Version | 8.0 | 8.1 |
|
||||||
|
-----------------|-----|-----|
|
||||||
|
Windows Phone | No | No |
|
||||||
|
Windows Store | Yes | Yes |
|
||||||
|
|
||||||
|
Note: setup_winrt.bat calls the unsigned PowerShell script with the -ExecutionPolicy Unrestricted option.
|
||||||
|
|
||||||
|
|
||||||
|
CMake command line options for Windows Phone and Store
|
||||||
|
======================================================
|
||||||
|
|
||||||
|
cmake [options] <path-to-source>
|
||||||
|
|
||||||
|
Windows Phone 8.1 x86
|
||||||
|
cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.1 <path-to-source>
|
||||||
|
|
||||||
|
Windows Phone 8.1 ARM
|
||||||
|
cmake -G "Visual Studio 12 2013 ARM" -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.1 <path-to-source>
|
||||||
|
|
||||||
|
Windows Store 8.1 x86
|
||||||
|
cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=8.1 <path-to-source>
|
||||||
|
|
||||||
|
Windows Store 8.1 ARM
|
||||||
|
cmake -G "Visual Studio 12 2013 ARM" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=8.1 <path-to-source>
|
||||||
|
|
||||||
|
Note: For Windows 8.0 Phone and Store you can specify either Visual Studio 11 2012 or Visual Studio 12 2013 as the generator
|
||||||
|
|
||||||
|
Windows Phone 8.0 x86
|
||||||
|
cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.0 <path-to-source>
|
||||||
|
|
||||||
|
Windows Phone 8.0 ARM
|
||||||
|
cmake -G "Visual Studio 12 2013 ARM" -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.0 <path-to-source>
|
||||||
|
|
||||||
|
Windows Store 8.0 x86
|
||||||
|
cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=8.0 <path-to-source>
|
||||||
|
|
||||||
|
Windows Store 8.0 ARM
|
||||||
|
cmake -G "Visual Studio 12 2013 ARM" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=8.0 <path-to-source>
|
||||||
|
|
||||||
|
Example
|
||||||
|
======================================================
|
||||||
|
|
||||||
|
To generate Windows Phone 8.1 x86 project files in the opencv/bin dir
|
||||||
|
|
||||||
|
mkdir bin
|
||||||
|
cd bin
|
||||||
|
cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.1 ../
|
2
platforms/winrt/setup_winrt.bat
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@echo off
|
||||||
|
Powershell.exe -ExecutionPolicy Unrestricted -File setup_winrt.ps1 %*
|
331
platforms/winrt/setup_winrt.ps1
Normal file
@ -0,0 +1,331 @@
|
|||||||
|
<#
|
||||||
|
Copyright © Microsoft Open Technologies, Inc.
|
||||||
|
All Rights Reserved
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||||
|
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
See the Apache 2 License for the specific language governing permissions and limitations under the License.
|
||||||
|
#>
|
||||||
|
|
||||||
|
[CmdletBinding()]
|
||||||
|
Param(
|
||||||
|
[parameter(Mandatory=$False)]
|
||||||
|
[switch]
|
||||||
|
$HELP,
|
||||||
|
|
||||||
|
[parameter(Mandatory=$False)]
|
||||||
|
[switch]
|
||||||
|
$BUILD,
|
||||||
|
|
||||||
|
[parameter(Mandatory=$False)]
|
||||||
|
[Array]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
$PLATFORMS_IN = "WP",
|
||||||
|
|
||||||
|
[parameter(Mandatory=$False)]
|
||||||
|
[Array]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
$VERSIONS_IN = "8.1",
|
||||||
|
|
||||||
|
[parameter(Mandatory=$False)]
|
||||||
|
[Array]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
$ARCHITECTURES_IN = "x86",
|
||||||
|
|
||||||
|
[parameter(Mandatory=$False)]
|
||||||
|
[String]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
[ValidateSet("Visual Studio 12 2013","Visual Studio 11 2012")]
|
||||||
|
$GENERATOR = "Visual Studio 12 2013",
|
||||||
|
|
||||||
|
[parameter(Mandatory=$False)]
|
||||||
|
[String]
|
||||||
|
$INSTALL
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Function L() {
|
||||||
|
Param(
|
||||||
|
[parameter(Mandatory=$true)]
|
||||||
|
[String]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
$str
|
||||||
|
)
|
||||||
|
|
||||||
|
Write-Host "INFO> $str"
|
||||||
|
}
|
||||||
|
|
||||||
|
Function D() {
|
||||||
|
Param(
|
||||||
|
[parameter(Mandatory=$true)]
|
||||||
|
[String]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
$str
|
||||||
|
)
|
||||||
|
|
||||||
|
# Use this trigger to toggle debug output
|
||||||
|
[bool]$debug = $true
|
||||||
|
|
||||||
|
if ($debug) {
|
||||||
|
Write-Host "DEBUG> $str"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function Get-Batchfile ($file) {
|
||||||
|
$cmd = "`"$file`" & set"
|
||||||
|
cmd /c $cmd | Foreach-Object {
|
||||||
|
$p, $v = $_.split('=')
|
||||||
|
Set-Item -path env:$p -value $v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Enables access to Visual Studio variables via "vsvars32.bat"
|
||||||
|
function Set-VS12()
|
||||||
|
{
|
||||||
|
Try {
|
||||||
|
$vs12comntools = (Get-ChildItem env:VS120COMNTOOLS).Value
|
||||||
|
$batchFile = [System.IO.Path]::Combine($vs12comntools, "vsvars32.bat")
|
||||||
|
Get-Batchfile $BatchFile
|
||||||
|
[System.Console]::Title = "Visual Studio 2010 Windows PowerShell"
|
||||||
|
} Catch {
|
||||||
|
$ErrorMessage = $_.Exception.Message
|
||||||
|
L "Error: $ErrorMessage"
|
||||||
|
return $false
|
||||||
|
}
|
||||||
|
return $true
|
||||||
|
}
|
||||||
|
|
||||||
|
# Executes msbuild to build or install projects
|
||||||
|
# Throws Exception on error
|
||||||
|
function Call-MSBuild($path, $config)
|
||||||
|
{
|
||||||
|
$command = "msbuild $path /p:Configuration='$config' /m"
|
||||||
|
L "Executing: $($command)"
|
||||||
|
msbuild $path /p:Configuration="$config" /m
|
||||||
|
|
||||||
|
if(-Not $?) {
|
||||||
|
Throw "Failure executing command: $($command)"
|
||||||
|
}
|
||||||
|
|
||||||
|
return $true
|
||||||
|
}
|
||||||
|
|
||||||
|
Function Execute() {
|
||||||
|
If ($HELP.IsPresent) {
|
||||||
|
ShowHelp
|
||||||
|
}
|
||||||
|
|
||||||
|
# Validating arguments.
|
||||||
|
# This type of validation (rather than using ValidateSet()) is required to make .bat wrapper work
|
||||||
|
|
||||||
|
D "Input Platforms: $PLATFORMS_IN"
|
||||||
|
$platforms = New-Object System.Collections.ArrayList
|
||||||
|
$PLATFORMS_IN.Split("," ,[System.StringSplitOptions]::RemoveEmptyEntries) | ForEach {
|
||||||
|
$_ = $_.Trim()
|
||||||
|
if ("WP","WS" -Contains $_) {
|
||||||
|
[void]$platforms.Add($_)
|
||||||
|
D "$_ is valid"
|
||||||
|
} else {
|
||||||
|
Throw "$($_) is not valid! Please use WP, WS"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
D "Processed Platforms: $platforms"
|
||||||
|
|
||||||
|
D "Input Versions: $VERSIONS_IN"
|
||||||
|
$versions = New-Object System.Collections.ArrayList
|
||||||
|
$VERSIONS_IN.Split("," ,[System.StringSplitOptions]::RemoveEmptyEntries) | ForEach {
|
||||||
|
$_ = $_.Trim()
|
||||||
|
if ("8.0","8.1" -Contains $_) {
|
||||||
|
[void]$versions.Add($_)
|
||||||
|
D "$_ is valid"
|
||||||
|
} else {
|
||||||
|
Throw "$($_) is not valid! Please use 8.0, 8.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
D "Processed Versions: $versions"
|
||||||
|
|
||||||
|
D "Input Architectures: $ARCHITECTURES_IN"
|
||||||
|
$architectures = New-Object System.Collections.ArrayList
|
||||||
|
$ARCHITECTURES_IN.Split("," ,[System.StringSplitOptions]::RemoveEmptyEntries) | ForEach {
|
||||||
|
$_ = $_.Trim()
|
||||||
|
if ("x86","x64","ARM" -Contains $_) {
|
||||||
|
$architectures.Add($_) > $null
|
||||||
|
D "$_ is valid"
|
||||||
|
} else {
|
||||||
|
Throw "$($_) is not valid! Please use x86, x64, ARM"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
D "Processed Architectures: $architectures"
|
||||||
|
|
||||||
|
# Assuming we are in '<ocv-sources>/platforms/winrt' we should move up to sources root directory
|
||||||
|
Push-Location ../../
|
||||||
|
|
||||||
|
$SRC = Get-Location
|
||||||
|
|
||||||
|
$def_architectures = @{
|
||||||
|
"x86" = "";
|
||||||
|
"x64" = " Win64"
|
||||||
|
"arm" = " ARM"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Setting up Visual Studio variables to enable build
|
||||||
|
$shouldBuid = $false
|
||||||
|
If ($BUILD.IsPresent) {
|
||||||
|
$shouldBuild = Set-VS12
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($plat in $platforms) {
|
||||||
|
# Set proper platform name.
|
||||||
|
$platName = ""
|
||||||
|
Switch ($plat) {
|
||||||
|
"WP" { $platName = "WindowsPhone" }
|
||||||
|
"WS" { $platName = "WindowsStore" }
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($vers in $versions) {
|
||||||
|
|
||||||
|
foreach($arch in $architectures) {
|
||||||
|
|
||||||
|
# Set proper architecture. For MSVS this is done by selecting proper generator
|
||||||
|
$genName = $GENERATOR
|
||||||
|
Switch ($arch) {
|
||||||
|
"ARM" { $genName = $GENERATOR + $def_architectures['arm'] }
|
||||||
|
"x64" { $genName = $GENERATOR + $def_architectures['x64'] }
|
||||||
|
}
|
||||||
|
|
||||||
|
# Constructing path to the install binaries
|
||||||
|
# Creating these binaries will be done by building CMake-generated INSTALL project from Visual Studio
|
||||||
|
$installPath = "$SRC\bin\install\$plat\$vers\$arch"
|
||||||
|
if ($INSTALL) {
|
||||||
|
# Do not add architrecture to the path since it will be added by OCV CMake logic
|
||||||
|
$installPath = "$SRC\$INSTALL\$plat\$vers"
|
||||||
|
}
|
||||||
|
|
||||||
|
$path = "$SRC\bin\$plat\$vers\$arch"
|
||||||
|
|
||||||
|
L "-----------------------------------------------"
|
||||||
|
L "Target:"
|
||||||
|
L " Directory: $path"
|
||||||
|
L " Platform: $platName"
|
||||||
|
L " Version: $vers"
|
||||||
|
L " Architecture: $arch"
|
||||||
|
L " Generator: $genName"
|
||||||
|
L " Install Directory: $installPath"
|
||||||
|
|
||||||
|
# Delete target directory if exists to ensure that CMake cache is cleared out.
|
||||||
|
If (Test-Path $path) {
|
||||||
|
Remove-Item -Recurse -Force $path
|
||||||
|
}
|
||||||
|
|
||||||
|
# Validate if required directory exists, create if it doesn't
|
||||||
|
New-Item -ItemType Directory -Force -Path $path
|
||||||
|
|
||||||
|
# Change location to the respective subdirectory
|
||||||
|
Push-Location -Path $path
|
||||||
|
|
||||||
|
L "Generating project:"
|
||||||
|
L "cmake -G $genName -DCMAKE_SYSTEM_NAME:String=$platName -DCMAKE_SYSTEM_VERSION:String=$vers -DCMAKE_VS_EFFECTIVE_PLATFORMS:String=$arch -DCMAKE_INSTALL_PREFIX:PATH=$installPath $SRC"
|
||||||
|
cmake -G $genName -DCMAKE_SYSTEM_NAME:String=$platName -DCMAKE_SYSTEM_VERSION:String=$vers -DCMAKE_VS_EFFECTIVE_PLATFORMS:String=$arch -DCMAKE_INSTALL_PREFIX:PATH=$installPath $SRC
|
||||||
|
L "-----------------------------------------------"
|
||||||
|
|
||||||
|
# REFERENCE:
|
||||||
|
# Executed from '$SRC/bin' folder.
|
||||||
|
# Targeting x86 WindowsPhone 8.1.
|
||||||
|
# cmake -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME:String=WindowsPhone -DCMAKE_SYSTEM_VERSION:String=8.1 ..
|
||||||
|
|
||||||
|
|
||||||
|
# Building and installing project
|
||||||
|
Try {
|
||||||
|
If ($shouldBuild) {
|
||||||
|
L "Building and installing project:"
|
||||||
|
|
||||||
|
Call-MSBuild "OpenCV.sln" "Debug"
|
||||||
|
Call-MSBuild "INSTALL.vcxproj" "Debug"
|
||||||
|
|
||||||
|
Call-MSBuild "OpenCV.sln" "Release"
|
||||||
|
Call-MSBuild "INSTALL.vcxproj" "Release"
|
||||||
|
}
|
||||||
|
} Catch {
|
||||||
|
$ErrorMessage = $_.Exception.Message
|
||||||
|
L "Error: $ErrorMessage"
|
||||||
|
|
||||||
|
# Exiting at this point will leave command line pointing at the erroneous configuration directory
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
# Return back to Sources folder
|
||||||
|
Pop-Location
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Return back to Script folder
|
||||||
|
Pop-Location
|
||||||
|
}
|
||||||
|
|
||||||
|
Function ShowHelp() {
|
||||||
|
Write-Host "Configures OpenCV and generates projects for specified verion of Visual Studio/platforms/architectures."
|
||||||
|
Write-Host "Must be executed from the sources folder containing main CMakeLists configuration."
|
||||||
|
Write-Host "Parameter keys can be shortened down to a single symbol (e.g. '-a') and are not case sensitive."
|
||||||
|
Write-Host "Proper parameter sequencing is required when omitting keys."
|
||||||
|
Write-Host "Generates the following folder structure, depending on the supplied parameters: "
|
||||||
|
Write-Host " bin/ "
|
||||||
|
Write-Host " | "
|
||||||
|
Write-Host " |-WP "
|
||||||
|
Write-Host " | ... "
|
||||||
|
Write-Host " |-WinRT "
|
||||||
|
Write-Host " | |-8.0 "
|
||||||
|
Write-Host " | |-8.1 "
|
||||||
|
Write-Host " | | |-x86 "
|
||||||
|
Write-Host " | | |-x64 "
|
||||||
|
Write-Host " | | |-ARM "
|
||||||
|
Write-Host " "
|
||||||
|
Write-Host " USAGE: "
|
||||||
|
Write-Host " Calling:"
|
||||||
|
Write-Host " PS> setup_winrt.ps1 [params]"
|
||||||
|
Write-Host " cmd> setup_winrt.bat [params]"
|
||||||
|
Write-Host " cmd> PowerShell.exe -ExecutionPolicy Unrestricted -File setup_winrt.ps1 [params]"
|
||||||
|
Write-Host " Parameters:"
|
||||||
|
Write-Host " setup_winrt [options] [platform] [version] [architecture] [generator] [install-path]"
|
||||||
|
Write-Host " setup_winrt -b 'WP' 'x86,ARM' "
|
||||||
|
Write-Host " setup_winrt -architecture x86 -platform WP "
|
||||||
|
Write-Host " setup_winrt -arc x86 -plat 'WP,WS' "
|
||||||
|
Write-Host " setup_winrt -a x86 -g 'Visual Studio 11 2012' -pl WP "
|
||||||
|
Write-Host " WHERE: "
|
||||||
|
Write-Host " options - Options to call "
|
||||||
|
Write-Host " -h: diplays command line help "
|
||||||
|
Write-Host " -b: builds BUILD_ALL and INSTALL projects for each generated configuration in both Debug and Release modes."
|
||||||
|
Write-Host " platform - Array of target platforms. "
|
||||||
|
Write-Host " Default: WP "
|
||||||
|
Write-Host " Example: 'WS,WP' "
|
||||||
|
Write-Host " Options: WP, WS ('WindowsPhone', 'WindowsStore'). "
|
||||||
|
Write-Host " Note that you'll need to use quotes to specify more than one platform. "
|
||||||
|
Write-Host " version - Array of platform versions. "
|
||||||
|
Write-Host " Default: 8.1 "
|
||||||
|
Write-Host " Example: '8.0,8.1' "
|
||||||
|
Write-Host " Options: 8.0, 8.1. Available options may be limited depending on your local setup (e.g. SDK availability). "
|
||||||
|
Write-Host " Note that you'll need to use quotes to specify more than one version. "
|
||||||
|
Write-Host " architecture - Array of target architectures to build for. "
|
||||||
|
Write-Host " Default: x86 "
|
||||||
|
Write-Host " Example: 'ARM,x64' "
|
||||||
|
Write-Host " Options: x86, ARM, x64. Available options may be limited depending on your local setup. "
|
||||||
|
Write-Host " Note that you'll need to use quotes to specify more than one architecture. "
|
||||||
|
Write-Host " generator - Visual Studio instance used to generate the projects. "
|
||||||
|
Write-Host " Default: Visual Studio 12 2013 "
|
||||||
|
Write-Host " Example: 'Visual Studio 11 2012' "
|
||||||
|
Write-Host " Use 'cmake --help' to find all available option on your machine. "
|
||||||
|
Write-Host " install-path - Path to install binaries (relative to the sources directory). "
|
||||||
|
Write-Host " Default: <src-dir>\bin\install\<platform>\<version>\<architecture> "
|
||||||
|
Write-Host " Example: '../install' "
|
||||||
|
|
||||||
|
Exit
|
||||||
|
}
|
||||||
|
|
||||||
|
Execute
|
87
samples/winrt/.gitignore
vendored
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# Ignore thumbnails created by windows
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
#ignore winrt copies of opencv files
|
||||||
|
opencl_kernels.cpp
|
||||||
|
opencl_kernels.hpp
|
||||||
|
|
||||||
|
# Ignore files build by Visual Studio
|
||||||
|
*.obj
|
||||||
|
*.exe
|
||||||
|
*.pdb
|
||||||
|
*.aps
|
||||||
|
*.vcproj.*.user
|
||||||
|
*.vcxproj.user
|
||||||
|
*.vspscc
|
||||||
|
*_i.c
|
||||||
|
*.i
|
||||||
|
*.icf
|
||||||
|
*_p.c
|
||||||
|
*.ncb
|
||||||
|
*.suo
|
||||||
|
*.tlb
|
||||||
|
*.tlh
|
||||||
|
*.bak
|
||||||
|
*.cache
|
||||||
|
*.ilk
|
||||||
|
*.log
|
||||||
|
*.winmd
|
||||||
|
[Bb]in
|
||||||
|
[Dd]ebug*/
|
||||||
|
*.sbr
|
||||||
|
*.sdf
|
||||||
|
obj/
|
||||||
|
[Rr]elease*/
|
||||||
|
_ReSharper*/
|
||||||
|
[Tt]est[Rr]esult*
|
||||||
|
ipch/
|
||||||
|
*.opensdf
|
||||||
|
Generated Files
|
||||||
|
AppPackages
|
||||||
|
SubmissionInfo
|
||||||
|
*.hps
|
||||||
|
|
||||||
|
# Ignore files build by ndk and eclipse
|
||||||
|
libs/
|
||||||
|
bin/
|
||||||
|
obj/
|
||||||
|
gen/
|
||||||
|
local.properties
|
||||||
|
|
||||||
|
# Ignore python compiled files
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Ignore files build by airplay and marmalade
|
||||||
|
build_*_xcode/
|
||||||
|
build_*_vc10/
|
||||||
|
|
||||||
|
# Ignore files built by xcode
|
||||||
|
*.mode*v*
|
||||||
|
*.pbxuser
|
||||||
|
*.xcbkptlist
|
||||||
|
*.xcscheme
|
||||||
|
*.xcworkspacedata
|
||||||
|
*.xcuserstate
|
||||||
|
xcschememanagement.plist
|
||||||
|
build/
|
||||||
|
.DS_Store
|
||||||
|
._.*
|
||||||
|
xcuserdata/
|
||||||
|
DerivedData/
|
||||||
|
*.xccheckout
|
||||||
|
|
||||||
|
# Ignore files built by bada
|
||||||
|
.Simulator-Debug/
|
||||||
|
.Target-Debug/
|
||||||
|
.Target-Release/
|
||||||
|
|
||||||
|
# Ignore files built by blackberry
|
||||||
|
Simulator/
|
||||||
|
Device-Debug/
|
||||||
|
Device-Release/
|
||||||
|
|
||||||
|
# Ignore vim swaps
|
||||||
|
*.swp
|
||||||
|
|
||||||
|
# CTags
|
||||||
|
tags
|
@ -1,9 +1,11 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 11 Express for Windows 8
|
# Visual Studio 2013
|
||||||
|
VisualStudioVersion = 12.0.31101.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MediaCapture", "MediaCapture.vcxproj", "{C5B886A7-8300-46FF-B533-9613DE2AF637}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MediaCapture", "MediaCapture.vcxproj", "{C5B886A7-8300-46FF-B533-9613DE2AF637}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GrayscaleTransform", "MediaExtensions\OcvTransform\OcvTransform.vcxproj", "{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OcvTransform", "MediaExtensions\OcvTransform\OcvTransform.vcxproj", "{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -15,18 +17,6 @@ Global
|
|||||||
Release|x64 = Release|x64
|
Release|x64 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|ARM.ActiveCfg = Debug|ARM
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|ARM.Build.0 = Debug|ARM
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|ARM.ActiveCfg = Release|ARM
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|ARM.Build.0 = Release|ARM
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|Win32.Build.0 = Release|Win32
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|x64.Build.0 = Release|x64
|
|
||||||
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Debug|ARM.ActiveCfg = Debug|ARM
|
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Debug|ARM.Build.0 = Debug|ARM
|
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Debug|ARM.Deploy.0 = Debug|ARM
|
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||||
@ -45,6 +35,18 @@ Global
|
|||||||
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Release|x64.ActiveCfg = Release|x64
|
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Release|x64.ActiveCfg = Release|x64
|
||||||
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Release|x64.Build.0 = Release|x64
|
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Release|x64.Build.0 = Release|x64
|
||||||
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Release|x64.Deploy.0 = Release|x64
|
{C5B886A7-8300-46FF-B533-9613DE2AF637}.Release|x64.Deploy.0 = Release|x64
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}.Release|x64.Build.0 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|ARM">
|
<ProjectConfiguration Include="Debug|ARM">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
@ -30,71 +30,96 @@
|
|||||||
<ProjectGuid>{C5B886A7-8300-46FF-B533-9613DE2AF637}</ProjectGuid>
|
<ProjectGuid>{C5B886A7-8300-46FF-B533-9613DE2AF637}</ProjectGuid>
|
||||||
<RootNamespace>SDKSample</RootNamespace>
|
<RootNamespace>SDKSample</RootNamespace>
|
||||||
<DefaultLanguage>en-US</DefaultLanguage>
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
<VCTargetsPath Condition="'$(VCTargetsPath11)' != '' and '$(VSVersion)' == '' and '$(VisualStudioVersion)' == ''">$(VCTargetsPath11)</VCTargetsPath>
|
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||||
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
|
|
||||||
<AppContainerApplication>true</AppContainerApplication>
|
<AppContainerApplication>true</AppContainerApplication>
|
||||||
<ProjectName>MediaCapture</ProjectName>
|
<ProjectName>MediaCapture</ProjectName>
|
||||||
|
<ApplicationType>Windows Store</ApplicationType>
|
||||||
|
<ApplicationTypeRevision>8.1</ApplicationTypeRevision>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="ExtensionSettings">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros">
|
||||||
|
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
|
||||||
|
<AppxBundlePlatforms>x86</AppxBundlePlatforms>
|
||||||
|
<PackageCertificateThumbprint>76D64E4F88C9B7D47ACA757CDFD15D6F3AD81D92</PackageCertificateThumbprint>
|
||||||
|
<PackageCertificateKeyFile>MediaCapture_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LibraryPath>$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);</LibraryPath>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="AdvancedCapture.xaml.h">
|
<ClInclude Include="AdvancedCapture.xaml.h">
|
||||||
@ -159,152 +184,17 @@
|
|||||||
<Image Include="assets\opencv-logo-150.png" />
|
<Image Include="assets\opencv-logo-150.png" />
|
||||||
<Image Include="assets\opencv-logo-30.png" />
|
<Image Include="assets\opencv-logo-30.png" />
|
||||||
<Image Include="Assets\splash-sdk.png" />
|
<Image Include="Assets\splash-sdk.png" />
|
||||||
<Image Include="Assets\windows-sdk.png" />
|
<Image Include="Assets\StoreLogo.png" />
|
||||||
|
<Image Include="Assets\windows-sdk.scale-100.png">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</Image>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="MediaExtensions\OcvTransform\OcvTransform.vcxproj">
|
<ProjectReference Include="MediaExtensions\OcvTransform\OcvTransform.vcxproj">
|
||||||
<Project>{ba69218f-da5c-4d14-a78d-21a9e4dec669}</Project>
|
<Project>{ba69218f-da5c-4d14-a78d-21a9e4dec669}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_calib3d245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_contrib245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_core245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_features2d245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_flann245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_highgui245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_imgproc245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_legacy245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_ml245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_nonfree245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_objdetect245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_photo245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_stitching245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_superres245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_ts245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_video245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_videostab245.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<ApplicationDefinition Include="App.xaml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="AdvancedCapture.xaml.cpp" />
|
||||||
|
<ClCompile Include="App.xaml.cpp" />
|
||||||
|
<ClCompile Include="Common\LayoutAwarePage.cpp" />
|
||||||
|
<ClCompile Include="Constants.cpp" />
|
||||||
|
<ClCompile Include="Common\SuspensionManager.cpp" />
|
||||||
|
<ClCompile Include="MainPage.xaml.cpp" />
|
||||||
|
<ClCompile Include="pch.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="AdvancedCapture.xaml.h" />
|
||||||
|
<ClInclude Include="Constants.h" />
|
||||||
|
<ClInclude Include="MainPage.xaml.h" />
|
||||||
|
<ClInclude Include="pch.h" />
|
||||||
|
<ClInclude Include="Common\LayoutAwarePage.h" />
|
||||||
|
<ClInclude Include="Common\SuspensionManager.h" />
|
||||||
|
<ClInclude Include="App.xaml.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Image Include="assets\opencv-logo-30.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="assets\opencv-logo-150.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\splash-sdk.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\StoreLogo.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\windows-sdk.scale-100.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<AppxManifest Include="Package.appxmanifest" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Include="AdvancedCapture.xaml" />
|
||||||
|
<Page Include="Common\StandardStyles.xaml" />
|
||||||
|
<Page Include="MainPage.xaml" />
|
||||||
|
<Page Include="Sample-Utils\SampleTemplateStyles.xaml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Assets">
|
||||||
|
<UniqueIdentifier>{392352d8-f913-4741-82cf-d8075bb6f022}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="MediaCapture_TemporaryKey.pfx" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
BIN
samples/winrt/ImageManipulations/MediaCapture_TemporaryKey.pfx
Normal file
@ -7,5 +7,6 @@ namespace OcvTransform
|
|||||||
[version(NTDDI_WIN8)]
|
[version(NTDDI_WIN8)]
|
||||||
runtimeclass OcvImageManipulations
|
runtimeclass OcvImageManipulations
|
||||||
{
|
{
|
||||||
|
interface Windows.Media.IMediaExtension;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,11 @@
|
|||||||
#include "OcvTransform.h"
|
#include "OcvTransform.h"
|
||||||
#include "bufferlock.h"
|
#include "bufferlock.h"
|
||||||
|
|
||||||
#include "opencv2\core\core.hpp"
|
#include <opencv2\core\core.hpp>
|
||||||
#include "opencv2\imgproc\imgproc.hpp"
|
#include <opencv2\imgproc\imgproc.hpp>
|
||||||
|
#include <opencv2\features2d\features2d.hpp>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using namespace Microsoft::WRL;
|
using namespace Microsoft::WRL;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|ARM">
|
<ProjectConfiguration Include="Debug|ARM">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
@ -27,47 +27,48 @@
|
|||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<VCTargetsPath Condition="'$(VCTargetsPath11)' != '' and '$(VSVersion)' == '' and '$(VisualStudioVersion)' == ''">$(VCTargetsPath11)</VCTargetsPath>
|
|
||||||
<ProjectGuid>{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}</ProjectGuid>
|
<ProjectGuid>{BA69218F-DA5C-4D14-A78D-21A9E4DEC669}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>OcvTransform</RootNamespace>
|
<RootNamespace>OcvTransform</RootNamespace>
|
||||||
<ProjectName>OcvTransform</ProjectName>
|
<ProjectName>OcvTransform</ProjectName>
|
||||||
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
|
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||||
<AppContainerApplication>true</AppContainerApplication>
|
<AppContainerApplication>true</AppContainerApplication>
|
||||||
|
<ApplicationType>Windows Store</ApplicationType>
|
||||||
|
<ApplicationTypeRevision>8.1</ApplicationTypeRevision>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
@ -75,27 +76,34 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="PropertySheets">
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="PropertySheets">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="PropertySheets">
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="PropertySheets">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup />
|
<PropertyGroup />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<GenerateManifest>false</GenerateManifest>
|
<GenerateManifest>false</GenerateManifest>
|
||||||
<OutDir>$(Configuration)\$(MSBuildProjectName)\</OutDir>
|
<OutDir>$(Configuration)\$(MSBuildProjectName)\</OutDir>
|
||||||
|
<LibraryPath>$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86)</LibraryPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||||
<GenerateManifest>false</GenerateManifest>
|
<GenerateManifest>false</GenerateManifest>
|
||||||
@ -123,14 +131,14 @@
|
|||||||
</PrecompiledHeaderOutputFile>
|
</PrecompiledHeaderOutputFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<CompileAsWinRT>false</CompileAsWinRT>
|
<CompileAsWinRT>false</CompileAsWinRT>
|
||||||
<AdditionalIncludeDirectories>$(OPENCV_DIR)\include;$(ProjectDir);$(IntermediateOutputPath);%(AdditionalIncludeDirectories);$(ProjectDir)\..\Common</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<AdditionalDependencies>runtimeobject.lib;%(AdditionalDependencies);mf.lib;mfuuid.lib;mfplat.lib;opencv_core245.lib;opencv_imgproc245.lib</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
||||||
<AdditionalLibraryDirectories>$(OPENCV_DIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
</Link>
|
||||||
<CustomBuildStep>
|
<CustomBuildStep>
|
||||||
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(ProjectDir)$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(ProjectDir)$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
||||||
@ -147,14 +155,14 @@
|
|||||||
</PrecompiledHeaderOutputFile>
|
</PrecompiledHeaderOutputFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<CompileAsWinRT>false</CompileAsWinRT>
|
<CompileAsWinRT>false</CompileAsWinRT>
|
||||||
<AdditionalIncludeDirectories>$(OPENCV_DIR)\include;$(ProjectDir);$(IntermediateOutputPath);%(AdditionalIncludeDirectories);$(ProjectDir)\..\Common</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<AdditionalDependencies>runtimeobject.lib;%(AdditionalDependencies);mf.lib;mfuuid.lib;mfplat.lib</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
||||||
<AdditionalLibraryDirectories>$(OPENCV_DIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
</Link>
|
||||||
<CustomBuildStep>
|
<CustomBuildStep>
|
||||||
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
||||||
@ -171,14 +179,14 @@
|
|||||||
</PrecompiledHeaderOutputFile>
|
</PrecompiledHeaderOutputFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<CompileAsWinRT>false</CompileAsWinRT>
|
<CompileAsWinRT>false</CompileAsWinRT>
|
||||||
<AdditionalIncludeDirectories>$(OPENCV_DIR)\include;$(ProjectDir);$(IntermediateOutputPath);%(AdditionalIncludeDirectories);$(ProjectDir)\..\Common</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<AdditionalDependencies>runtimeobject.lib;%(AdditionalDependencies);mf.lib;mfuuid.lib;mfplat.lib</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
||||||
<AdditionalLibraryDirectories>$(OPENCV_DIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
</Link>
|
||||||
<CustomBuildStep>
|
<CustomBuildStep>
|
||||||
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
||||||
@ -195,14 +203,14 @@
|
|||||||
</PrecompiledHeaderOutputFile>
|
</PrecompiledHeaderOutputFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<CompileAsWinRT>false</CompileAsWinRT>
|
<CompileAsWinRT>false</CompileAsWinRT>
|
||||||
<AdditionalIncludeDirectories>$(OPENCV_DIR)\include;$(ProjectDir);$(IntermediateOutputPath);%(AdditionalIncludeDirectories);$(ProjectDir)\..\Common</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<AdditionalDependencies>runtimeobject.lib;%(AdditionalDependencies);mf.lib;mfuuid.lib;mfplat.lib</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
||||||
<AdditionalLibraryDirectories>$(OPENCV_DIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
</Link>
|
||||||
<CustomBuildStep>
|
<CustomBuildStep>
|
||||||
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(ProjectDir)$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(ProjectDir)$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
||||||
@ -219,14 +227,14 @@
|
|||||||
</PrecompiledHeaderOutputFile>
|
</PrecompiledHeaderOutputFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<CompileAsWinRT>false</CompileAsWinRT>
|
<CompileAsWinRT>false</CompileAsWinRT>
|
||||||
<AdditionalIncludeDirectories>$(OPENCV_DIR)\include;$(ProjectDir);$(IntermediateOutputPath);%(AdditionalIncludeDirectories);$(ProjectDir)\..\Common</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<AdditionalDependencies>runtimeobject.lib;%(AdditionalDependencies);mf.lib;mfuuid.lib;mfplat.lib</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
||||||
<AdditionalLibraryDirectories>$(OPENCV_DIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
</Link>
|
||||||
<CustomBuildStep>
|
<CustomBuildStep>
|
||||||
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
||||||
@ -243,14 +251,14 @@
|
|||||||
</PrecompiledHeaderOutputFile>
|
</PrecompiledHeaderOutputFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<CompileAsWinRT>false</CompileAsWinRT>
|
<CompileAsWinRT>false</CompileAsWinRT>
|
||||||
<AdditionalIncludeDirectories>$(OPENCV_DIR)\include;$(ProjectDir);$(IntermediateOutputPath);%(AdditionalIncludeDirectories);$(ProjectDir)\..\Common</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
<AdditionalDependencies>runtimeobject.lib;%(AdditionalDependencies);mf.lib;mfuuid.lib;mfplat.lib</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
<ModuleDefinitionFile>OcvTransform.def</ModuleDefinitionFile>
|
||||||
<AdditionalLibraryDirectories>$(OPENCV_DIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
</Link>
|
||||||
<CustomBuildStep>
|
<CustomBuildStep>
|
||||||
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
<Command>mdmerge -metadata_dir "$(WindowsSDK_MetadataPath)" -o "$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)" -i "$(MSBuildProjectDirectory)" -v -partial</Command>
|
||||||
@ -316,4 +324,4 @@
|
|||||||
</Target>
|
</Target>
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros">
|
||||||
|
<OpenCV_Bin>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\$(PlatformTarget)\vc12\bin\</OpenCV_Bin>
|
||||||
|
<OpenCV_Lib>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\$(PlatformTarget)\vc12\lib\</OpenCV_Lib>
|
||||||
|
<OpenCV_Include>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\include\</OpenCV_Include>
|
||||||
|
<!--debug suffix for OpenCV dlls and libs -->
|
||||||
|
<DebugSuffix Condition="'$(Configuration)'=='Debug'">d</DebugSuffix>
|
||||||
|
<DebugSuffix Condition="'$(Configuration)'!='Debug'"></DebugSuffix>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<!--Add required OpenCV dlls here-->
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_core300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_imgproc300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>$(OpenCV_Include);$(ProjectDir)\..\Common;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<!--Add required OpenCV libs here-->
|
||||||
|
<AdditionalDependencies>opencv_core300$(DebugSuffix).lib;opencv_imgproc300$(DebugSuffix).lib;runtimeobject.lib;mf.lib;mfuuid.lib;mfplat.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>$(OpenCV_Lib);%(AdditionalLibraryDirectories);</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
</Project>
|
@ -1,24 +1,28 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
|
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
|
||||||
<Identity Name="Microsoft.SDKSamples.MediaCapture.CPP" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="1.0.0.0" />
|
<Identity Name="Microsoft.SDKSamples.MediaCapture.CPP" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="1.1.0.6" />
|
||||||
<Properties>
|
<Properties>
|
||||||
<DisplayName>MediaCapture CPP sample</DisplayName>
|
<DisplayName>MediaCapture CPP sample</DisplayName>
|
||||||
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
|
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
|
||||||
<Logo>Assets\storeLogo-sdk.png</Logo>
|
<Logo>Assets\windows-sdk.png</Logo>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Prerequisites>
|
<Prerequisites>
|
||||||
<OSMinVersion>6.2.1</OSMinVersion>
|
<OSMinVersion>6.3</OSMinVersion>
|
||||||
<OSMaxVersionTested>6.2.1</OSMaxVersionTested>
|
<OSMaxVersionTested>6.3</OSMaxVersionTested>
|
||||||
</Prerequisites>
|
</Prerequisites>
|
||||||
<Resources>
|
<Resources>
|
||||||
<Resource Language="x-generate" />
|
<Resource Language="x-generate" />
|
||||||
</Resources>
|
</Resources>
|
||||||
<Applications>
|
<Applications>
|
||||||
<Application Id="MediaCapture.App" Executable="$targetnametoken$.exe" EntryPoint="MediaCapture.App">
|
<Application Id="MediaCapture.App" Executable="$targetnametoken$.exe" EntryPoint="MediaCapture.App">
|
||||||
<VisualElements DisplayName="OCV Image Manipulations" Logo="assets\opencv-logo-150.png" SmallLogo="assets\opencv-logo-30.png" Description="OpenCV Image Manipulations sample" ForegroundText="light" BackgroundColor="#00b2f0">
|
<m2:VisualElements DisplayName="OCV Image Manipulations" Description="OpenCV Image Manipulations sample" BackgroundColor="#00b2f0" ForegroundText="light" Square150x150Logo="Assets\opencv-logo-150.png" Square30x30Logo="Assets\opencv-logo-30.png">
|
||||||
<DefaultTile ShortName="Ocv ImageManipulations" ShowName="allLogos" />
|
<m2:DefaultTile ShortName="Ocv ImageManipulations">
|
||||||
<SplashScreen Image="Assets\splash-sdk.png" BackgroundColor="#00b2f0" />
|
<m2:ShowNameOnTiles>
|
||||||
</VisualElements>
|
<m2:ShowOn Tile="square150x150Logo" />
|
||||||
|
</m2:ShowNameOnTiles>
|
||||||
|
</m2:DefaultTile>
|
||||||
|
<m2:SplashScreen BackgroundColor="#00b2f0" Image="Assets\splash-sdk.png" />
|
||||||
|
</m2:VisualElements>
|
||||||
</Application>
|
</Application>
|
||||||
</Applications>
|
</Applications>
|
||||||
<Capabilities>
|
<Capabilities>
|
||||||
@ -33,4 +37,4 @@
|
|||||||
</InProcessServer>
|
</InProcessServer>
|
||||||
</Extension>
|
</Extension>
|
||||||
</Extensions>
|
</Extensions>
|
||||||
</Package>
|
</Package>
|
BIN
samples/winrt/ImageManipulations/assets/StoreLogo.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
31
samples/winrt/ImageManipulations/opencv.props
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros">
|
||||||
|
<OpenCV_Bin>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\$(PlatformTarget)\vc12\bin\</OpenCV_Bin>
|
||||||
|
<OpenCV_Lib>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\$(PlatformTarget)\vc12\lib\</OpenCV_Lib>
|
||||||
|
<OpenCV_Include>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\include\</OpenCV_Include>
|
||||||
|
<!--debug suffix for OpenCV dlls and libs -->
|
||||||
|
<DebugSuffix Condition="'$(Configuration)'=='Debug'">d</DebugSuffix>
|
||||||
|
<DebugSuffix Condition="'$(Configuration)'!='Debug'"></DebugSuffix>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<!--Add required OpenCV dlls here-->
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_core300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_imgproc300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>$(OpenCV_Include);$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<!--Add required OpenCV libs here-->
|
||||||
|
<AdditionalDependencies>opencv_core300$(DebugSuffix).lib;opencv_imgproc300$(DebugSuffix).lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>$(OpenCV_Lib);%(AdditionalLibraryDirectories);</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
</Project>
|
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 2012
|
# Visual Studio 2013
|
||||||
|
VisualStudioVersion = 12.0.31101.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OcvImageProcessing", "OcvImageProcessing\OcvImageProcessing.vcxproj", "{A5555EA2-F9E8-4078-90F5-D428F2C0D6D1}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OcvImageProcessing", "OcvImageProcessing\OcvImageProcessing.vcxproj", "{A5555EA2-F9E8-4078-90F5-D428F2C0D6D1}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
#include <wrl\client.h>
|
#include <wrl\client.h>
|
||||||
#include <Robuffer.h>
|
#include <Robuffer.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <opencv2\imgproc\types_c.h>
|
||||||
|
|
||||||
using namespace OcvImageProcessing;
|
using namespace OcvImageProcessing;
|
||||||
|
|
||||||
using namespace Microsoft::WRL;
|
using namespace Microsoft::WRL;
|
||||||
@ -129,7 +131,7 @@ cv::Mat OcvImageProcessing::MainPage::ApplyFindFeaturesFilter(const cv::Mat& ima
|
|||||||
{
|
{
|
||||||
cv::Mat result;
|
cv::Mat result;
|
||||||
cv::Mat intermediateMat;
|
cv::Mat intermediateMat;
|
||||||
cv::Ptr<cv::FeatureDetector> detector = cv::FastFeatureDetector::create(50);
|
cv::Ptr<cv::FastFeatureDetector> detector = cv::FastFeatureDetector::create(50);
|
||||||
std::vector<cv::KeyPoint> features;
|
std::vector<cv::KeyPoint> features;
|
||||||
|
|
||||||
image.copyTo(result);
|
image.copyTo(result);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|ARM">
|
<ProjectConfiguration Include="Debug|ARM">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
@ -30,115 +30,89 @@
|
|||||||
<ProjectGuid>{a5555ea2-f9e8-4078-90f5-d428f2c0d6d1}</ProjectGuid>
|
<ProjectGuid>{a5555ea2-f9e8-4078-90f5-d428f2c0d6d1}</ProjectGuid>
|
||||||
<RootNamespace>OcvImageProcessing</RootNamespace>
|
<RootNamespace>OcvImageProcessing</RootNamespace>
|
||||||
<DefaultLanguage>en-US</DefaultLanguage>
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
|
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||||
<AppContainerApplication>true</AppContainerApplication>
|
<AppContainerApplication>true</AppContainerApplication>
|
||||||
|
<ApplicationType>Windows Store</ApplicationType>
|
||||||
|
<ApplicationTypeRevision>8.1</ApplicationTypeRevision>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<PlatformToolset>v110</PlatformToolset>
|
<PlatformToolset>v120</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="ExtensionSettings">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PackageCertificateKeyFile>OcvImageProcessing_TemporaryKey.pfx</PackageCertificateKeyFile>
|
<PackageCertificateKeyFile>OcvImageProcessing_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||||
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
|
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
|
||||||
|
<AppxBundlePlatforms>x86</AppxBundlePlatforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
||||||
<DisableSpecificWarnings>4453</DisableSpecificWarnings>
|
<DisableSpecificWarnings>4453</DisableSpecificWarnings>
|
||||||
</ClCompile>
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
|
||||||
<DisableSpecificWarnings>4453</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
|
||||||
<DisableSpecificWarnings>4453</DisableSpecificWarnings>
|
|
||||||
<AdditionalIncludeDirectories>$(OPENCV_DIR)\include;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalLibraryDirectories>$(OPENCV_DIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<AdditionalDependencies>opencv_core247d.lib;opencv_imgproc247d.lib;opencv_features2d247d.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
|
||||||
<DisableSpecificWarnings>4453</DisableSpecificWarnings>
|
|
||||||
<AdditionalIncludeDirectories>$(OPENCV_DIR)\include;$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalLibraryDirectories>$(OPENCV_DIR)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<AdditionalDependencies>opencv_core247.lib;opencv_imgproc247.lib;opencv_features2d247.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
|
||||||
<DisableSpecificWarnings>4453</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
|
||||||
<DisableSpecificWarnings>4453</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="pch.h" />
|
<ClInclude Include="pch.h" />
|
||||||
<ClInclude Include="App.xaml.h">
|
<ClInclude Include="App.xaml.h">
|
||||||
@ -163,105 +137,6 @@
|
|||||||
<AppxManifest Include="Package.appxmanifest">
|
<AppxManifest Include="Package.appxmanifest">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</AppxManifest>
|
</AppxManifest>
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_calib3d247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_calib3d247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_contrib247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_contrib247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_core247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_core247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_features2d247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_features2d247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_flann247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_flann247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_gpu247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_highgui247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_highgui247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_imgproc247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_imgproc247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_legacy247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_legacy247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_ml247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_ml247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_nonfree247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_nonfree247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_objdetect247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_objdetect247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_photo247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_photo247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_stitching247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_stitching247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_superres247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_superres247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_video247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_video247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_videostab247.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_videostab247d.dll">
|
|
||||||
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</DeploymentContent>
|
|
||||||
</None>
|
|
||||||
<None Include="OcvImageProcessing_TemporaryKey.pfx" />
|
<None Include="OcvImageProcessing_TemporaryKey.pfx" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -41,39 +41,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="OcvImageProcessing_TemporaryKey.pfx" />
|
<None Include="OcvImageProcessing_TemporaryKey.pfx" />
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_calib3d247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_calib3d247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_contrib247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_contrib247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_core247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_core247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_features2d247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_features2d247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_flann247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_flann247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_gpu247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_highgui247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_highgui247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_imgproc247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_imgproc247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_legacy247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_legacy247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_ml247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_ml247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_nonfree247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_nonfree247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_objdetect247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_objdetect247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_photo247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_photo247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_stitching247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_stitching247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_superres247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_superres247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_video247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_video247d.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_videostab247.dll" />
|
|
||||||
<None Include="$(OPENCV_DIR)\bin\opencv_videostab247d.dll" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Page Include="MainPage.xaml" />
|
<Page Include="MainPage.xaml" />
|
||||||
|
@ -1,24 +1,28 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
|
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
|
||||||
<Identity Name="96635370-3751-48a8-84a6-afd4229cf435" Publisher="CN=asmorkalov" Version="1.0.0.0" />
|
<Identity Name="96635370-3751-48a8-84a6-afd4229cf435" Publisher="CN=dalestam" Version="1.1.0.1" />
|
||||||
<Properties>
|
<Properties>
|
||||||
<DisplayName>OcvImageProcessing</DisplayName>
|
<DisplayName>OcvImageProcessing</DisplayName>
|
||||||
<PublisherDisplayName>asmorkalov</PublisherDisplayName>
|
<PublisherDisplayName>asmorkalov</PublisherDisplayName>
|
||||||
<Logo>Assets\StoreLogo.png</Logo>
|
<Logo>Assets\StoreLogo.png</Logo>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Prerequisites>
|
<Prerequisites>
|
||||||
<OSMinVersion>6.2.1</OSMinVersion>
|
<OSMinVersion>6.3</OSMinVersion>
|
||||||
<OSMaxVersionTested>6.2.1</OSMaxVersionTested>
|
<OSMaxVersionTested>6.3</OSMaxVersionTested>
|
||||||
</Prerequisites>
|
</Prerequisites>
|
||||||
<Resources>
|
<Resources>
|
||||||
<Resource Language="x-generate" />
|
<Resource Language="x-generate" />
|
||||||
</Resources>
|
</Resources>
|
||||||
<Applications>
|
<Applications>
|
||||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="OcvImageProcessing.App">
|
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="OcvImageProcessing.App">
|
||||||
<VisualElements DisplayName="OcvImageProcessing" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="OcvImageProcessing" ForegroundText="light" BackgroundColor="#464646">
|
<m2:VisualElements DisplayName="OcvImageProcessing" Description="OcvImageProcessing" BackgroundColor="#464646" ForegroundText="light" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png">
|
||||||
<DefaultTile ShowName="allLogos" />
|
<m2:DefaultTile>
|
||||||
<SplashScreen Image="Assets\SplashScreen.png" />
|
<m2:ShowNameOnTiles>
|
||||||
</VisualElements>
|
<m2:ShowOn Tile="square150x150Logo" />
|
||||||
|
</m2:ShowNameOnTiles>
|
||||||
|
</m2:DefaultTile>
|
||||||
|
<m2:SplashScreen Image="Assets\SplashScreen.png" />
|
||||||
|
</m2:VisualElements>
|
||||||
</Application>
|
</Application>
|
||||||
</Applications>
|
</Applications>
|
||||||
</Package>
|
</Package>
|
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros">
|
||||||
|
<OpenCV_Bin>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\$(PlatformTarget)\vc12\bin\</OpenCV_Bin>
|
||||||
|
<OpenCV_Lib>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\$(PlatformTarget)\vc12\lib\</OpenCV_Lib>
|
||||||
|
<OpenCV_Include>$(OPENCV_WINRT_INSTALL_DIR)WS\8.1\$(PlatformTarget)\include\</OpenCV_Include>
|
||||||
|
<!--debug suffix for OpenCV dlls and libs -->
|
||||||
|
<DebugSuffix Condition="'$(Configuration)'=='Debug'">d</DebugSuffix>
|
||||||
|
<DebugSuffix Condition="'$(Configuration)'!='Debug'"></DebugSuffix>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<!--Add required OpenCV dlls here-->
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_core300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_imgproc300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_features2d300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_flann300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_ml300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>$(OpenCV_Include);$(ProjectDir);$(GeneratedFilesDir);$(IntDir);%(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<!--Add required OpenCV libs here-->
|
||||||
|
<AdditionalDependencies>opencv_core300$(DebugSuffix).lib;opencv_imgproc300$(DebugSuffix).lib;opencv_features2d300$(DebugSuffix).lib;opencv_flann300$(DebugSuffix).lib;opencv_ml300$(DebugSuffix).lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>$(OpenCV_Lib);%(AdditionalLibraryDirectories);</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
</Project>
|
6
samples/winrt/readme.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Building OpenCV WinRT Samples
|
||||||
|
=============================
|
||||||
|
|
||||||
|
Samples are created to run against x86 architecture OpenCV binaries.
|
||||||
|
|
||||||
|
Please follow the instructions in "platforms/winrt/readme.txt" to generate and build OpenCV for WinRT.
|
87
samples/winrt_universal/.gitignore
vendored
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# Ignore thumbnails created by windows
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
#ignore winrt copies of opencv files
|
||||||
|
opencl_kernels.cpp
|
||||||
|
opencl_kernels.hpp
|
||||||
|
|
||||||
|
# Ignore files build by Visual Studio
|
||||||
|
*.obj
|
||||||
|
*.exe
|
||||||
|
*.pdb
|
||||||
|
*.aps
|
||||||
|
*.vcproj.*.user
|
||||||
|
*.vcxproj.user
|
||||||
|
*.vspscc
|
||||||
|
*_i.c
|
||||||
|
*.i
|
||||||
|
*.icf
|
||||||
|
*_p.c
|
||||||
|
*.ncb
|
||||||
|
*.suo
|
||||||
|
*.tlb
|
||||||
|
*.tlh
|
||||||
|
*.bak
|
||||||
|
*.cache
|
||||||
|
*.ilk
|
||||||
|
*.log
|
||||||
|
*.winmd
|
||||||
|
[Bb]in
|
||||||
|
[Dd]ebug*/
|
||||||
|
*.sbr
|
||||||
|
*.sdf
|
||||||
|
obj/
|
||||||
|
[Rr]elease*/
|
||||||
|
_ReSharper*/
|
||||||
|
[Tt]est[Rr]esult*
|
||||||
|
ipch/
|
||||||
|
*.opensdf
|
||||||
|
Generated Files
|
||||||
|
AppPackages
|
||||||
|
SubmissionInfo
|
||||||
|
*.hps
|
||||||
|
|
||||||
|
# Ignore files build by ndk and eclipse
|
||||||
|
libs/
|
||||||
|
bin/
|
||||||
|
obj/
|
||||||
|
gen/
|
||||||
|
local.properties
|
||||||
|
|
||||||
|
# Ignore python compiled files
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Ignore files build by airplay and marmalade
|
||||||
|
build_*_xcode/
|
||||||
|
build_*_vc10/
|
||||||
|
|
||||||
|
# Ignore files built by xcode
|
||||||
|
*.mode*v*
|
||||||
|
*.pbxuser
|
||||||
|
*.xcbkptlist
|
||||||
|
*.xcscheme
|
||||||
|
*.xcworkspacedata
|
||||||
|
*.xcuserstate
|
||||||
|
xcschememanagement.plist
|
||||||
|
build/
|
||||||
|
.DS_Store
|
||||||
|
._.*
|
||||||
|
xcuserdata/
|
||||||
|
DerivedData/
|
||||||
|
*.xccheckout
|
||||||
|
|
||||||
|
# Ignore files built by bada
|
||||||
|
.Simulator-Debug/
|
||||||
|
.Target-Debug/
|
||||||
|
.Target-Release/
|
||||||
|
|
||||||
|
# Ignore files built by blackberry
|
||||||
|
Simulator/
|
||||||
|
Device-Debug/
|
||||||
|
Device-Release/
|
||||||
|
|
||||||
|
# Ignore vim swaps
|
||||||
|
*.swp
|
||||||
|
|
||||||
|
# CTags
|
||||||
|
tags
|
7
samples/winrt_universal/PhoneTutorial/App.xaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<Application
|
||||||
|
x:Class="PhoneTutorial.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:PhoneTutorial">
|
||||||
|
|
||||||
|
</Application>
|
137
samples/winrt_universal/PhoneTutorial/App.xaml.cpp
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
//
|
||||||
|
// App.xaml.cpp
|
||||||
|
// Implementation of the App class.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "pch.h"
|
||||||
|
#include "MainPage.xaml.h"
|
||||||
|
|
||||||
|
using namespace PhoneTutorial;
|
||||||
|
|
||||||
|
using namespace Platform;
|
||||||
|
using namespace Windows::ApplicationModel;
|
||||||
|
using namespace Windows::ApplicationModel::Activation;
|
||||||
|
using namespace Windows::Foundation;
|
||||||
|
using namespace Windows::Foundation::Collections;
|
||||||
|
using namespace Windows::UI::Xaml;
|
||||||
|
using namespace Windows::UI::Xaml::Controls;
|
||||||
|
using namespace Windows::UI::Xaml::Controls::Primitives;
|
||||||
|
using namespace Windows::UI::Xaml::Data;
|
||||||
|
using namespace Windows::UI::Xaml::Input;
|
||||||
|
using namespace Windows::UI::Xaml::Interop;
|
||||||
|
using namespace Windows::UI::Xaml::Media;
|
||||||
|
using namespace Windows::UI::Xaml::Media::Animation;
|
||||||
|
using namespace Windows::UI::Xaml::Navigation;
|
||||||
|
|
||||||
|
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkID=391641
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes the singleton application object. This is the first line of authored code
|
||||||
|
/// executed, and as such is the logical equivalent of main() or WinMain().
|
||||||
|
/// </summary>
|
||||||
|
App::App()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Invoked when the application is launched normally by the end user. Other entry points
|
||||||
|
/// will be used when the application is launched to open a specific file, to display
|
||||||
|
/// search results, and so forth.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="e">Details about the launch request and process.</param>
|
||||||
|
void App::OnLaunched(LaunchActivatedEventArgs^ e)
|
||||||
|
{
|
||||||
|
#if _DEBUG
|
||||||
|
if (IsDebuggerPresent())
|
||||||
|
{
|
||||||
|
DebugSettings->EnableFrameRateCounter = true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
auto rootFrame = dynamic_cast<Frame^>(Window::Current->Content);
|
||||||
|
|
||||||
|
// Do not repeat app initialization when the Window already has content,
|
||||||
|
// just ensure that the window is active.
|
||||||
|
if (rootFrame == nullptr)
|
||||||
|
{
|
||||||
|
// Create a Frame to act as the navigation context and associate it with
|
||||||
|
// a SuspensionManager key
|
||||||
|
rootFrame = ref new Frame();
|
||||||
|
|
||||||
|
// TODO: Change this value to a cache size that is appropriate for your application.
|
||||||
|
rootFrame->CacheSize = 1;
|
||||||
|
|
||||||
|
if (e->PreviousExecutionState == ApplicationExecutionState::Terminated)
|
||||||
|
{
|
||||||
|
// TODO: Restore the saved session state only when appropriate, scheduling the
|
||||||
|
// final launch steps after the restore is complete.
|
||||||
|
}
|
||||||
|
|
||||||
|
// Place the frame in the current Window
|
||||||
|
Window::Current->Content = rootFrame;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rootFrame->Content == nullptr)
|
||||||
|
{
|
||||||
|
// Removes the turnstile navigation for startup.
|
||||||
|
if (rootFrame->ContentTransitions != nullptr)
|
||||||
|
{
|
||||||
|
_transitions = ref new TransitionCollection();
|
||||||
|
for (auto transition : rootFrame->ContentTransitions)
|
||||||
|
{
|
||||||
|
_transitions->Append(transition);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rootFrame->ContentTransitions = nullptr;
|
||||||
|
_firstNavigatedToken = rootFrame->Navigated += ref new NavigatedEventHandler(this, &App::RootFrame_FirstNavigated);
|
||||||
|
|
||||||
|
// When the navigation stack isn't restored navigate to the first page,
|
||||||
|
// configuring the new page by passing required information as a navigation
|
||||||
|
// parameter.
|
||||||
|
if (!rootFrame->Navigate(MainPage::typeid, e->Arguments))
|
||||||
|
{
|
||||||
|
throw ref new FailureException("Failed to create initial page");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensure the current window is active
|
||||||
|
Window::Current->Activate();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Restores the content transitions after the app has launched.
|
||||||
|
/// </summary>
|
||||||
|
void App::RootFrame_FirstNavigated(Object^ sender, NavigationEventArgs^ e)
|
||||||
|
{
|
||||||
|
auto rootFrame = safe_cast<Frame^>(sender);
|
||||||
|
|
||||||
|
TransitionCollection^ newTransitions;
|
||||||
|
if (_transitions == nullptr)
|
||||||
|
{
|
||||||
|
newTransitions = ref new TransitionCollection();
|
||||||
|
newTransitions->Append(ref new NavigationThemeTransition());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newTransitions = _transitions;
|
||||||
|
}
|
||||||
|
|
||||||
|
rootFrame->ContentTransitions = newTransitions;
|
||||||
|
rootFrame->Navigated -= _firstNavigatedToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Invoked when application execution is being suspended. Application state is saved
|
||||||
|
/// without knowing whether the application will be terminated or resumed with the contents
|
||||||
|
/// of memory still intact.
|
||||||
|
/// </summary>
|
||||||
|
void App::OnSuspending(Object^ sender, SuspendingEventArgs^ e)
|
||||||
|
{
|
||||||
|
(void) sender; // Unused parameter
|
||||||
|
(void) e; // Unused parameter
|
||||||
|
|
||||||
|
// TODO: Save application state and stop any background activity
|
||||||
|
}
|
29
samples/winrt_universal/PhoneTutorial/App.xaml.h
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
//
|
||||||
|
// App.xaml.h
|
||||||
|
// Declaration of the App class.
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "App.g.h"
|
||||||
|
|
||||||
|
namespace PhoneTutorial
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Provides application-specific behavior to supplement the default Application class.
|
||||||
|
/// </summary>
|
||||||
|
ref class App sealed
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
App();
|
||||||
|
|
||||||
|
virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
Windows::UI::Xaml::Media::Animation::TransitionCollection^ _transitions;
|
||||||
|
Windows::Foundation::EventRegistrationToken _firstNavigatedToken;
|
||||||
|
|
||||||
|
void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e);
|
||||||
|
void RootFrame_FirstNavigated(Platform::Object^ sender, Windows::UI::Xaml::Navigation::NavigationEventArgs^ e);
|
||||||
|
};
|
||||||
|
}
|
BIN
samples/winrt_universal/PhoneTutorial/Assets/Logo.scale-240.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 753 B |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
BIN
samples/winrt_universal/PhoneTutorial/Lena.png
Normal file
After Width: | Height: | Size: 483 KiB |
17
samples/winrt_universal/PhoneTutorial/MainPage.xaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<Page
|
||||||
|
x:Class="PhoneTutorial.MainPage"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:PhoneTutorial"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
<Grid>
|
||||||
|
<StackPanel>
|
||||||
|
<Image x:Name="image" />
|
||||||
|
<Button x:Name="Process" Content="Process" HorizontalAlignment="Center" Click="Process_Click"/>
|
||||||
|
<Button x:Name="Reset" Content="Reset" HorizontalAlignment="Center" Click="Reset_Click"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
122
samples/winrt_universal/PhoneTutorial/MainPage.xaml.cpp
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
//
|
||||||
|
// MainPage.xaml.cpp
|
||||||
|
// Implementation of the MainPage class.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "pch.h"
|
||||||
|
#include "MainPage.xaml.h"
|
||||||
|
|
||||||
|
#include <opencv2\imgproc\types_c.h>
|
||||||
|
#include <opencv2\core\core.hpp>
|
||||||
|
#include <opencv2\imgproc\imgproc.hpp>
|
||||||
|
#include <Robuffer.h>
|
||||||
|
#include <ppl.h>
|
||||||
|
#include <ppltasks.h>
|
||||||
|
|
||||||
|
using namespace PhoneTutorial;
|
||||||
|
using namespace Platform;
|
||||||
|
using namespace Windows::Foundation;
|
||||||
|
using namespace Windows::Foundation::Collections;
|
||||||
|
using namespace Windows::UI::Xaml;
|
||||||
|
using namespace Windows::UI::Xaml::Controls;
|
||||||
|
using namespace Windows::UI::Xaml::Controls::Primitives;
|
||||||
|
using namespace Windows::UI::Xaml::Data;
|
||||||
|
using namespace Windows::UI::Xaml::Input;
|
||||||
|
using namespace Windows::UI::Xaml::Media;
|
||||||
|
using namespace Windows::UI::Xaml::Navigation;
|
||||||
|
using namespace Windows::UI::Xaml::Media::Imaging;
|
||||||
|
using namespace Windows::Storage::Streams;
|
||||||
|
using namespace Microsoft::WRL;
|
||||||
|
using namespace Windows::ApplicationModel;
|
||||||
|
|
||||||
|
MainPage::MainPage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Invoked when this page is about to be displayed in a Frame.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="e">Event data that describes how this page was reached. The Parameter
|
||||||
|
/// property is typically used to configure the page.</param>
|
||||||
|
void MainPage::OnNavigatedTo(NavigationEventArgs^ e)
|
||||||
|
{
|
||||||
|
(void) e; // Unused parameter
|
||||||
|
LoadImage();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ThrowIfFailed(HRESULT hr)
|
||||||
|
{
|
||||||
|
if (FAILED(hr))
|
||||||
|
{
|
||||||
|
throw Exception::CreateException(hr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
byte* GetPointerToPixelData(IBuffer^ buffer)
|
||||||
|
{
|
||||||
|
// Cast to Object^, then to its underlying IInspectable interface.
|
||||||
|
Object^ obj = buffer;
|
||||||
|
ComPtr<IInspectable> insp(reinterpret_cast<IInspectable*>(obj));
|
||||||
|
|
||||||
|
// Query the IBufferByteAccess interface.
|
||||||
|
ComPtr<IBufferByteAccess> bufferByteAccess;
|
||||||
|
ThrowIfFailed(insp.As(&bufferByteAccess));
|
||||||
|
|
||||||
|
// Retrieve the buffer data.
|
||||||
|
byte* pixels = nullptr;
|
||||||
|
ThrowIfFailed(bufferByteAccess->Buffer(&pixels));
|
||||||
|
return pixels;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PhoneTutorial::MainPage::Process_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
|
||||||
|
{
|
||||||
|
(void) e; // Unused parameter
|
||||||
|
|
||||||
|
// get the pixels from the WriteableBitmap
|
||||||
|
byte* pPixels = GetPointerToPixelData(m_bitmap->PixelBuffer);
|
||||||
|
int height = m_bitmap->PixelHeight;
|
||||||
|
int width = m_bitmap->PixelWidth;
|
||||||
|
|
||||||
|
// create a matrix the size and type of the image
|
||||||
|
cv::Mat mat(width, height, CV_8UC4);
|
||||||
|
memcpy(mat.data, pPixels, 4 * height*width);
|
||||||
|
|
||||||
|
// convert to grayscale
|
||||||
|
cv::Mat intermediateMat;
|
||||||
|
cv::cvtColor(mat, intermediateMat, CV_RGB2GRAY);
|
||||||
|
|
||||||
|
// convert to BGRA
|
||||||
|
cv::cvtColor(intermediateMat, mat, CV_GRAY2BGRA);
|
||||||
|
|
||||||
|
// copy processed image back to the WriteableBitmap
|
||||||
|
memcpy(pPixels, mat.data, 4 * height*width);
|
||||||
|
|
||||||
|
// update the WriteableBitmap
|
||||||
|
m_bitmap->Invalidate();
|
||||||
|
}
|
||||||
|
|
||||||
|
void PhoneTutorial::MainPage::LoadImage()
|
||||||
|
{
|
||||||
|
Concurrency::task<Windows::Storage::StorageFile^> getFileTask(Package::Current->InstalledLocation->GetFileAsync(L"Lena.png"));
|
||||||
|
|
||||||
|
auto getStreamTask = getFileTask.then(
|
||||||
|
[](Windows::Storage::StorageFile ^storageFile)
|
||||||
|
{
|
||||||
|
return storageFile->OpenReadAsync();
|
||||||
|
});
|
||||||
|
|
||||||
|
getStreamTask.then(
|
||||||
|
[this](Windows::Storage::Streams::IRandomAccessStreamWithContentType^ stream)
|
||||||
|
{
|
||||||
|
m_bitmap = ref new Windows::UI::Xaml::Media::Imaging::WriteableBitmap(1, 1);
|
||||||
|
m_bitmap->SetSource(stream);
|
||||||
|
image->Source = m_bitmap;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void PhoneTutorial::MainPage::Reset_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
|
||||||
|
{
|
||||||
|
(void) e; // Unused parameter
|
||||||
|
LoadImage();
|
||||||
|
}
|
29
samples/winrt_universal/PhoneTutorial/MainPage.xaml.h
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
//
|
||||||
|
// MainPage.xaml.h
|
||||||
|
// Declaration of the MainPage class.
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "MainPage.g.h"
|
||||||
|
|
||||||
|
namespace PhoneTutorial
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public ref class MainPage sealed
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
MainPage();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
|
||||||
|
private:
|
||||||
|
|
||||||
|
Windows::UI::Xaml::Media::Imaging::WriteableBitmap^ m_bitmap;
|
||||||
|
void Process_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
|
||||||
|
void Reset_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
|
||||||
|
void LoadImage();
|
||||||
|
};
|
||||||
|
}
|
34
samples/winrt_universal/PhoneTutorial/Package.appxmanifest
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest" xmlns:m3="http://schemas.microsoft.com/appx/2014/manifest" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest">
|
||||||
|
<Identity Name="0a7cc91b-c995-40cf-adf4-b7ac4ba969c6" Publisher="CN=dalestam" Version="1.0.0.0" />
|
||||||
|
<mp:PhoneIdentity PhoneProductId="0a7cc91b-c995-40cf-adf4-b7ac4ba969c6" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
||||||
|
<Properties>
|
||||||
|
<DisplayName>PhoneTutorial</DisplayName>
|
||||||
|
<PublisherDisplayName>dalestam</PublisherDisplayName>
|
||||||
|
<Logo>Assets\StoreLogo.png</Logo>
|
||||||
|
</Properties>
|
||||||
|
<Prerequisites>
|
||||||
|
<OSMinVersion>6.3.1</OSMinVersion>
|
||||||
|
<OSMaxVersionTested>6.3.1</OSMaxVersionTested>
|
||||||
|
</Prerequisites>
|
||||||
|
<Resources>
|
||||||
|
<Resource Language="x-generate" />
|
||||||
|
</Resources>
|
||||||
|
<Applications>
|
||||||
|
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="PhoneTutorial.App">
|
||||||
|
<m3:VisualElements DisplayName="PhoneTutorial" Square150x150Logo="Assets\Logo.png" Square44x44Logo="Assets\SmallLogo.png" Description="PhoneTutorial" ForegroundText="light" BackgroundColor="transparent">
|
||||||
|
<m3:DefaultTile Wide310x150Logo="Assets\WideLogo.png" Square71x71Logo="Assets\Square71x71Logo.png">
|
||||||
|
</m3:DefaultTile>
|
||||||
|
<m3:SplashScreen Image="Assets\SplashScreen.png" />
|
||||||
|
<m3:ApplicationView MinWidth="width320" />
|
||||||
|
<!--Used in XAML Designer. DO NOT REMOVE-->
|
||||||
|
<m3:InitialRotationPreference>
|
||||||
|
<m3:Rotation Preference="portrait" />
|
||||||
|
</m3:InitialRotationPreference>
|
||||||
|
</m3:VisualElements>
|
||||||
|
</Application>
|
||||||
|
</Applications>
|
||||||
|
<Capabilities>
|
||||||
|
<Capability Name="internetClientServer" />
|
||||||
|
</Capabilities>
|
||||||
|
</Package>
|
32
samples/winrt_universal/PhoneTutorial/PhoneTutorial.sln
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 2013
|
||||||
|
VisualStudioVersion = 12.0.31101.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PhoneTutorial", "PhoneTutorial.vcxproj", "{8BEFFBBF-DF41-4539-86BC-A84722831035}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|ARM = Debug|ARM
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|ARM = Release|ARM
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Debug|Win32.Deploy.0 = Debug|Win32
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Release|ARM.Deploy.0 = Release|ARM
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{8BEFFBBF-DF41-4539-86BC-A84722831035}.Release|Win32.Deploy.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
168
samples/winrt_universal/PhoneTutorial/PhoneTutorial.vcxproj
Normal file
@ -0,0 +1,168 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|ARM">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>ARM</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|ARM">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>ARM</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{8beffbbf-df41-4539-86bc-a84722831035}</ProjectGuid>
|
||||||
|
<RootNamespace>PhoneTutorial</RootNamespace>
|
||||||
|
<DefaultLanguage>en-US</DefaultLanguage>
|
||||||
|
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||||
|
<AppContainerApplication>true</AppContainerApplication>
|
||||||
|
<ApplicationType>Windows Phone</ApplicationType>
|
||||||
|
<ApplicationTypeRevision>8.1</ApplicationTypeRevision>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_wp81</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_wp81</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<PlatformToolset>v120_wp81</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<PlatformToolset>v120_wp81</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="opencv.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LibraryPath>$(ProjectDir)..\..\..\bin\WP\8.1\x86\lib\Debug;$(ProjectDir)..\..\..\bin\WP\8.1\x86\3rdparty\lib\Debug;$(VC_LibraryPath_x86);$(WindowsPhoneSDK_LibraryPath_x86)</LibraryPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="pch.h" />
|
||||||
|
<ClInclude Include="App.xaml.h">
|
||||||
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="MainPage.xaml.h">
|
||||||
|
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ApplicationDefinition Include="App.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</ApplicationDefinition>
|
||||||
|
<Page Include="MainPage.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<AppxManifest Include="Package.appxmanifest">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</AppxManifest>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Image Include="Assets\Logo.scale-240.png" />
|
||||||
|
<Image Include="Assets\SmallLogo.scale-240.png" />
|
||||||
|
<Image Include="Assets\SplashScreen.scale-240.png" />
|
||||||
|
<Image Include="Assets\Square71x71Logo.scale-240.png" />
|
||||||
|
<Image Include="Assets\StoreLogo.scale-240.png" />
|
||||||
|
<Image Include="Assets\WideLogo.scale-240.png" />
|
||||||
|
<Image Include="Lena.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="App.xaml.cpp">
|
||||||
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="MainPage.xaml.cpp">
|
||||||
|
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="pch.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">Create</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
@ -0,0 +1,51 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Assets">
|
||||||
|
<UniqueIdentifier>8beffbbf-df41-4539-86bc-a84722831035</UniqueIdentifier>
|
||||||
|
<Extensions>bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Image Include="Assets\Logo.scale-240.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\SmallLogo.scale-240.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\SplashScreen.scale-240.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\Square71x71Logo.scale-240.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\StoreLogo.scale-240.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
<Image Include="Assets\WideLogo.scale-240.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ApplicationDefinition Include="App.xaml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="App.xaml.cpp" />
|
||||||
|
<ClCompile Include="MainPage.xaml.cpp" />
|
||||||
|
<ClCompile Include="pch.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="pch.h" />
|
||||||
|
<ClInclude Include="App.xaml.h" />
|
||||||
|
<ClInclude Include="MainPage.xaml.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<AppxManifest Include="Package.appxmanifest" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Include="MainPage.xaml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Image Include="Lena.png">
|
||||||
|
<Filter>Assets</Filter>
|
||||||
|
</Image>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
31
samples/winrt_universal/PhoneTutorial/opencv.props
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros">
|
||||||
|
<OpenCV_Bin>$(OPENCV_WINRT_INSTALL_DIR)WP\8.1\$(PlatformTarget)\$(PlatformTarget)\vc12\bin\</OpenCV_Bin>
|
||||||
|
<OpenCV_Lib>$(OPENCV_WINRT_INSTALL_DIR)WP\8.1\$(PlatformTarget)\$(PlatformTarget)\vc12\lib\</OpenCV_Lib>
|
||||||
|
<OpenCV_Include>$(OPENCV_WINRT_INSTALL_DIR)WP\8.1\$(PlatformTarget)\include\</OpenCV_Include>
|
||||||
|
<!--debug suffix for OpenCV dlls and libs -->
|
||||||
|
<DebugSuffix Condition="'$(Configuration)'=='Debug'">d</DebugSuffix>
|
||||||
|
<DebugSuffix Condition="'$(Configuration)'!='Debug'"></DebugSuffix>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<!--Add required OpenCV dlls here-->
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_core300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
<None Include="$(OpenCV_Bin)opencv_imgproc300$(DebugSuffix).dll">
|
||||||
|
<DeploymentContent>true</DeploymentContent>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>$(OpenCV_Include);%(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<!--Add required OpenCV libs here-->
|
||||||
|
<AdditionalDependencies>opencv_core300$(DebugSuffix).lib;opencv_imgproc300$(DebugSuffix).lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>$(OpenCV_Lib);%(AdditionalLibraryDirectories);</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
</Project>
|
6
samples/winrt_universal/PhoneTutorial/pch.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
//
|
||||||
|
// pch.cpp
|
||||||
|
// Include the standard header and generate the precompiled header.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "pch.h"
|
10
samples/winrt_universal/PhoneTutorial/pch.h
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
//
|
||||||
|
// pch.h
|
||||||
|
// Header for standard system include files.
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <collection.h>
|
||||||
|
#include <ppltasks.h>
|
||||||
|
#include "App.xaml.h"
|
6
samples/winrt_universal/readme.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Building OpenCV WinRT Universal Samples
|
||||||
|
=======================================
|
||||||
|
|
||||||
|
Samples are created to run against x86 architecture OpenCV binaries.
|
||||||
|
|
||||||
|
Please follow the instructions in "platforms/winrt/readme.txt" to generate and build OpenCV for WinRT.
|
87
samples/wp8/.gitignore
vendored
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
# Ignore thumbnails created by windows
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
#ignore winrt copies of opencv files
|
||||||
|
opencl_kernels.cpp
|
||||||
|
opencl_kernels.hpp
|
||||||
|
|
||||||
|
# Ignore files build by Visual Studio
|
||||||
|
*.obj
|
||||||
|
*.exe
|
||||||
|
*.pdb
|
||||||
|
*.aps
|
||||||
|
*.vcproj.*.user
|
||||||
|
*.vcxproj.user
|
||||||
|
*.vspscc
|
||||||
|
*_i.c
|
||||||
|
*.i
|
||||||
|
*.icf
|
||||||
|
*_p.c
|
||||||
|
*.ncb
|
||||||
|
*.suo
|
||||||
|
*.tlb
|
||||||
|
*.tlh
|
||||||
|
*.bak
|
||||||
|
*.cache
|
||||||
|
*.ilk
|
||||||
|
*.log
|
||||||
|
*.winmd
|
||||||
|
[Bb]in
|
||||||
|
[Dd]ebug*/
|
||||||
|
*.sbr
|
||||||
|
*.sdf
|
||||||
|
obj/
|
||||||
|
[Rr]elease*/
|
||||||
|
_ReSharper*/
|
||||||
|
[Tt]est[Rr]esult*
|
||||||
|
ipch/
|
||||||
|
*.opensdf
|
||||||
|
Generated Files
|
||||||
|
AppPackages
|
||||||
|
SubmissionInfo
|
||||||
|
*.hps
|
||||||
|
|
||||||
|
# Ignore files build by ndk and eclipse
|
||||||
|
libs/
|
||||||
|
bin/
|
||||||
|
obj/
|
||||||
|
gen/
|
||||||
|
local.properties
|
||||||
|
|
||||||
|
# Ignore python compiled files
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Ignore files build by airplay and marmalade
|
||||||
|
build_*_xcode/
|
||||||
|
build_*_vc10/
|
||||||
|
|
||||||
|
# Ignore files built by xcode
|
||||||
|
*.mode*v*
|
||||||
|
*.pbxuser
|
||||||
|
*.xcbkptlist
|
||||||
|
*.xcscheme
|
||||||
|
*.xcworkspacedata
|
||||||
|
*.xcuserstate
|
||||||
|
xcschememanagement.plist
|
||||||
|
build/
|
||||||
|
.DS_Store
|
||||||
|
._.*
|
||||||
|
xcuserdata/
|
||||||
|
DerivedData/
|
||||||
|
*.xccheckout
|
||||||
|
|
||||||
|
# Ignore files built by bada
|
||||||
|
.Simulator-Debug/
|
||||||
|
.Target-Debug/
|
||||||
|
.Target-Release/
|
||||||
|
|
||||||
|
# Ignore files built by blackberry
|
||||||
|
Simulator/
|
||||||
|
Device-Debug/
|
||||||
|
Device-Release/
|
||||||
|
|
||||||
|
# Ignore vim swaps
|
||||||
|
*.swp
|
||||||
|
|
||||||
|
# CTags
|
||||||
|
tags
|
76
samples/wp8/OcvImageManipulation/ImageManipulation.sln
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 2013
|
||||||
|
VisualStudioVersion = 12.0.31101.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OcvImageManipulation", "PhoneXamlDirect3DApp1\PhoneXamlDirect3DApp1\OcvImageManipulation.csproj", "{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PhoneXamlDirect3DApp1Comp", "PhoneXamlDirect3DApp1\PhoneXamlDirect3DApp1Comp\PhoneXamlDirect3DApp1Comp.vcxproj", "{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Debug|ARM = Debug|ARM
|
||||||
|
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
Release|ARM = Release|ARM
|
||||||
|
Release|Mixed Platforms = Release|Mixed Platforms
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Mixed Platforms.Build.0 = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Mixed Platforms.Deploy.0 = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Win32.ActiveCfg = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Win32.Build.0 = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|Win32.Deploy.0 = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Debug|x86.Deploy.0 = Debug|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|ARM.Deploy.0 = Release|ARM
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Mixed Platforms.ActiveCfg = Release|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Mixed Platforms.Build.0 = Release|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Mixed Platforms.Deploy.0 = Release|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Win32.ActiveCfg = Release|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Win32.Build.0 = Release|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|Win32.Deploy.0 = Release|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|x86.Build.0 = Release|x86
|
||||||
|
{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}.Release|x86.Deploy.0 = Release|x86
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|Any CPU.ActiveCfg = Debug|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|ARM.Build.0 = Debug|ARM
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|Mixed Platforms.Build.0 = Debug|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|Any CPU.ActiveCfg = Release|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|ARM.ActiveCfg = Release|ARM
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|ARM.Build.0 = Release|ARM
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|Mixed Platforms.ActiveCfg = Release|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|Mixed Platforms.Build.0 = Release|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{C0F94AFA-466F-4FC4-B5C1-6CD955F3FF88}.Release|x86.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
@ -0,0 +1,20 @@
|
|||||||
|
<Application
|
||||||
|
x:Class="PhoneXamlDirect3DApp1.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
||||||
|
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">
|
||||||
|
|
||||||
|
<!--Application Resources-->
|
||||||
|
<Application.Resources>
|
||||||
|
<local:LocalizedStrings xmlns:local="clr-namespace:PhoneXamlDirect3DApp1" x:Key="LocalizedStrings"/>
|
||||||
|
</Application.Resources>
|
||||||
|
|
||||||
|
<Application.ApplicationLifetimeObjects>
|
||||||
|
<!--Required object that handles lifetime events for the application-->
|
||||||
|
<shell:PhoneApplicationService
|
||||||
|
Launching="Application_Launching" Closing="Application_Closing"
|
||||||
|
Activated="Application_Activated" Deactivated="Application_Deactivated"/>
|
||||||
|
</Application.ApplicationLifetimeObjects>
|
||||||
|
|
||||||
|
</Application>
|
@ -0,0 +1,223 @@
|
|||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Resources;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Markup;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using Microsoft.Phone.Controls;
|
||||||
|
using Microsoft.Phone.Shell;
|
||||||
|
using PhoneXamlDirect3DApp1.Resources;
|
||||||
|
|
||||||
|
namespace PhoneXamlDirect3DApp1
|
||||||
|
{
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Provides easy access to the root frame of the Phone Application.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>The root frame of the Phone Application.</returns>
|
||||||
|
public static PhoneApplicationFrame RootFrame { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructor for the Application object.
|
||||||
|
/// </summary>
|
||||||
|
public App()
|
||||||
|
{
|
||||||
|
// Global handler for uncaught exceptions.
|
||||||
|
UnhandledException += Application_UnhandledException;
|
||||||
|
|
||||||
|
// Standard XAML initialization
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
// Phone-specific initialization
|
||||||
|
InitializePhoneApplication();
|
||||||
|
|
||||||
|
// Language display initialization
|
||||||
|
InitializeLanguage();
|
||||||
|
|
||||||
|
// Show graphics profiling information while debugging.
|
||||||
|
if (Debugger.IsAttached)
|
||||||
|
{
|
||||||
|
// Display the current frame rate counters.
|
||||||
|
Application.Current.Host.Settings.EnableFrameRateCounter = true;
|
||||||
|
|
||||||
|
// Show the areas of the app that are being redrawn in each frame.
|
||||||
|
//Application.Current.Host.Settings.EnableRedrawRegions = true;
|
||||||
|
|
||||||
|
// Enable non-production analysis visualization mode,
|
||||||
|
// which shows areas of a page that are handed off to GPU with a colored overlay.
|
||||||
|
//Application.Current.Host.Settings.EnableCacheVisualization = true;
|
||||||
|
|
||||||
|
// Prevent the screen from turning off while under the debugger by disabling
|
||||||
|
// the application's idle detection.
|
||||||
|
// Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run
|
||||||
|
// and consume battery power when the user is not using the phone.
|
||||||
|
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Code to execute when the application is launching (eg, from Start)
|
||||||
|
// This code will not execute when the application is reactivated
|
||||||
|
private void Application_Launching(object sender, LaunchingEventArgs e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Code to execute when the application is activated (brought to foreground)
|
||||||
|
// This code will not execute when the application is first launched
|
||||||
|
private void Application_Activated(object sender, ActivatedEventArgs e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Code to execute when the application is deactivated (sent to background)
|
||||||
|
// This code will not execute when the application is closing
|
||||||
|
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Code to execute when the application is closing (eg, user hit Back)
|
||||||
|
// This code will not execute when the application is deactivated
|
||||||
|
private void Application_Closing(object sender, ClosingEventArgs e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Code to execute if a navigation fails
|
||||||
|
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
|
||||||
|
{
|
||||||
|
if (Debugger.IsAttached)
|
||||||
|
{
|
||||||
|
// A navigation has failed; break into the debugger
|
||||||
|
Debugger.Break();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Code to execute on Unhandled Exceptions
|
||||||
|
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
|
||||||
|
{
|
||||||
|
if (Debugger.IsAttached)
|
||||||
|
{
|
||||||
|
// An unhandled exception has occurred; break into the debugger
|
||||||
|
Debugger.Break();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Phone application initialization
|
||||||
|
|
||||||
|
// Avoid double-initialization
|
||||||
|
private bool phoneApplicationInitialized = false;
|
||||||
|
|
||||||
|
// Do not add any additional code to this method
|
||||||
|
private void InitializePhoneApplication()
|
||||||
|
{
|
||||||
|
if (phoneApplicationInitialized)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Create the frame but don't set it as RootVisual yet; this allows the splash
|
||||||
|
// screen to remain active until the application is ready to render.
|
||||||
|
RootFrame = new PhoneApplicationFrame();
|
||||||
|
RootFrame.Navigated += CompleteInitializePhoneApplication;
|
||||||
|
|
||||||
|
// Handle navigation failures
|
||||||
|
RootFrame.NavigationFailed += RootFrame_NavigationFailed;
|
||||||
|
|
||||||
|
// Handle reset requests for clearing the backstack
|
||||||
|
RootFrame.Navigated += CheckForResetNavigation;
|
||||||
|
|
||||||
|
// Ensure we don't initialize again
|
||||||
|
phoneApplicationInitialized = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do not add any additional code to this method
|
||||||
|
private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e)
|
||||||
|
{
|
||||||
|
// Set the root visual to allow the application to render
|
||||||
|
if (RootVisual != RootFrame)
|
||||||
|
RootVisual = RootFrame;
|
||||||
|
|
||||||
|
// Remove this handler since it is no longer needed
|
||||||
|
RootFrame.Navigated -= CompleteInitializePhoneApplication;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CheckForResetNavigation(object sender, NavigationEventArgs e)
|
||||||
|
{
|
||||||
|
// If the app has received a 'reset' navigation, then we need to check
|
||||||
|
// on the next navigation to see if the page stack should be reset
|
||||||
|
if (e.NavigationMode == NavigationMode.Reset)
|
||||||
|
RootFrame.Navigated += ClearBackStackAfterReset;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ClearBackStackAfterReset(object sender, NavigationEventArgs e)
|
||||||
|
{
|
||||||
|
// Unregister the event so it doesn't get called again
|
||||||
|
RootFrame.Navigated -= ClearBackStackAfterReset;
|
||||||
|
|
||||||
|
// Only clear the stack for 'new' (forward) and 'refresh' navigations
|
||||||
|
if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// For UI consistency, clear the entire page stack
|
||||||
|
while (RootFrame.RemoveBackEntry() != null)
|
||||||
|
{
|
||||||
|
; // do nothing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
// Initialize the app's font and flow direction as defined in its localized resource strings.
|
||||||
|
//
|
||||||
|
// To ensure that the font of your application is aligned with its supported languages and that the
|
||||||
|
// FlowDirection for each of those languages follows its traditional direction, ResourceLanguage
|
||||||
|
// and ResourceFlowDirection should be initialized in each resx file to match these values with that
|
||||||
|
// file's culture. For example:
|
||||||
|
//
|
||||||
|
// AppResources.es-ES.resx
|
||||||
|
// ResourceLanguage's value should be "es-ES"
|
||||||
|
// ResourceFlowDirection's value should be "LeftToRight"
|
||||||
|
//
|
||||||
|
// AppResources.ar-SA.resx
|
||||||
|
// ResourceLanguage's value should be "ar-SA"
|
||||||
|
// ResourceFlowDirection's value should be "RightToLeft"
|
||||||
|
//
|
||||||
|
// For more info on localizing Windows Phone apps see http://go.microsoft.com/fwlink/?LinkId=262072.
|
||||||
|
//
|
||||||
|
private void InitializeLanguage()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// Set the font to match the display language defined by the
|
||||||
|
// ResourceLanguage resource string for each supported language.
|
||||||
|
//
|
||||||
|
// Fall back to the font of the neutral language if the Display
|
||||||
|
// language of the phone is not supported.
|
||||||
|
//
|
||||||
|
// If a compiler error is hit then ResourceLanguage is missing from
|
||||||
|
// the resource file.
|
||||||
|
RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage);
|
||||||
|
|
||||||
|
// Set the FlowDirection of all elements under the root frame based
|
||||||
|
// on the ResourceFlowDirection resource string for each
|
||||||
|
// supported language.
|
||||||
|
//
|
||||||
|
// If a compiler error is hit then ResourceFlowDirection is missing from
|
||||||
|
// the resource file.
|
||||||
|
FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection);
|
||||||
|
RootFrame.FlowDirection = flow;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// If an exception is caught here it is most likely due to either
|
||||||
|
// ResourceLangauge not being correctly set to a supported language
|
||||||
|
// code or ResourceFlowDirection is set to a value other than LeftToRight
|
||||||
|
// or RightToLeft.
|
||||||
|
|
||||||
|
if (Debugger.IsAttached)
|
||||||
|
{
|
||||||
|
Debugger.Break();
|
||||||
|
}
|
||||||
|
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 9.7 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 3.6 KiB |
@ -0,0 +1,14 @@
|
|||||||
|
using PhoneXamlDirect3DApp1.Resources;
|
||||||
|
|
||||||
|
namespace PhoneXamlDirect3DApp1
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Provides access to string resources.
|
||||||
|
/// </summary>
|
||||||
|
public class LocalizedStrings
|
||||||
|
{
|
||||||
|
private static AppResources _localizedResources = new AppResources();
|
||||||
|
|
||||||
|
public AppResources LocalizedResources { get { return _localizedResources; } }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,56 @@
|
|||||||
|
<phone:PhoneApplicationPage x:Class="PhoneXamlDirect3DApp1.MainPage"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
|
||||||
|
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
|
||||||
|
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
||||||
|
FontSize="{StaticResource PhoneFontSizeNormal}"
|
||||||
|
Foreground="{StaticResource PhoneForegroundBrush}"
|
||||||
|
Orientation="Portrait"
|
||||||
|
SupportedOrientations="Portrait"
|
||||||
|
shell:SystemTray.IsVisible="True"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<!-- LayoutRoot is the root grid where all page content is placed -->
|
||||||
|
<Grid x:Name="LayoutRoot" Background="Transparent">
|
||||||
|
<DrawingSurface x:Name="DrawingSurface" Loaded="DrawingSurface_Loaded" />
|
||||||
|
<StackPanel Margin="40">
|
||||||
|
<RadioButton x:Name="Normal"
|
||||||
|
Checked="RadioButton_Checked"
|
||||||
|
Content="Normal"
|
||||||
|
GroupName="Group1"
|
||||||
|
IsChecked="True" />
|
||||||
|
<RadioButton x:Name="Gray"
|
||||||
|
Checked="RadioButton_Checked"
|
||||||
|
Content="Gray"
|
||||||
|
GroupName="Group1" />
|
||||||
|
<RadioButton x:Name="Canny"
|
||||||
|
Checked="RadioButton_Checked"
|
||||||
|
Content="Canny"
|
||||||
|
GroupName="Group1" />
|
||||||
|
<RadioButton x:Name="Sepia"
|
||||||
|
Checked="RadioButton_Checked"
|
||||||
|
Content="Sepia"
|
||||||
|
GroupName="Group1" />
|
||||||
|
<RadioButton x:Name="Features"
|
||||||
|
Checked="RadioButton_Checked"
|
||||||
|
Content="Features"
|
||||||
|
GroupName="Group1" />
|
||||||
|
|
||||||
|
<StackPanel Margin="20,0,0,0" Orientation="Horizontal">
|
||||||
|
<TextBlock Text="Memory: " />
|
||||||
|
<TextBlock x:Name="MemoryTextBlock" />
|
||||||
|
<TextBlock Text=" MB" />
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Margin="20,0,0,0" Orientation="Horizontal">
|
||||||
|
<TextBlock Text="Peak Memory: " />
|
||||||
|
<TextBlock x:Name="PeakMemoryTextBlock" />
|
||||||
|
<TextBlock Text=" MB" />
|
||||||
|
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</phone:PhoneApplicationPage>
|
@ -0,0 +1,103 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using Microsoft.Phone.Controls;
|
||||||
|
using Microsoft.Phone.Shell;
|
||||||
|
using PhoneXamlDirect3DApp1Comp;
|
||||||
|
using Microsoft.Phone.Tasks;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Windows.Resources;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Microsoft.Xna.Framework.Media;
|
||||||
|
using System.Windows.Threading;
|
||||||
|
using Microsoft.Phone.Info;
|
||||||
|
|
||||||
|
namespace PhoneXamlDirect3DApp1
|
||||||
|
{
|
||||||
|
public partial class MainPage : PhoneApplicationPage
|
||||||
|
{
|
||||||
|
private Direct3DInterop m_d3dInterop = new Direct3DInterop();
|
||||||
|
private DispatcherTimer m_timer;
|
||||||
|
|
||||||
|
// Constructor
|
||||||
|
public MainPage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
m_timer = new DispatcherTimer();
|
||||||
|
m_timer.Interval = new TimeSpan(0, 0, 1);
|
||||||
|
m_timer.Tick += new EventHandler(timer_Tick);
|
||||||
|
m_timer.Start();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DrawingSurface_Loaded(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
// Set window bounds in dips
|
||||||
|
m_d3dInterop.WindowBounds = new Windows.Foundation.Size(
|
||||||
|
(float)DrawingSurface.ActualWidth,
|
||||||
|
(float)DrawingSurface.ActualHeight
|
||||||
|
);
|
||||||
|
|
||||||
|
// Set native resolution in pixels
|
||||||
|
m_d3dInterop.NativeResolution = new Windows.Foundation.Size(
|
||||||
|
(float)Math.Floor(DrawingSurface.ActualWidth * Application.Current.Host.Content.ScaleFactor / 100.0f + 0.5f),
|
||||||
|
(float)Math.Floor(DrawingSurface.ActualHeight * Application.Current.Host.Content.ScaleFactor / 100.0f + 0.5f)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Set render resolution to the full native resolution
|
||||||
|
m_d3dInterop.RenderResolution = m_d3dInterop.NativeResolution;
|
||||||
|
|
||||||
|
// Hook-up native component to DrawingSurface
|
||||||
|
DrawingSurface.SetContentProvider(m_d3dInterop.CreateContentProvider());
|
||||||
|
DrawingSurface.SetManipulationHandler(m_d3dInterop);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RadioButton_Checked(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
RadioButton rb = sender as RadioButton;
|
||||||
|
switch (rb.Name)
|
||||||
|
{
|
||||||
|
case "Normal":
|
||||||
|
m_d3dInterop.SetAlgorithm(OCVFilterType.ePreview);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Gray":
|
||||||
|
m_d3dInterop.SetAlgorithm(OCVFilterType.eGray);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Canny":
|
||||||
|
m_d3dInterop.SetAlgorithm(OCVFilterType.eCanny);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Sepia":
|
||||||
|
m_d3dInterop.SetAlgorithm(OCVFilterType.eSepia);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Features":
|
||||||
|
m_d3dInterop.SetAlgorithm(OCVFilterType.eFindFeatures);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void timer_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// These are TextBlock controls that are created in the page’s XAML file.
|
||||||
|
float value = DeviceStatus.ApplicationCurrentMemoryUsage / (1024.0f * 1024.0f) ;
|
||||||
|
MemoryTextBlock.Text = value.ToString();
|
||||||
|
value = DeviceStatus.ApplicationPeakMemoryUsage / (1024.0f * 1024.0f);
|
||||||
|
PeakMemoryTextBlock.Text = value.ToString();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
MemoryTextBlock.Text = ex.Message;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,166 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProductVersion>10.0.20506</ProductVersion>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<ProjectGuid>{CC734B3D-D8F2-4528-B223-0E7B8A4F6CC7}</ProjectGuid>
|
||||||
|
<ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>PhoneXamlDirect3DApp1</RootNamespace>
|
||||||
|
<AssemblyName>PhoneXamlDirect3DApp1</AssemblyName>
|
||||||
|
<TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
|
||||||
|
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
||||||
|
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
|
||||||
|
<SilverlightApplication>true</SilverlightApplication>
|
||||||
|
<SupportedCultures>
|
||||||
|
</SupportedCultures>
|
||||||
|
<XapOutputs>true</XapOutputs>
|
||||||
|
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
|
||||||
|
<XapFilename>PhoneXamlDirect3DApp1_$(Configuration)_$(Platform).xap</XapFilename>
|
||||||
|
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
|
||||||
|
<SilverlightAppEntry>PhoneXamlDirect3DApp1.App</SilverlightAppEntry>
|
||||||
|
<ValidateXaml>true</ValidateXaml>
|
||||||
|
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
|
||||||
|
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>Bin\Debug</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
|
||||||
|
<NoStdLib>true</NoStdLib>
|
||||||
|
<NoConfig>true</NoConfig>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>Bin\Release</OutputPath>
|
||||||
|
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
|
||||||
|
<NoStdLib>true</NoStdLib>
|
||||||
|
<NoConfig>true</NoConfig>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>Bin\x86\Debug</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
|
||||||
|
<NoStdLib>true</NoStdLib>
|
||||||
|
<NoConfig>true</NoConfig>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>Bin\x86\Release</OutputPath>
|
||||||
|
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
|
||||||
|
<NoStdLib>true</NoStdLib>
|
||||||
|
<NoConfig>true</NoConfig>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|ARM' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>Bin\ARM\Debug</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
|
||||||
|
<NoStdLib>true</NoStdLib>
|
||||||
|
<NoConfig>true</NoConfig>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|ARM' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>Bin\ARM\Release</OutputPath>
|
||||||
|
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
|
||||||
|
<NoStdLib>true</NoStdLib>
|
||||||
|
<NoConfig>true</NoConfig>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="App.xaml.cs">
|
||||||
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="LocalizedStrings.cs" />
|
||||||
|
<Compile Include="MainPage.xaml.cs">
|
||||||
|
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="Resources\AppResources.Designer.cs">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>AppResources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ApplicationDefinition Include="App.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</ApplicationDefinition>
|
||||||
|
<Page Include="MainPage.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Properties\AppManifest.xml" />
|
||||||
|
<None Include="Properties\WMAppManifest.xml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="Assets\AlignmentGrid.png" />
|
||||||
|
<Content Include="Assets\ApplicationIcon.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Assets\Tiles\FlipCycleTileLarge.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Assets\Tiles\FlipCycleTileMedium.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Assets\Tiles\FlipCycleTileSmall.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Assets\Tiles\IconicTileMediumLarge.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Assets\Tiles\IconicTileSmall.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="SplashScreenImage.jpg" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\PhoneXamlDirect3DApp1Comp\PhoneXamlDirect3DApp1Comp.vcxproj">
|
||||||
|
<Name>PhoneXamlDirect3DApp1Comp</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="Resources\AppResources.resx">
|
||||||
|
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>AppResources.Designer.cs</LastGenOutput>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
<ProjectExtensions />
|
||||||
|
</Project>
|
@ -0,0 +1,6 @@
|
|||||||
|
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
>
|
||||||
|
<Deployment.Parts>
|
||||||
|
</Deployment.Parts>
|
||||||
|
</Deployment>
|
@ -0,0 +1,37 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Resources;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("PhoneXamlDirect3DApp1")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("PhoneXamlDirect3DApp1")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2013")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("8ca838f9-f7c6-4550-9b89-59e915a2cddb")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
[assembly: NeutralResourcesLanguageAttribute("en-US")]
|
@ -0,0 +1,44 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0">
|
||||||
|
<DefaultLanguage xmlns="" code="en-US" />
|
||||||
|
<App xmlns="" ProductID="{cc734b3d-d8f2-4528-b223-0e7b8a4f6cc7}" Title="OCVImageManipulation" RuntimeType="Silverlight" Version="1.0.0.0" Genre="apps.normal" Author="Microsoft Open Technologies, Inc." Description="Sample description" Publisher="Microsoft Open Technologies, Inc." PublisherID="{4029c95e-d442-45ca-b556-33d7e3bde613}">
|
||||||
|
<IconPath IsRelative="true" IsResource="false">Assets\ApplicationIcon.png</IconPath>
|
||||||
|
<Capabilities>
|
||||||
|
<Capability Name="ID_CAP_SENSORS" />
|
||||||
|
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
|
||||||
|
<Capability Name="ID_CAP_MEDIALIB_PLAYBACK" />
|
||||||
|
<Capability Name="ID_CAP_MEDIALIB_PHOTO" />
|
||||||
|
<Capability Name="ID_CAP_MEDIALIB_AUDIO" />
|
||||||
|
<Capability Name="ID_CAP_NETWORKING" />
|
||||||
|
<Capability Name="ID_CAP_ISV_CAMERA" />
|
||||||
|
</Capabilities>
|
||||||
|
<Tasks>
|
||||||
|
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
|
||||||
|
</Tasks>
|
||||||
|
<Tokens>
|
||||||
|
<PrimaryToken TokenID="PhoneXamlDirect3DApp1Token" TaskName="_default">
|
||||||
|
<TemplateFlip>
|
||||||
|
<SmallImageURI IsRelative="true" IsResource="false">Assets\Tiles\FlipCycleTileSmall.png</SmallImageURI>
|
||||||
|
<Count>0</Count>
|
||||||
|
<BackgroundImageURI IsRelative="true" IsResource="false">Assets\Tiles\FlipCycleTileMedium.png</BackgroundImageURI>
|
||||||
|
<Title>OCVImageManipulation</Title>
|
||||||
|
<BackContent>
|
||||||
|
</BackContent>
|
||||||
|
<BackBackgroundImageURI>
|
||||||
|
</BackBackgroundImageURI>
|
||||||
|
<BackTitle>
|
||||||
|
</BackTitle>
|
||||||
|
<DeviceLockImageURI>
|
||||||
|
</DeviceLockImageURI>
|
||||||
|
<HasLarge>
|
||||||
|
</HasLarge>
|
||||||
|
</TemplateFlip>
|
||||||
|
</PrimaryToken>
|
||||||
|
</Tokens>
|
||||||
|
<ScreenResolutions>
|
||||||
|
<ScreenResolution Name="ID_RESOLUTION_WVGA" />
|
||||||
|
<ScreenResolution Name="ID_RESOLUTION_WXGA" />
|
||||||
|
<ScreenResolution Name="ID_RESOLUTION_HD720P" />
|
||||||
|
</ScreenResolutions>
|
||||||
|
</App>
|
||||||
|
</Deployment>
|