input: fix race condition
entropy: nit
cli: use consistent bool naming convention
cli: add --ipratio and --pbratio
rest: document ipratio and pbratio parameters
frameencoder: fix for error in VPS when AccessUnitDelimeter is turned on

The bitstream needs to be reset before start encode VPS, since if AU_Delimeter
is turned on, there is one byte of data left in the bitstream that will be
written wrongly into the VPS.
TComDataCU: remove warnings for shadowed declaration
rc: accumulate mv bits, coeff bits per frame
encoder: RDOQ is only applicable at rd levels 4, 5, and 6
rc: rename texBits to coeffBits in RateControlEntry structure to maintain uniformity.
fix emms: move selectLambda() into xRateDistOptQuant() and issue emms before it
split rate calculation functions to luma and chroma to simplify luma path
remove redundant memset
TEncSearch: limit AMVP loop bounds in xCheckBestMVP

entries in the table beyond m_num were not initialized
Merge with stable
TComDataCU: remove redundant refIdx check from fillMvpCand

fillMvpCand is only called from one place and the refIdx will always be
positive
TEncSearch: nit
TEncEntropy: hoist trivial functions to header for possible inlining

And remove useless comments
TEncEntropy: nit
TEncEntropy: hoist encodeSliceHeader() to header after simplifying