added RGBA <-> mRGBA
Fix building with FFmpeg 0.8.

avformat_find_stream_info was introduced in Libav avformat 53.3,
but it was only merged to FFmpeg in avformat 53.6.

In Libav avformat 53.3-53.5 av_find_stream_info is not removed
(only deprecated), so this shouldn't break building with that.
Made the generated file templates' naming more consistent.

The general convention is <output file name> + ".in".
Merge pull request #1799 from SpecLad:avformat-53-6
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)
ocl: fix cvtColor XYZ: variables on stack
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
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