sao: fix MSVC warnings
sao: fix inf loop bounds
sao: simplify entropy coder initialization [CHANGES OUTPUTS]

Remove the hack from the HM that preserves fract_bits from the first row to all
rows; it never made any sense and we don't pretend to be anywhere near close to
bit accurate with the HM anymore.

This commit removes the Entrppy coder in FrameFilter since it was only used by
SAO and moves it into the SAO class.  The startSaoEnc() method is removed
entirely and another call to resetEntropy() (an expensive method) is replaced
with a load of the frame encoder's m_initSliceContext
sao: nit
sao: remove unused m_qp member
fix lossless
sao: nits
rc: write I/i slice in stats file based on whether openGop is enabled or not.
rc: don't read slicetypes from qpfile in 2nd pass.

slicetype has to be taken from the stats file from prev pass.
Merge with stable
replace g_rasterToPelX[g_zscanToRaster[idx]] by g_zscanToPelX[idx]
search: fix decoder intra crash with --cu-lossless
asm: fix dequant_normal
cu-lossless: fix inter hash mistake

The CU needs to be re-encoded if lossless is chosen as the best mode.
search: fix decoder intra crash with --cu-lossless
fix m_initSliceContext (uninitialised m_sliceQp)
asm: Minor pixel_ssim_end4 improvements

Reduce the number of vector registers used from 7 to 5.
Eliminate some moves in the AVX implementation.
Avoid bypass delays for transitioning between int and
float domains.

Ported from Henrik Gramner's recent commit to x264
x86inc: Make INIT_CPUFLAGS support an arbitrary number of cpuflags

Ported from Henrik Gramner's recent commit to x264
framefilter: move SAO init logic into the frame filter
sao: don't pass member variables to functions