platform/upstream/opencv.git
9 years agoget rid of cuda.h usage
Vladislav Vinogradov [Tue, 25 Nov 2014 15:29:56 +0000 (18:29 +0300)]
get rid of cuda.h usage
(cherry picked from commit eeb997261d1d22e8c69af777c86e21cce2d04f87)

9 years agoFix uninitialized memory reads and memory leaks in StereoGC
Roman Donchenko [Wed, 12 Nov 2014 14:00:08 +0000 (17:00 +0300)]
Fix uninitialized memory reads and memory leaks in StereoGC

(cherry picked from commit 7d8e5f623a9f1f971c45aa4912dc4679f5165f43)

9 years agosuperres: Fix \ 1\ 1return value VideoFrameSource_GPU
Vicente Olivert Riera [Mon, 27 Oct 2014 13:39:35 +0000 (13:39 +0000)]
superres: Fix \ 1\ 1return value VideoFrameSource_GPU

superres module fails to compile with the following error messages:

[100%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/super_resolution.cpp.o
/opencv-2.4.10/modules/superres/src/frame_source.cpp: In function 'cv::Ptr<cv::superres::FrameSource> cv::superres::createFrameSource_Video_GPU(const string&)':
/opencv-2.4.10/modules/superres/src/frame_source.cpp:263:16: error: expected type-specifier before 'VideoFrameSource'
/opencv-2.4.10/modules/superres/src/frame_source.cpp:263:16: error: could not convert '(int*)operator new(4ul)' from 'int*' to 'cv::Ptr<cv::superres::FrameSource>'
/opencv-2.4.10/modules/superres/src/frame_source.cpp:263:16: error: expected ';' before 'VideoFrameSource'
/opencv-2.4.10/modules/superres/src/frame_source.cpp:263:41: error: 'VideoFrameSource' was not declared in this scope
/opencv-2.4.10/modules/superres/src/frame_source.cpp:264:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make[3]: *** [modules/superres/CMakeFiles/opencv_superres.dir/src/frame_source.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....

This is caused because the return value of the \ 1createFrameSource_Video_GPU function should be a VideoFrameSource_GPU object.
(cherry picked from commit 2e393ab83362743ba1825ad4b31d4a2925c606b4)

9 years agofix installation layout for debian packages:
Vladislav Vinogradov [Fri, 17 Oct 2014 09:23:23 +0000 (13:23 +0400)]
fix installation layout for debian packages:

Install symlinks to shared libraries as a part of development package,
not runtime package.

It is default behavior for debian packages.
(cherry picked from commit f55c1cc0fb390f88c91557cb443e932f459c5849)

9 years agoVersion++.
Alexander Smorkalov [Wed, 5 Nov 2014 05:46:55 +0000 (08:46 +0300)]
Version++.

9 years agominor fix for StereoCSBP data cost compute kernel and test
Vladislav Vinogradov [Thu, 23 Oct 2014 15:33:19 +0000 (19:33 +0400)]
minor fix for StereoCSBP data cost compute kernel and test

(cherry picked from commit 84f33d0578d3a836c8384608363ef5e2c24030fa)

9 years agoincrease epsilons for some tests, which functions use floating point arithm
Vladislav Vinogradov [Thu, 23 Oct 2014 14:39:36 +0000 (18:39 +0400)]
increase epsilons for some tests, which functions use floating point arithm

(cherry picked from commit 5c07e0b6d3f120c964ce8fac58bd2ab0ede96562)

9 years agoavoid pointer arithmetic on register memory in color conversion
Vladislav Vinogradov [Thu, 23 Oct 2014 14:09:49 +0000 (18:09 +0400)]
avoid pointer arithmetic on register memory in color conversion

(cherry picked from commit e0827069c1c242ad9fceede43c642f8dfad0ef99)

9 years agoMerge pull request #3288 from StevenPuttemans:fix_ts_dependencies
Andrey Pavlenko [Wed, 1 Oct 2014 07:33:36 +0000 (07:33 +0000)]
Merge pull request #3288 from StevenPuttemans:fix_ts_dependencies

9 years agoMerge pull request #3281 from a-wi:MSMF_remove_ATL_dependency
Andrey Pavlenko [Wed, 1 Oct 2014 07:26:25 +0000 (07:26 +0000)]
Merge pull request #3281 from a-wi:MSMF_remove_ATL_dependency

9 years agoMerge pull request #3290 from asmorkalov:android_disable_fisheye.rectify_for_tegra
Andrey Pavlenko [Wed, 1 Oct 2014 07:26:04 +0000 (07:26 +0000)]
Merge pull request #3290 from asmorkalov:android_disable_fisheye.rectify_for_tegra

9 years agoMerge pull request #3291 from asmorkalov:android_superres_video_check
Andrey Pavlenko [Wed, 1 Oct 2014 07:25:15 +0000 (07:25 +0000)]
Merge pull request #3291 from asmorkalov:android_superres_video_check

9 years agoTurn off superres accuracy tests if video i/o is not supported.
Alexander Smorkalov [Wed, 1 Oct 2014 05:13:35 +0000 (09:13 +0400)]
Turn off superres accuracy tests if video i/o is not supported.

9 years agoMerge pull request #3275 from asmorkalov:ocv_gstreamer_backport
Roman Donchenko [Tue, 30 Sep 2014 15:55:26 +0000 (15:55 +0000)]
Merge pull request #3275 from asmorkalov:ocv_gstreamer_backport

9 years agoMerge pull request #3285 from asmorkalov:android_servive_big.little_fix
Roman Donchenko [Tue, 30 Sep 2014 15:19:07 +0000 (15:19 +0000)]
Merge pull request #3285 from asmorkalov:android_servive_big.little_fix

9 years agoMerge pull request #3287 from asmorkalov:android_manager_version_inc5
Roman Donchenko [Tue, 30 Sep 2014 14:44:35 +0000 (14:44 +0000)]
Merge pull request #3287 from asmorkalov:android_manager_version_inc5

9 years agoOpenCV Manager hardware detector workaround for not detected ARM SoC support.
Alexander Smorkalov [Mon, 16 Jun 2014 04:39:03 +0000 (08:39 +0400)]
OpenCV Manager hardware detector workaround for not detected ARM SoC support.

9 years agoMerge pull request #3282 from asmorkalov:android_exclude_ocl
Maksim Shabunin [Tue, 30 Sep 2014 10:53:16 +0000 (10:53 +0000)]
Merge pull request #3282 from asmorkalov:android_exclude_ocl

9 years agoTest fisheye.rectify disabled for Tegra.
Alexander Smorkalov [Tue, 30 Sep 2014 10:34:00 +0000 (14:34 +0400)]
Test fisheye.rectify disabled for Tegra.

9 years agofixing dependencies
StevenPuttemans [Tue, 30 Sep 2014 09:53:46 +0000 (11:53 +0200)]
fixing dependencies

9 years agoHighgui_Video.prop_fps disabled as fails with FFmpeg in Ubuntu 14.04.
Alexander Smorkalov [Tue, 30 Sep 2014 09:35:19 +0000 (13:35 +0400)]
Highgui_Video.prop_fps disabled as fails with FFmpeg in Ubuntu 14.04.

9 years agoGStreamer 1.0 backport from master branch.
Alexander Smorkalov [Tue, 23 Sep 2014 15:02:37 +0000 (19:02 +0400)]
GStreamer 1.0 backport from master branch.

9 years agoOpenCV Manager version++.
Alexander Smorkalov [Tue, 30 Sep 2014 08:05:46 +0000 (12:05 +0400)]
OpenCV Manager version++.

9 years agoRemove ATL dependency from MSMF capture code
Artur Wieczorek [Tue, 23 Sep 2014 17:31:55 +0000 (19:31 +0200)]
Remove ATL dependency from MSMF capture code

Use _com_ptr_t instead of CComPtr in ComPtr wrapper to avoid ATL dependency.

9 years agoExclude OpenCL tests from default test list for Android as they are experimental.
Alexander Smorkalov [Mon, 29 Sep 2014 16:42:24 +0000 (20:42 +0400)]
Exclude OpenCL tests from default test list for Android as they are experimental.

9 years agoMerge pull request #3263 from asmorkalov:python_tests_package_lintian
Roman Donchenko [Mon, 29 Sep 2014 14:53:02 +0000 (14:53 +0000)]
Merge pull request #3263 from asmorkalov:python_tests_package_lintian

9 years agoAdded implicit dependency from python and python-py to debian packages.
Alexander Smorkalov [Wed, 24 Sep 2014 10:23:52 +0000 (14:23 +0400)]
Added implicit dependency from python and python-py to debian packages.

9 years agoMerge pull request #3272 from mgeorg:reset_ffmpeg_mutex_2_4
Maksim Shabunin [Mon, 29 Sep 2014 12:07:22 +0000 (12:07 +0000)]
Merge pull request #3272 from mgeorg:reset_ffmpeg_mutex_2_4

9 years agoMerge pull request #3266 from mshabunin:arm_warning
Vadim Pisarevsky [Sat, 27 Sep 2014 13:06:44 +0000 (13:06 +0000)]
Merge pull request #3266 from mshabunin:arm_warning

9 years agoMerge pull request #3260 from a-wi:MSMF_file_error
Vadim Pisarevsky [Sat, 27 Sep 2014 13:06:18 +0000 (13:06 +0000)]
Merge pull request #3260 from a-wi:MSMF_file_error

9 years agoset ffmpeg mutex to NULL on destruction.
Manfred Georg [Fri, 26 Sep 2014 16:44:25 +0000 (09:44 -0700)]
set ffmpeg mutex to NULL on destruction.

The Mutex manager registered with ffmpeg must reset the mutex to NULL after destruction, otherwise ffmpeg will give the invalid mutex to the next mutex manager when it asks it to CREATE a new mutex.
See ffmpeg code: http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/utils.c;h=28c5785398fcf11a3d3c70a8cd09e9df798e2734;hb=HEAD#l3423

Cherry picked from head (file has moved but issue is the same).
Conflicts:
modules/videoio/src/cap_ffmpeg_impl.hpp

9 years agoFixed warning during cross compile for ARM
Maksim Shabunin [Wed, 24 Sep 2014 13:53:23 +0000 (17:53 +0400)]
Fixed warning during cross compile for ARM

9 years agoMerge pull request #3261 from a-wi:CMake_FFMPEG_config
Vadim Pisarevsky [Wed, 24 Sep 2014 17:03:08 +0000 (17:03 +0000)]
Merge pull request #3261 from a-wi:CMake_FFMPEG_config

9 years agoMerge pull request #3262 from StevenPuttemans:fix_window_param
Vadim Pisarevsky [Wed, 24 Sep 2014 12:22:20 +0000 (12:22 +0000)]
Merge pull request #3262 from StevenPuttemans:fix_window_param

9 years agofixing some wrong CPP prefixes - still old interface
StevenPuttemans [Wed, 24 Sep 2014 07:33:22 +0000 (09:33 +0200)]
fixing some wrong CPP prefixes - still old interface

9 years agoUse FFMPEG capture only if HAVE_FFMPEG flag is defined.
Artur Wieczorek [Tue, 23 Sep 2014 21:48:37 +0000 (23:48 +0200)]
Use FFMPEG capture only if HAVE_FFMPEG flag is defined.

9 years agoFixed CMake issue with FFMPEG highgui configuration
Artur Wieczorek [Tue, 23 Sep 2014 20:06:12 +0000 (22:06 +0200)]
Fixed CMake issue with FFMPEG highgui configuration

Currently, FFMPEG source files are included in highgui project file regardless of CMake WITH_FFMPEG option.
After applying this PR FFMPEG files are included only if WITH_FFMPEG option is enabled.

9 years agoFixed MSMF file capture error while opening the file containing unsupported video...
Artur Wieczorek [Sat, 26 Apr 2014 08:12:37 +0000 (10:12 +0200)]
Fixed MSMF file capture error while opening the file containing unsupported video stream format

9 years agoMerge pull request #3255 from bhack:fix_cuda_macosx
Vadim Pisarevsky [Tue, 23 Sep 2014 15:40:22 +0000 (15:40 +0000)]
Merge pull request #3255 from bhack:fix_cuda_macosx

9 years agoFix for bug #3469 CV_XADD failing in clang+nvcc combination
bhack [Tue, 23 Sep 2014 10:39:16 +0000 (12:39 +0200)]
Fix for bug #3469 CV_XADD failing in clang+nvcc combination

Taken from 3f0765523113ae7fc1b300f27dd78c642bb2b6c7

9 years agoMerge pull request #3251 from a-wi:MSMF_camera_errors
Vadim Pisarevsky [Tue, 23 Sep 2014 08:42:57 +0000 (08:42 +0000)]
Merge pull request #3251 from a-wi:MSMF_camera_errors

9 years agoMerge pull request #3244 from tstellarAMD:2.4-ocl-inline-fix-v2
Vadim Pisarevsky [Tue, 23 Sep 2014 07:19:38 +0000 (07:19 +0000)]
Merge pull request #3244 from tstellarAMD:2.4-ocl-inline-fix-v2

9 years agoMerge pull request #3190 from StevenPuttemans:fix_simpleblobdetector
Vadim Pisarevsky [Tue, 23 Sep 2014 07:18:00 +0000 (07:18 +0000)]
Merge pull request #3190 from StevenPuttemans:fix_simpleblobdetector

9 years agoFixing errors
StevenPuttemans [Mon, 22 Sep 2014 20:12:27 +0000 (22:12 +0200)]
Fixing errors

9 years agoFixed assertion warning in MSMF frame grabber
Artur Wieczorek [Mon, 22 Sep 2014 17:38:04 +0000 (19:38 +0200)]
Fixed assertion warning in MSMF frame grabber

9 years agoFixed MSMF video capture initialization
Artur Wieczorek [Mon, 22 Sep 2014 17:35:36 +0000 (19:35 +0200)]
Fixed MSMF video capture initialization

9 years agoMerge pull request #3247 from a-wi:CMake_MSMF_configuration
Vadim Pisarevsky [Mon, 22 Sep 2014 15:31:09 +0000 (15:31 +0000)]
Merge pull request #3247 from a-wi:CMake_MSMF_configuration

9 years agoMerge pull request #3243 from a-wi:MSMF_linking_error
Vadim Pisarevsky [Mon, 22 Sep 2014 15:29:32 +0000 (15:29 +0000)]
Merge pull request #3243 from a-wi:MSMF_linking_error

9 years agofix blobdetector
StevenPuttemans [Thu, 4 Sep 2014 14:17:51 +0000 (16:17 +0200)]
fix blobdetector

9 years agoCMake configuration for MSMF capture
Artur Wieczorek [Sun, 21 Sep 2014 16:48:54 +0000 (18:48 +0200)]
CMake configuration for MSMF capture

9 years agoFix linking error under Win 7 - do not import MinCore_Downlevel.lib if target is...
Artur Wieczorek [Fri, 19 Sep 2014 20:46:09 +0000 (22:46 +0200)]
Fix linking error under Win 7 - do not import MinCore_Downlevel.lib if target is Win 7 or earlier.

9 years agoocl: Don't use 'inline' attribute on functions
Tom Stellard [Tue, 4 Mar 2014 20:48:07 +0000 (12:48 -0800)]
ocl: Don't use 'inline' attribute on functions

In C99 'inline' is not a hint to the compiler to inline the function,
it is an attribute that affects the linkage of the function.  'inline'
functions are required to have a definition in a different compiliation
unit, so compilers are free to delete 'inline' functions if they want to.

This issue can be seen in Clang when compiling at -O0.  Clang
will sometimes delete 'inline' functions which creates an invalid
program.

Issue 3746: http://code.opencv.org/issues/3746

9 years agoMerge pull request #3240 from a-wi:MSMF_compilation_errors
Vadim Pisarevsky [Fri, 19 Sep 2014 17:36:13 +0000 (17:36 +0000)]
Merge pull request #3240 from a-wi:MSMF_compilation_errors

9 years agoMerge pull request #3241 from WilhelmHannemann:bugfix_brute_force_match_cl
Vadim Pisarevsky [Fri, 19 Sep 2014 17:35:07 +0000 (17:35 +0000)]
Merge pull request #3241 from WilhelmHannemann:bugfix_brute_force_match_cl

9 years agoFixed compilation errors under VS 2010 and Win 7
Artur Wieczorek [Fri, 19 Sep 2014 12:49:40 +0000 (14:49 +0200)]
Fixed compilation errors under VS 2010 and Win 7

9 years agoMerge branch 'bugfix_brute_force_match_cl' of https://github.com/WilhelmHannemann...
WilhelmHannemann [Fri, 19 Sep 2014 14:42:59 +0000 (16:42 +0200)]
Merge branch 'bugfix_brute_force_match_cl' of https://github.com/WilhelmHannemann/opencv into bugfix_brute_force_match_cl

9 years agoBugfix brute_force_match.cl (see http://code.opencv.org/issues/2837): wrong results...
WilhelmHannemann [Fri, 19 Sep 2014 14:31:11 +0000 (16:31 +0200)]
Bugfix brute_force_match.cl (see code.opencv.org/issues/2837): wrong results for non-float descriptors in OpenCL BruteForceMatcher

9 years agoBugfix brute_force_match.cl (Bug #2837): wrong results for non-float descriptors...
WilhelmHannemann [Fri, 19 Sep 2014 14:31:11 +0000 (16:31 +0200)]
Bugfix brute_force_match.cl (Bug #2837): wrong results for non-float descriptors in OpenCL BruteForceMatcher

9 years agoMerge pull request #3238 from vpisarev:bfmatcher_fix
Vadim Pisarevsky [Fri, 19 Sep 2014 13:21:05 +0000 (13:21 +0000)]
Merge pull request #3238 from vpisarev:bfmatcher_fix

9 years agoMerge branch 'bug_3172' of https://github.com/elmarb/opencv into bfmatcher_fix;
Vadim Pisarevsky [Fri, 19 Sep 2014 11:31:21 +0000 (15:31 +0400)]
Merge branch 'bug_3172' of https://github.com/elmarb/opencv into bfmatcher_fix;
use different fix for the problem, embedded right into the BFMatcher.

9 years agofix for bug 3172
E Braun [Tue, 2 Sep 2014 16:05:23 +0000 (18:05 +0200)]
fix for bug 3172

9 years agoRevert "fix for bug 3172"
E Braun [Tue, 2 Sep 2014 11:56:13 +0000 (13:56 +0200)]
Revert "fix for bug 3172"

This reverts commit ed2cdb71e5821db85b57cf60d88689c2bf32aeeb.

9 years agofix for bug 3172
E Braun [Thu, 31 Jul 2014 22:17:56 +0000 (00:17 +0200)]
fix for bug 3172

9 years agoregression test for bug 3172
E Braun [Thu, 31 Jul 2014 22:16:58 +0000 (00:16 +0200)]
regression test for bug 3172

9 years agoMerge pull request #3235 from Atanahel:gbt_bugfix
Vadim Pisarevsky [Fri, 19 Sep 2014 09:42:00 +0000 (09:42 +0000)]
Merge pull request #3235 from Atanahel:gbt_bugfix

9 years agoMerge pull request #3236 from vpisarev:fix_traincascade
Vadim Pisarevsky [Thu, 18 Sep 2014 17:45:28 +0000 (17:45 +0000)]
Merge pull request #3236 from vpisarev:fix_traincascade

9 years agoCheck sure that we're not already below required leaf false alarm rate before continu...
Stephen Mell [Thu, 26 Jun 2014 18:28:47 +0000 (10:28 -0800)]
Check sure that we're not already below required leaf false alarm rate before continuing to get negative samples.

9 years agoFixing a line where integer data was treated as floating point data.
Benoit Seguin [Thu, 18 Sep 2014 12:03:13 +0000 (14:03 +0200)]
Fixing a line where integer data was treated as floating point data.

9 years agoMerge pull request #2711 from GregoryMorse:patch-5
Vadim Pisarevsky [Thu, 18 Sep 2014 11:28:58 +0000 (11:28 +0000)]
Merge pull request #2711 from GregoryMorse:patch-5

9 years agoMerge pull request #3212 from mshabunin:python_cross_build_2.4
Vadim Pisarevsky [Thu, 18 Sep 2014 08:57:32 +0000 (08:57 +0000)]
Merge pull request #3212 from mshabunin:python_cross_build_2.4

9 years agoMerge pull request #2047 from GregoryMorse:patch-4
Vadim Pisarevsky [Wed, 17 Sep 2014 12:48:44 +0000 (12:48 +0000)]
Merge pull request #2047 from GregoryMorse:patch-4

9 years agoMerge pull request #3222 from dmitrygribanov:dg/2.4-stitching-wave-correction-bugfix
Vadim Pisarevsky [Wed, 17 Sep 2014 10:54:02 +0000 (10:54 +0000)]
Merge pull request #3222 from dmitrygribanov:dg/2.4-stitching-wave-correction-bugfix

9 years agoMerge pull request #3225 from jormansa:bug_#3631
Vadim Pisarevsky [Wed, 17 Sep 2014 10:40:42 +0000 (10:40 +0000)]
Merge pull request #3225 from jormansa:bug_#3631

9 years agoMerge pull request #3228 from PhilLab:patch-4
Vadim Pisarevsky [Wed, 17 Sep 2014 09:50:08 +0000 (09:50 +0000)]
Merge pull request #3228 from PhilLab:patch-4

9 years agoDoc: Fixing indentation
Philipp Hasper [Wed, 17 Sep 2014 07:30:19 +0000 (09:30 +0200)]
Doc: Fixing indentation

9 years agobug fixed
jormansa [Mon, 15 Sep 2014 16:09:44 +0000 (18:09 +0200)]
bug fixed

9 years agoMerge pull request #3219 from mshabunin:png_iccp_strip_24
Andrey Pavlenko [Mon, 15 Sep 2014 13:54:19 +0000 (13:54 +0000)]
Merge pull request #3219 from mshabunin:png_iccp_strip_24

9 years agoFeature based stitching's wave correction bugfix.
Dmitry Gribanov [Mon, 15 Sep 2014 13:04:08 +0000 (17:04 +0400)]
Feature based stitching's wave correction bugfix.

When we have similar matrices in input, then algorithm returns matrices
with NaN values.

9 years agoMerge pull request #3221 from asmorkalov:ocv_2.4.10_version_inc
Alexander Alekhin [Mon, 15 Sep 2014 11:12:02 +0000 (11:12 +0000)]
Merge pull request #3221 from asmorkalov:ocv_2.4.10_version_inc

9 years agoOpenCV version++.
Alexander Smorkalov [Mon, 15 Sep 2014 10:55:25 +0000 (14:55 +0400)]
OpenCV version++.

9 years agoStripped iCCP chunk from png files
Maksim Shabunin [Mon, 15 Sep 2014 08:48:28 +0000 (12:48 +0400)]
Stripped iCCP chunk from png files

9 years agoMerge pull request #3204 from parafin:ximea_unix-2.4
Vadim Pisarevsky [Sun, 14 Sep 2014 18:44:23 +0000 (18:44 +0000)]
Merge pull request #3204 from parafin:ximea_unix-2.4

9 years agoMerge pull request #3202 from parafin:bug_3858-2.4
Vadim Pisarevsky [Sun, 14 Sep 2014 18:43:48 +0000 (18:43 +0000)]
Merge pull request #3202 from parafin:bug_3858-2.4

9 years agoChanged cmake python library search startegy for crosscompiling
Maksim Shabunin [Thu, 4 Sep 2014 12:28:11 +0000 (16:28 +0400)]
Changed cmake python library search startegy for crosscompiling

9 years agoAdd support for WinRT in the MF capture framework by removing the disallowed calls...
GregoryMorse [Sat, 14 Dec 2013 08:53:30 +0000 (16:53 +0800)]
Add support for WinRT in the MF capture framework by removing the disallowed calls to enumerate devices and create a sample grabber sink and adding framework for the MediaCapture interface and a custom sink which interfaces with the sample grabber callback interface. The change requires discussion for making it completely functional as redundancy is required given that if the source is a video file, the old code pathways must be used. Otherwise all IMFMediaSession, IMFMediaSource, and IMFActivate code must use a MediaCapture code path and all sink code must use the CMediaSink custom sink.

Support for the custom sink is extended to non-WinRT not for compatibility as Windows Vista client is a minimum regardless, but because it offers more flexibility, could be faster and is able to be used as an optionally different code path during sink creation based on a future configuration parameter.

My discussion and proposal to finish this change:
 Devices are so easily enumerated through WinRT Windows.Devices namespace that wrapping the calls in a library is quite a chore for little benefit though to get the various modes and formats could still be a worthwhile project. For now conditional compilation to remove videodevices and any offending non-video file related activity in videodevice. In my opinion, this is a different , far less fundamental and important change which can possibly be done as a future project and also much more easily implemented in C++/CX.

ImageGrabber has the IMFSampleGrabberSinkCallback replaced with a base class (SharedSampleGrabber) which also be is base class for ImageGrabberRT. This change is necessary as the custom sink does not require a thread to pump events which is done through MediaCapture already. IMFSampleGrabberSinkCallback is the common element between both models and that piece can be shared. Initializing the new ImageGrabberRT is as simple as passing an already initialized MediaCapture object and any video format/encoding parameters.

The concurrency event is necessary to wait for completion and is the way the underlying, IAsyncAction wrappers in the task library work as well. Native WIN32 event objects would be an option if HAVE_CONCURRENCY is not defined. I could even imagine doing it with sleep/thread yield and InterlockedCompareExchange yet I am not enthusiastic about that approach either. Since there is a specific compiler HAVE_ for concurrency, I do not like pulling it in though I think for WinRT it is safe to say we will always have it available though should probably conditionally compile with the Interlocked option as WIN32 events would require HAVE_WIN32.

It looks like C++/CX cannot be used for the IMediaExtension sink (which should not be a problem) as using COM objects requires WRL and though deriving from IMediaExtension can be done, there is little purpose without COM. Objects from C++/CX can be swapped to interact with objects from native C++ as Inspectable* can reinterpret_cast to the ref object IInspectable^ and vice-versa. A solution to the COM class with C++/CX would be great so we could have dual support. Also without #define for every WRL object in use, the code will get quite muddy given that the */^ would need to be ifdef'd everywhere.

Update cap_msmf.cpp

Fixed bugs and completed the change.  I believe the new classes need to be moved to a header file as the file has become to large and more classes need to be added for handling all the asynchronous problems (one wrapping IAsyncAction in a task and another for making a task out of IAsyncAction).  Unfortunately, blocking on the UI thread is not an option in WinRT so a synchronous architecture is considered "illegal" by Microsoft's standards even if implementable (C++/CX ppltasks library throws errors if you try it).  Worse, either by design or a bug in the MF MediaCapture class with Custom Sinks causes a crash if stop/start previewing without reinitializing (spPreferredPreviewMediaType is fatally nulled).  After decompiling Windows.Media.dll, I worked around this in my own projects by using an activate-able custom sink ID which strangely assigns 1 to this pointer allowing it to be reinitialized in what can only be described as a hack by Microsoft.  This would add additional overhead to the project to implement especially for static libraries as it requires IDL/DLL exporting followed by manifest declaration.  Better to document that it is not supported.

Furthermore, an additional class for IMFAttributes should be implemented to make clean architecture for passing around attributes as opposed to directly calling non-COM interface calls on the objects and making use of SetProperties which would also be a set up for an object that uses the RuntimeClass activation ID.

The remaining changes are not difficult and will be complete soon along with debug tracing messages.

Update and rename cap_msmf.h to cap_msmf.hpp

Successful test - samples are grabbed

Library updated and cleaned up with comments, marshaling, exceptions and linker settings
Fixed trailing whitespace

VS 2013 support and cleanup consistency plus C++/CX new object fixed

VS 2013 Update 2 library bug fix integrated

Various minor cleanup

Create agile_wrl.h

a-wi's changes integrated

Update cap_msmf.hpp

Update cap_msmf.cpp

Regression test fixes and simplifications

9 years agoAdd VS2013 support
GregoryMorse [Thu, 8 May 2014 10:06:06 +0000 (18:06 +0800)]
Add VS2013 support

Fix indentation in output that made it look like changes were dependent on WinRT when they are independent libraries.

Defaults needed flipping otherwise undesired behavior.  Change is tested with combinations.

Fixed and tested

Windows Phone v8.0/v8.1 SDK for Universal Windows Apps (Windows Phone v8.1 Silverlight App support not included) and fix initial cache causing problem

9 years agoXIMEA cam support: allow on OS X too
Igor Kuzmin [Tue, 9 Sep 2014 15:17:13 +0000 (19:17 +0400)]
XIMEA cam support: allow on OS X too

9 years agoXIMEA cam support: use correct library for 64 bit Linux
Igor Kuzmin [Tue, 9 Sep 2014 15:15:03 +0000 (19:15 +0400)]
XIMEA cam support: use correct library for 64 bit Linux

9 years agofix for issue 3858 (remove unneeded #include's)
Igor Kuzmin [Tue, 9 Sep 2014 15:10:05 +0000 (19:10 +0400)]
fix for issue 3858 (remove unneeded #include's)

also use correct include path on Linux

9 years agoMerge pull request #3194 from stonier:2.4
Vadim Pisarevsky [Tue, 9 Sep 2014 06:33:15 +0000 (06:33 +0000)]
Merge pull request #3194 from stonier:2.4

9 years agoMerge pull request #3197 from asmorkalov:python_tests_package
Vadim Pisarevsky [Tue, 9 Sep 2014 06:31:17 +0000 (06:31 +0000)]
Merge pull request #3197 from asmorkalov:python_tests_package

9 years agoPython tests added to -tests deb package.
Alexander Smorkalov [Mon, 8 Sep 2014 14:11:12 +0000 (18:11 +0400)]
Python tests added to -tests deb package.

9 years agomake sure children are included in the moveToThread
Daniel Stonier [Sun, 7 Sep 2014 19:31:37 +0000 (04:31 +0900)]
make sure children are included in the moveToThread

9 years agosupport invokation of cv windows from parallel threads to an external qt application.
Daniel Stonier [Sun, 7 Sep 2014 18:19:56 +0000 (03:19 +0900)]
support invokation of cv windows from parallel threads to an external qt application.

9 years agoMerge pull request #3156 from sergregory:CreateSamplesMod
Roman Donchenko [Fri, 5 Sep 2014 09:49:54 +0000 (09:49 +0000)]
Merge pull request #3156 from sergregory:CreateSamplesMod

9 years agoWarning on converting int to bool fixed
Grigory Serebryakov [Fri, 5 Sep 2014 07:27:43 +0000 (11:27 +0400)]
Warning on converting int to bool fixed

9 years agoInclude for cvSameImage corrected
Grigory Serebryakov [Fri, 5 Sep 2014 06:45:54 +0000 (10:45 +0400)]
Include for cvSameImage corrected

9 years agofix for bug 3172
E Braun [Tue, 2 Sep 2014 16:05:23 +0000 (18:05 +0200)]
fix for bug 3172

9 years agoRevert "fix for bug 3172"
E Braun [Tue, 2 Sep 2014 11:56:13 +0000 (13:56 +0200)]
Revert "fix for bug 3172"

This reverts commit ed2cdb71e5821db85b57cf60d88689c2bf32aeeb.

9 years agoDocumentation update: createsamples usage
Grigory Serebryakov [Tue, 2 Sep 2014 06:55:45 +0000 (10:55 +0400)]
Documentation update: createsamples usage