fix for crash when scalingList feature is enabled
rc: define function for updating rate control statistics in processRowEncoder

Rate control updates its statistics like bits in RateControlEnd. With
frame parallelsim enabled and N parallel frames running, the feedback given to
rate control is delayed until rateControlStart of N frames are called. To avoid
this delay, update rate control statistics for every frame after encode of few
frames are done in processRowEncoder. By updating statistics for every frame we
make ABR to function more accurately (predicts more accurate QP) making use of
latest data rather than stale values.

Frame parallelism lag (the wait for reconstructed pixels) already forces this
delay between frames, this change will simply take advantage of the progress
made by referenced frames before each frame is allowed to begin coding by having
more accurate rate control data.
replace sse_sp(residual, ZERO) by ssd_s(residual)
search: assert to X265_CHECK
port TEncCU functions into analysis structure

1. Rename TEncCU to Analysis
2. Remove warnings (/wd4244 /wd4389 /wd4018) from TEncCU
3. Roll over compress.cpp into analysis.cpp
4. Rename TEncCU to Analysis
5. Remove hungarian notation function names
entropy: nits
slice: Cleanup TComReferencePictureSet, prune the notion of long-term-pictures
brace nits
slice: remove unused PPS ID
slice: finish cleanup of TComReferencePictureSet
vui: prune set/get methods and unsignaled fields
bitstream: change writeFlag() to take a bool to avoid int conversions