fix the different threshold between camera and screen
reformat
Add proper spacing in include directvies
Don't use and modify function pointers in global static tables

Make the tables const and keep a copy of the table in the
SWelsFuncPtrList struct instead, where any modifications to
the table only touch that individual instance of the codec.
Hardwire functions set up in WelsInitFillingPredFuncs

These are never overridden by any assembler optimized versions.
(The assembler optimized intra predictor functions may use such
optimized code internally anyway.)

This avoids global writable data.
Move pfCavlcParamCal into the function pointer list

This avoids using a global variable for this function.
Avoid using static arrays for keeping track of frame dumping state
Reduce code duplication
Avoid intermediate function pointers for some function pointers that are never overridden

These are only used in the leaf C versions of functions anyway.
Remove global function pointers in the encoder MC code

This is similar to how this is done in the decoder part of MC.
fix when output enabled in encoder
Destroy input frame on GMP encode on error conditions.
Merge pull request #1054 from huili2/output_bs_enc

fix when output enabled in encoder
Merge pull request #1053 from mstorsjo/fix-include-spacing

Add proper spacing in include directvies
Merge pull request #1052 from sijchen/scc_md_merge2

[Processing] fix the different threshold between camera and screen
completing and bug-fixing the screen content MD/ME process
Merge pull request #1055 from ethanhugg/frameleakonerror

Destroy input frame on GMP encode on error conditions.
Merge pull request #1043 from mstorsjo/avoid-globals

Get rid of global non-readonly variables within the library
Merge pull request #1057 from sijchen/scc_md_merge11

[Encoder] Completing and bug-fixing the screen content MD/ME process
Merge remote-tracking branch 'upstream/master' into travis.osx