camera bringup changes hardware-qcom-media

Change-Id: I4b81d2150e5bbd97d09c91f3cf89a8c6169b6058
media: compilation fix for updated sdk version

compilation fix for updated sdk version

Change-Id: Ib83de1d7ce4c8dae012ae0d0f22d7edccc8cc552
Merge "media: compilation fix for updated sdk version"
Dashplayer: enable adaptive playback based on codec format key

Added support for prepareForAdaptivePlayback() call in
configureCodec, if max-width and max-height keys are specified
in the format.  It is OK for this call to fail, if component
does not implement adaptive playback.

Change-Id: I403e70559cd54489d35a94b467192701f163d568
mm-video: vdec: Support adaptive playback mode

In this mode client checks and sets an extension to indicate
that the content can change resolution, within the pre-
announced maximum height/width. Component over-allocates
buffers for the max resolution and dbp, and notifies client
of any crop change when resolution changes within bounds.

Resolution changes beyond set max width/height will result in
port-reconfiguration notification, while adapting to the new
resolution.

Change-Id: I744ac475f3bbedaaca2b057e9a327243674f0d9e

Conflicts:

	mm-video/vidc/vdec/src/omx_vdec.cpp
mm-video: vidc: set stride in gralloc-metadata for adaptive-playback

In Adaptive-playback mode, following resolution change, decoder
continues to decode on larger buffer. But the stride is changed
implicitly. Set the updated stride in gralloc-metadata in each
buffer, so HWC/GPU can read the stride to interpret the buffer's
geometry correctly.

Change-Id: If223e4bf230f8032b03b9d51d41b39576d0cf961
Merge "Dashplayer: enable adaptive playback based on codec format key"
Merge "mm-video: vidc: set stride in gralloc-metadata for adaptive-playback"
Merge "mm-video: vdec: Support adaptive playback mode"
Fix compilation issues.

 * Only build when TARGET_QCOM_MEDIA_VARIANT=caf
 * Update makefiles for media-caf path
 * Add ifdefs for QCOM_BSP features

Change-Id: I5a7c3ce1fd7334cb9af04ee27c6efe0620ebae09
mm-core: Remove double declaration of OMX.qcom.audio.decoder.aac

Change-Id: I0d64cde98ab92c48fe9e70d26724c334f22a79f6
mm-video: Fix compile error on 7x30.

Change-Id: Ia5d25165602eb2ae42ea8ac33248c627b07fed1d
mm-video: venc: Correct a typo in variable name

A kernel variable was to be defined as unsigned long but
it is mistakenly defined as unsigned only, the space is
missing after long. This bug is silent because unsigned
is also a valid data type by itself.
Corresponding to kernel fix, similar correction is done
in userspace code.

Change-Id: Ie58f275149dc9c85553f75e02594113b1a03ddcf
CRs-fixed: 556771
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_hardware_qcom_media-caf into kitkat

Conflicts:
	dashplayer/DashCodec.cpp
	libc2dcolorconvert/Android.mk
	mm-video/vidc/vdec/src/omx_vdec.cpp