cmake: tabs to spaces
entropy: settle on Entropy class name and member names

Through all these various refactors the SBAC/CABAC/entropy classes have all
merged together and the member variables were a scattered mix
fix for GCC warning about loop bounds
level: fix typo
slice: add ProfileTierLevel instance to VPS

The PTL data is coded in the VPS (first) and thus belongs with that data
structure, as it allows us to simplify arguments to the level set and
determination functions.
ptl: move enums from TypeDef.h to slice.h
level: move m_vps.maxDecPicBuffering logic into one function

This prevents duplicate logic from existing in two separate files
level: nit
cli: expose x265_param_apply_profile() via --profile

This is repairing an egregious oversight
param: fix profile warnings in x265_param_apply_profile()

This function was likely never used since it was not supported by the CLI till
now.  When the user specifies --profile Main10, they intend that the output
stream is decodable by a Main10 decoder. This is true of any Main encode.

The reverse is not true for --profile Main and a Main10 encode.  We must return
an error and abort the encode if --profile Main is specified and the encoder
was compiled for Main10 (HIGH_BIT_DEPTH).
analysis: don't initialize members of base class in constructor
rc: prevent gcc shadow warning about int terminate and terminate()
rc: bug fixes in 2 pass ABR

ratecontrol - fix duplication of bits in calculating m_totalBits
frameencoder - don't amortize totalBits in 2 pass ABR
level: add --high-tier and auto-configure VBV if --crf N --level M (refs #61)

This patch is a major overhaul of the level enforcement logic. The first obvious
difference is that the user may specify the tier. The second difference is that
x265 will no longer run any configuration that might generate non-compliant
bitstreams.

Any of these conditions will cause the encode to abort if a minimum decoder
level was specified:

* picture size is too large
* frame rate is too high
* constant QP rate control is configured
* the specified level does not exist

Further, if CRF was specified, we now configure VBV using the maximum CPB size
and bitrate for their level/tier (and issue a warning that the output may now
be non-deterministic).

Note that the encoder will still encode the minimum decoder level which covers
the encode parameters.  So even if you specify --level 5.1, we may signal the
stream as level 4.0-High if the stream should be decodable at that level.

This further fixes the CLI to allow --level-idc or the shortened --level, just
as it now also supports --high-tier or the shortened --high.
rest: update --profile, --level, --high-tier docs
level: fix GCC signed/unsigned comparison
remove very obsolete regression batch files
param: re-order code to avoid unreachable code warnings in 10bit builds