analysis: move encodeCU() methods and friends to Entropy

This function only encodes a fully finished CTU; it is performing no analysis
and it needs none of the features or members of the Analysis class. It is much
more clear as a member of the Entropy class.

Note: the way bEncodeDQP is communicated is a huge mess and needs to be cleaned
up soon. And finishCU() can also likely be hugely simplified

--HG--
extra : rebase_source : 3ba3420147da46ab6792f312a45ec828b79656ef
ctu: optimize away per-row bitstream coders, no output changes

They were really only being used to hold the proper initial state for each
row. This avoids an entropy load/save per CU in encodeSlice() and while I was
in the area I removed another pile of resetEntropy() calls.  The initial slice
entropy state is calculated once and then kept in the frame encoder for all
future uses.

--HG--
extra : rebase_source : 4fc2b580a9988d684f1290dee905d3b47d2ef9c4
refine depth related.

maxCUDepth:	CU depth
maxFullDepth:	CU+TU or CU+PU depth
unitSize:	always 4

--HG--
extra : rebase_source : dd9500db7e9723fed95cd29298ef8d11b0bd3ce1
encoder: remove m_maxCuDQPDepth, simplify dqp logic
Merge with stable
entropy: simplify EstBitsSbac

There was no reason for significantBits to be a different type than all the
other fix15 bit costs. And NUM_QT_ROOT_CBF_CTX is 1

--HG--
extra : rebase_source : f13ee7c970ef5d788a9fd62136ac96fec12ea581
entropy: pass bIsLuma to estBit() instead of limited TextType range

if the only options were TEXT_LUMA or TEXT_CHROMA, it is better to use a
bool argument and avoid ambiguity about TEXT_CHROMA_U or TEXT_CHROMA_V

--HG--
extra : rebase_source : cb8430f836e2a7d462051658a4a0a55603525555
quant: combine psy-rdoq scale and lambda into one variable

Reduces the number of 64bit multiplies required per psy-value
evaluation

--HG--
extra : rebase_source : 88972dd730cbbd1f8320067ca86eda2a70b29d1d
cli: update psy-rdoq rangw in CLI help

--HG--
branch : stable
param: add psy-rd and psy-rdoq to param2string (for info SEI and stats file)

--HG--
branch : stable
cli: fix help syntax

--HG--
branch : stable
param: typo

--HG--
branch : stable
Merge with stable
encoder: fix deadlocks/crashes when picture is a single CTU row

1. if only one row per frame, disable WPP it is pointless
2. if only one row per frame, frame parallelism is (mostly) impossible
3. clamp rateControlUpdateStats() to be within row count range

--HG--
branch : stable
cleanup: remove unused m_upBuff2

--HG--
branch : stable
sao: move m_upBuff* to stack, fixes (#69)

--HG--
branch : stable
extra : amend_source : 06a36f7edc148cfdf8b84eb5b1482870cbb93867
Merge with stable