Applied fix mentioned in bugreport 3370. Seems to solve the issue.
fixed comparison to stop integer wrap around
fixed compilation with CUDA 6.0:

GpuMat::setTo function, removed NPP call for CV_8S
fix gpu test for Demosaicing:

check that input images was loaded correctly
added additional check in cv::gpu::demosaicing that source is not empty
Fixed the "platfrom" typo everywhere.
Fixed a -Wundef warning in cl_platform.h.

_MSC_VER -> defined _MSC_VER. Fixes building with MinGW.
Similar to fbc91c5ee.
ocl: try to disable clFinish workaround
Merge pull request #1915 from jet47:gpu-color-test-fix
Merge pull request #1919 from SpecLad:platfrom
Merge pull request #1921 from SpecLad:defined-msc-ver
Add OpenCL SVM paths for bagofwords_classification and points_classifier samples.
Add Macro to decide using ocl method or not.
Modify default setting, using ocl method when have ocl module
Merge pull request #1924 from ilya-lavrenov:svm
fixed cv::remap and cv::convertMaps for map types CV_16SC2 && CV_16UC1
Fixed little issue with mouse callback refering to issue 3409. Was using round instead of floor.
Fixed some implicitly type conversions between vector and scalar data type.

There are some mixed implicitly/explicitly type conversion between
scalar and vector. Although the spec allows those conversion, I prefer
to make them consistent and use explicitly all the cases.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
facedetect
multithreading facedetector