minX1 should be max(-maxD,0) not max(maxD,0), avoid black band at left
Reworked documentation building to work with extra modules.

The main problem with extra modules is that they're located outside
of the OpenCV root, while Sphinx requires that all documents are
within the documentation root. To circumvent this, we create a
"fake root" and copy all documentation (as well as all files that
it depends on) there. It's a bit messy, but what can you do.

As a bonus, this eliminates the need to generate modules/refman.rst
inside the source tree.
added RGBA <-> mRGBA
Made the generated file templates' naming more consistent.

The general convention is <output file name> + ".in".
Merge pull request #1803 from ilya-lavrenov:ocl_cvtColor
Merge pull request #1802 from SpecLad:cmake-templates
generalized ocl::resize for all data types (INTER_NEAREST mode)
compilation for VS2008
fixed some warnings
Applied all fixes related to translating C to C++ code
Also fixed some typos and code alignment
Also adapted tutorial CPP samples
Fixed some identation problems
Merge pull request #1808 from alalek:ocl_fix_cvtcolor_xyz
fixing bugs for Intel platform CPU device
fixed Split for device version equals 78712
FFmpeg 2.0.2 32-bit builded with mingw (4.6.1) with following additional options: --enable-w32threads --disable-iconv --cpu=i686 (workaroud for http://trac.ffmpeg.org/ticket/2363)
Merge pull request #1809 from ilya-lavrenov:ocl_resize_nn
Merge pull request #1807 from KonstantinMatskevich:intel_bug
Merge pull request #1722 from StevenPuttemans:feature_1631_second
Merge pull request #1806 from akarsakov:ffmpeg_without_iconv
NativeCamera build with AndroidStub backported from OpenCV master.
Merge pull request #1810 from Nerei:2.4