white-space and comment nits
slicetype: fix bug in intra estimation in Lookahead::estimateCUCost()


# HG changeset patch
# User Steve Borho <steve@borho.org>
# Date 1379538813 18000
#      Wed Sep 18 16:13:33 2013 -0500
# Node ID 5bab261d0dd7ac68c4af3837853d48d56017d4d6
# Parent  197dd6d2f54d7193d7dcf28d03a0b3dccb353fad
slicetype: fix bug in intra estimation in Lookahead::estimateCUCost()
testharness cleanup: Testharness uses the same malloc/free wrapper as the rest of the encoder.

Aligned mallocs in testharness use the wrapper (X265_MALLOC/FREE) defined in CommonDef.h. Remove
alignedMalloc/Free definitions in the test class.
lookahead: fix crash for I frame cost estimation
sao: prevent picture based SAO to be used in combination with frame threading
cli: fix memory leaks on early exits
framefilter: allow SAO to be disabled independently of deblock filter
lowres: change int scenecut to bool bScenecut
lowres: change int keyframe to bool bKeyframe
lowres: group fields by type, remove trailing white-space
lowres: pass poc and user slice type to lowres::init()
api: introduce an x265_picture_init() function
sei: remove unused SEIMessages type define

After this, and after AccessUnit is replaced with a simple pointer array,
TComList is the only type derived from std::list, so we would no longer need
a templated list class.  TComList could be replaced with a simple list class
that suits our exact needs.

This also removes another HM file
top: fix leak of output NALs on CTRL+C aborts
cli: use strerror to report signal error
RateControl bug fixes for frame parallelism

1. Added lastRceq in ratecotrol structure and copied the value into thread local rate control entry obj
so that Bframes can get latest lastRceq value.

2. Added framesDone state - to maintain a serial order of frames in RateCotrol to get a correct estimate of wantedBits.
tuned up ABR logic to better adapt for frame parallelism

 Rate control needs to be more aggressive based on actual ecoded bits cost rather than estimated costs from
 concurrent threads .Tuned up some parameters to effect this idea.
Merge with default

--HG--
branch : stable
slicetype: remove x265_ prefix from internal functions

These were adapted from x264 functions, and the prefix was incorrectly preserved

--HG--
branch : stable
slicetype: respect --bframes count when --b-adapt is 0

--b-adapt 0 --bframes 3  => IPBBBPBBBPBBB
--b-adapt 0 --bframes 4  => IPBBBBPBBBBPBBBB

This is a stop-gap feature until --b-adapt 1 and 2 are fully functional

--HG--
branch : stable