libhwcomposer: Only 4 pipes can be used per display for MDP Comp.

Although 6 pipes are available in total but only up to 4 pipes are
available per display (single mixer) for MDP Composition.

CRs-Fixed: 450985

Change-Id: I99df91ab955a1a7110dfbea2aaf790ba26058a78
display: Close 0 fds

0 can be a valid file descriptor, make sure 0 fds are closed

Change-Id: I2bf2280d70eda74fa0b0a886ea54ecefc6854b24
display: Do not align down input rotator src height

Aligning down the input rotator source height value introduces
green line in the output of the rotator. Remove aligning down the
input rotator source height for YV12 format.
For 1/8th downscale use aligndown instead of alignup.

Change-Id: I9152ee873c5ee79877653c78f33eb0cf7e2f9871
CRs-Fixed: 453033
overlay: Fix rotator output buffer size.

Fix rotator output buffer size for mdp and mdss rotators.
Output size is based on rotated width & height.
Output format can be different than source format.
It could be same if using mdss rot or using fastyuv mode in mdp rot.
Deprecate the static mapping of rotator input and output formats.
Driver will be responsible for correctly populating the dest format that its
wishes to use.

Change-Id: I17352d6d460cac24eb97083aed38668929c66807
overlay: Add support for pipe dumps.

Add support for pipe state dump useful in dumpsys.
Reduce debug log spam when mdp state changes.

Change-Id: Ie27ad00698085e2ffd6166ad2f7503fe16a571f8
display-caf: GCC 4.7 Fixes

-----
common.mk: Disable -Werror for now
libcopybit/copybit_c2d.cpp: signed to unsigned int
libexternal/external.cpp: add DEBUG to ALOGD_IF
libhwcomposer/hwc_mdpcomp.cpp: signed to unsigned int

* Only one that remains is:
narrowing conversion of 'dst->copybit_image_t::w' from 'const uint32_t {aka const unsigned int}'...

Change-Id: I2a1790012cf98987d8f8d2323cdbacde2d4967fd
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>

Conflicts:
	common.mk
display-caf: Turn on -Werror again and fix narrowing conversion for copybit

Change-Id: Ifb4c583c461273ccd9f08c89194d34c5c12f5832
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>