psyRd: Change psy-rd energy measurement

psy-rd energy is measured by summing up the absolute differences of the AC
energy in each 8x8 block in series
TComTrQuant: lambda for each Cb and Cr
refine tskip related
pixel: prevent msvc warning
nal: concatenate and escape row data while building row-start array for header

This way we only need to do a single pass over each slice NAL looking for start
code emulations; and there is one less memcopy. countStartCodeEmulations() and
appendSubstream() methods could be removed.
move lfcuParam to local
move m_bEdgeFilter to local
cleanup unused TComLoopFilter::loopFilterPic
writer: nits
ratecontrol: move validate of CRF params to x265_check_param
ratecontrol: [CHANGES OUTPUT for 10-bit CRF] Remove QP_BD_OFFSET from Ratecontrol

This offset is added inside Quant (setQPforQuant)
bitstream: give bit counter a useful constructor
sei: first step towards simplifying SEI writing
psyrd: use psyrdcost for PU/TU decision for inter and intra
sei: disable HRD with warning when vbv is off
quant: Enforce QP range after adding bit-depth offsets
fix: TOPSKIP refers outside of picture [OUTPUT CHANGE]
TEncSearch: simplify square block dim logic

this works around a bizarre MSVC warning on those lines.
 '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)

I have no idea why it was implicitly making the result 64bits.