sse2 hog
Fix build of ffmpeg wrapper with some versions of avutil
calib3d model superscript should be subscript
Extract common base header for C and C++ APIs
Fix for encoding errors when building Java source

The generated OpenCV Java source can contain characters outside of ASCII on some systems – this patch allows the ant task to compile them.
Unified handling of InputOutputArrays in Python wrapper generator

This makes arguments of type InputOutputArray required in python unless they
have a default value in C++.

As result following python functions changes signatures in non-trivial way:

* calcOpticalFlowFarneback
* calcOpticalFlowPyrLK
* calibrateCamera
* findContours
* findTransformECC
* floodFill
* kmeans
* PCACompute
* stereoCalibrate

And the following functions become return their modified inputs as a return
value:

* accumulate
* accumulateProduct
* accumulateSquare
* accumulateWeighted
* circle
* completeSymm
* cornerSubPix
* drawChessboardCorners
* drawContours
* drawDataMatrixCodes
* ellipse
* fillConvexPoly
* fillPoly
* filterSpeckles
* grabCut
* insertChannel
* line
* patchNaNs
* polylines
* randn
* randShuffle
* randu
* rectangle
* setIdentity
* updateMotionHistory
* validateDisparity
* watershed
Merge pull request #647 from taka-no-me:fix_ffmpeg_wrapper
fix cuda
fixed compilation for vs2008
Merge pull request #659 from Nerei:master
merge Detection structure for CPU and GPU soft cascade detectors
refactor cpp files naming
	Added Affine3<T> class
Merge pull request #653 from jbohren-forks:master
Merge pull request #650 from taka-no-me:cvdef
Merge pull request #658 from Nerei:affine3_classes
fix win warnings
Merge pull request #661 from cuda-geek:merge-cpu-gpu-detections
Merge pull request #636 from ilya-lavrenov:SSE2_HOG
Merge pull request #654 from fish2000:patch-1