SF: Reduce size of DisplayFrame according to "transparent region"

Calculating SourceCrop according to "transparent region" is taken care but
not DisplayFrame. DisplayFrame also need to be calculated according to
"transparent region" to avoid mismatch in SourceCrop and DisplayFrame.
This will avoid unwanted Scaling introduced because of mismatch.

CRs-Fixed: 651365
Change-Id: I33733c084702d46de1c9eb6663533fb083f9788a
BINDER_VM_SIZE: 1MB? this isn't 1997. 2MB for non-LOWMEM arches

Double bass pedals > normal base pedals.
Double binder size > normal binder size?

This tweaks a constant that hasn't change sinced c0c1092183ceb38dd4d70d2732dd3a743fefd567

LOWMEM_ARCH conditionalization brought to you by @Nuclearmistake

Change-Id: I1c75b3fe4ecaced9c6622cc069e8a0cf9b634a23
Allow non-"low-mem" devices with memory issues to use a smaller binder vm size

Change-Id: I6110067a314f0ca6b18637e427fb80173de77f2b
Add OMX_AUDIO_CodingAPE and OMX_AUDIO_CodingDTS

Copied from the stagefright-plugins project.

add HEVC decoder and cleanup

Change-Id: I16342228014320161a22302a3c14df7725556cd2
libs/gui: Release acquired buffer when createImage fails

When EGL fails to create an KHR image for an acquired buffer,
release the buffer before returning with error. This unblocks
the dequeue buffer call waiting and may succeed in the next queue.

CRs-Fixed: 624244

Change-Id: I674807f4bb1f1253cb787daaa5a7adf351caaae7
(cherry picked from commit 9e9b12d7f37a6120a705db56a4374e7141c79a41)