Subtitles: Make both DVD subtitles show in case of overlap

Makes behavior consistent with VLC and mplayer/libavcodec DVD
subtitle implementations. Sets the StopTime of the subtitle
before the same as the StartTime of the currently added DVD
subtitle.

Backport of MPC-HC commit f478e57
VobSubFile: Use TRACE for debug messages

We don't want to spam the users with probably useless error messages.

Thanks to clsid.

Backport of MPC-HC commit 9f504fc
 VSFilter: Fix and update the blacklist.

- Ensure the blacklisting is applied as soon as possible when VSFilter tries to join the graph.
- Fix the incorrect string comparisons, the application name is always lowercase.
- Add some apps that are known to have incompatibility with VSFilter.

This commit is based on a patch by clsid.

Backport of MPC-HC commit 1836020
DirectVobSubFilter: Fix a deadlock, Pt.1

File reloader thread causes a dead lock if

 a. the deconstruction of the filter is going, and its thread
    holds the critical section

..and...

 b. the file reloader thread can not yet finish setup and is
    blocked by the critical section.
BaseVideoFilter: Fix unwanted reconnection with input when output failed

Fixes an unwanted reconnection with input pin when output pin
connection failed to complete.

This often happens when connecting to Video Mixing Renderer.
BaseVideoFilter: Always return a list of output color spaces

Return a list of output color spaces even when we fail to get
upstream's preferred order.
DirectVobSubFilter: Reset the colorspace list when connection breaks

Is this correct to do when we're reconnecting?
BaseVideoFilter: Accept only those output colorspaces that are listed upstream.
BaseVideoFilter: Reject colorspace changes from downstream for now
BaseVideoFilter: Refactor CheckTransform
VobSubFile: Fixed creation of a custom palette with Matroska

Fixes rendering of vobsubs in Matroska when the custom colors
feature was enabled.

Backport of MPC-BE commit 1995
DVobSubFilter/STS: Fix colormatrix guessing in case of non set

Used to default to BT.601, now defaults to BT.709 or BT.601
depending on the resolution.
STS: Use TrimRight() with the CStringW YCbCr matrix value

This removes trailing newline, space and tab characters.
While working around simple mistakes, this should not let pure
garbage past.
TextFile: Only fallback to ASCII/ANSI parsing if no UTF-8 BOM was present.

The presence of an UTF-8 BOM should indicate that the file actually is UTF-8,
and one invalid character should not be considered as a reason to think
otherwise.

Backport of MPC-HC commit 8bb9070
TextFile: Properly recover after an invalid UTF-8 character.

bValid was never properly set to TRUE after an invalid character,
which was no problem before because UTF-8 parsing was aborted. However,
if parsing is to simply skip invalid characters, this case needs to be
handled properly.

Backport of MPC-HC commit 962bbef
TextFile: Add support for U+10000-U+10FFFF UTF-8 encoded characters
RTS: Fixed handling of WrapStyle flag again

Fixes wrapstyle == 3

Backport of MPC-HC commit 89ab140
VobSubImage: Fix parsing of alpha channel with vobsub subpictures

Fixes some previously unshown vobsub subpictures to be shown

Backport of MPC-BE commit 1459
DSUtil: HackFix the I420/YUY2 to RGB conversion using Kasumi

This really shouldn't get used anywhere, but since Lord has
been able to replicate it, this goes in.

Originally committed as 0778f9e for the 2013-05-30 release
DirectVobSubFilter: Remove unused code path