frameencoder: fix --no-wpp, broken since 854f5e3072a0

--HG--
extra : rebase_source : 22c56f8c14041a74993cb03ebcb091231366f59b
replace TComPic with Frame class in common/frame.h

The new class name clashes with old variables like pic or m_pic, but I would
like to pull in TComPicYuv in the future as a Picture class, and TComYUV as
Yuv class.

--HG--
extra : rebase_source : ba9f2101dbfbf8676ffb625e06166b203dfeeb7e
api: comment nits

--HG--
extra : rebase_source : 64f4401ccd38c78730bc1f355cfff2a921873a31
make cu level stats logging run time configurable

two-pass encodes will need these statistics, so they need to always be compiled
into libx265.

--HG--
extra : rebase_source : 6bcffca3201708a3bfff9c8122312537607ecc13
frameencoder: remove unread bitsOriginallyInSubstreams

--HG--
extra : rebase_source : 4cca118927705397dd0eeb1559c7a27e7a280862
frameencoder: rename m_pic to m_frame

--HG--
extra : rebase_source : d340fdb0df453dece37cc9d54e7a79cb64a5df28
frameencoder: simplify setup for encodeSlice()

--HG--
extra : rebase_source : 558acd56b9672abc02406c63cc7f19a67fb4e6a9
frameencoder: use m_param->bEnableWavefront directly

--HG--
extra : rebase_source : e677cef2a278f837d6fedafd52fd327951b83f1b
frameencoder: move trace code for clarity, remove dead bWaveFrontsynchro

--HG--
extra : rebase_source : ea211a08c5ac7bc7be72478dc3c2593d9ce40731
frameencoder: nits

--HG--
extra : rebase_source : ec9886f9249efa98c1671b1ddd9c4dd6871ce7c6
frameencoder: simplify logic slightly, numSubstreams can be > 1 only with WPP

--HG--
extra : rebase_source : 67210c40177a354e930c4b3d6672003629d17a1f
frameencoder: remove redundant widthInCU variable

--HG--
extra : rebase_source : 3628559399c55c311c6589826eb43acf4085d42c
frameencoder: further simplify the logic which sync's CABAC with upper-right LCU

--HG--
extra : rebase_source : 45a51d84a4792d4bfd1a43e77fcba5376184cdf2
frameencoder: simplify loop bounds

--HG--
extra : rebase_source : 2557555b40259bd7c862ba3f88911cd46b4d19eb
frameencoder: simplify SAO coding logic

--HG--
extra : rebase_source : ec5a2b66c6d052f5c7e93df182f41cc083de1d68
frameencoder: further simplify SAO coding

--HG--
extra : rebase_source : c2aece92cede605c09a357694c37cdbaf6e8387e
frameencoder: simplify SAO reset when not enabled on slice

--HG--
extra : rebase_source : 751aa49360502fcad6594e730f9cc304b68e355a
frameencoder: simplify cabac context save

--HG--
extra : rebase_source : 837a6f3a08d5aa527cd40fa152a773c152313d77
frameencoder: remove more redundant checks

slice->getSaoEnabledFlag() is the same as saoParam->bSaoFlag[0]
slice->getSaoEnabledFlagChroma() is the same as saoParam->bSaoFlag[1]

--HG--
extra : rebase_source : e8ba8af0907d0fbf03922ae3a2ef046a3927299c
TEncEntropy: nit

--HG--
extra : rebase_source : 931a039e1108414428cd132ed6a99acfbd53c9ed