VIDEO: Change SVQ1 decoder to skip rather than decode embedded string.

This string field is not used and this avoids having to include a
xor table.
VIDEO: Minor updates to SVQ1 decoder, mainly return flags to bool.

Since the returned int values from the decoding functions are just
0 for good or -1 for error, have changed these into an errorFlag
bool. This improves readability and cleans up some of the error
checking code. In addition, have fixed some oversights in formatting
spacing for readability.
VIDEO: Fix SVQ1 plane pitch

All the Myst intro videos now decode correctly
VIDEO: Minor update to SVQ1 decoder, reversing sense of return flags.

This changes the decoder function return flag meaning from "result
error" to "resultValid". This makes it more consistent with normal
C standard of returning 0 on success.
MOHAWK: Enable the SVQ1 intro for Myst ME Mac
VIDEO: Clean up the SVQ1 code
GRAPHICS: Add comments on which engines use the decoders
AUDIO: Force QuickTime stereo samples to mono if needed

The number of channels in AAC can differ from the actual number of channels needed making us require this. The channel count inside the container is always the correct one.
VIDEO: Fix SMK 16bit audio on BE systems
AUDIO: Initial Refactoring of QDM2 to use Common::BitStream.

This removes the internal getBitContext bitwise reading code and
replaces with Common::BitStream.

However, this breaks the codec as in one location, the internal buffer
of getBitContext reader is used and this can't be directly replaced.
This will need to be understood and rewritten.
AUDIO: Clean up QDM2 getVlc2() function.
AUDIO: Fix skipping in QDM2 BitStream usage.

getBits(n) would cause a runtime error if n is greater than 32,
but using getBits() to skip is no longer necessary as the newer
BitStream class has a skip method, which is used instead.
AUDIO: Removed qdm2_decode_sub_packet_header() function from QDM2.

This is to allow modification of the code which needs to assign the
data member of the sub_packet structure to an offset in the input
byte readStream.
AUDIO: Update to QDM2 codec fixing pointer to stream buffer usage.

This should allow the QDM2 codec to work again with Common::Bitstream
instead of the older getBits() reader, but this aborts with a reading
past end of stream error...
AUDIO: Fixes to restore QDM2 Codec function.

The Bitstream format is changed to 32LELSB and an error in the getVlc2()
function bitstream reading needed to be corrected to fix operation.
AUDIO: Migrate QDM2 Codec to using Common::RDFT class.
AUDIO: Remove now unused Sin/Cos table and FFT code from QDM2 Codec.

This was only used by the RDFT code, now replaced by Common::RDFT.
COMMON: Fixes for compiling without USE_BINK enabled.

The math utility classes in Common are now used by more than just Bink
Video i.e. Huffman is used by SVQ1, RDFT by QDM2 etc. so need to remove
conditional inclusion of objects in the Common Library.

This was done as these functions are very large wrt. binary size.
This is mainly due to the sine, cosine and log tables which should be
reconsidered as to whether these are needed or can be replaced by
standard sin()/cos() calls.
COMMON: Minor reduction of sine/cosine table size (8 bytes...).
COMMON: Replaced static Sine and Cosine tables with dynamic generated.

This removes the large static tables from the binary (which saves 500K
to 1Mb of binary size) and replaced them with a class which generates
the required tables as needed in RAM. This has been tested with QDM2
and shows no obvious performance degredation and Memprof shows no
significant rise in RAM usage.