cleanup:  move m_predYuv and m_predTempYuv from predict to TEncSearch
rc: enable abr reset in the first pass of two pass encode.

observe this improves second pass results in ultrafast presets for some videos.
dpb: remove redundant call to getNalUnitType(), output will not change
dpb: getNalUnitType() cannot return NAL_UNIT_CODED_SLICE_IDR_N_LP
dpb: style nits
dpb: remove checks for slice types we do not emit
dpb: cleanup decodingRefreshMarking()

--HG--
extra : amend_source : f03acf768ce767318e788312d43574a9b652c60c
quant: apply scale factor in just one place
quant: delay err3, err4 calculation until/if necessary
quant: hoist some calculations out of the loop
quant: simplify minAbsLevel
quant: convert getCodedLevel() into a macro, remove m_transformShift hack

--HG--
extra : amend_source : aefd9514de9abe1a21c8ef4421d6c9b831e0f407
quant: m_lambda2 no longer needs to be a member variable

it is only used in rdoQuant() and can be declared on the stack
quant: make IEP_RATE an anonymous enum, it doesn't need storage
quant: support scaling lists in psy-rdoq
quant: rename costCoeff0 to costUncoded, add docs
quant: clarify last-nz optimization loop
quant: correct rounding factor for unquant
quant: blockUncodedCost -> totalUncodedCost, improve comments
quant: remove redundant level intialization