TEncEntropy: hoist trivial functions to header for possible inlining

And remove useless comments
TEncEntropy: nit
TEncEntropy: hoist encodeSliceHeader() to header after simplifying
TEncEntropy: hoist encodeSkipFlag() after moving I-slice check to callers
TEncEntropy: reorder nit
TEncEntropy: hoist encodePredMode() after moving I-slice check to callers
TEncEntropy: inline the only one caller of encodeInterDirPU
input: streamline control logic of threaded file readers

These files were written before ThreadSafeInteger and this caused the control
logic to be over-complicated.  Now they can be greatly simplified and their
control flows can be re-unified to be more like each other.

Also, drop PPA events. File reading is pretty uninteresting when profiling.
encoder: fix --no-wpp behavior, keep TLD selection logic in one place

do not use static m_threadLocalData, this would break if multiple encoders were
allocated in a single process

pass the selected TLD to row processes, so they do not need to be aware of the
WPP/NO-WPP details.

Cleanup frameencoder.h, move non-trivial processRow() to the cpp file
frame: initialize recon to avoid SAO read of uninitialized pixels beyond picture end
add primitives.nquant for RDOQ
rc: move structure FrameStats to FrameEncoder class

Stats are not needed post encode, moving it to FrameEncoder.
rc: compute inter, intra and skip cus per frame for the first pass
rc: write frame stats and cu stats to file in first pass
rc: fix gcc warnings