mm-core: Add support to configure ISO or ARIB coefficients

- Add QCOM OMX extension to support configuration of ISO or
  ARIB stereo mixing coefficients.

Change-Id: I6a969421184ccbe1af644ac4ed2395a8bb386d38
mm-video: vdec: Add additional dependencies in make file

Compilation is failing if make is issued on video decoder
shared library before compiling the kernel. Add kernel include
files path from out folder to LOCAL_ADDITIONAL_DEPENDENCIES
in the make file.

Change-Id: I7575f29f7245b4a73422eb35dcebc3fa2255a99f
CRs-fixed: 455015
dashplayer: Replace ACodec with DashCodec

- Enable smooth streaming.
- Notify flush completed for all states except executing.
  This prevents crash on seek, when seekbar is dragged.

Change-Id: I9cd15194002c93ce1a411aa4abbded9d13be5701
dashplayer: Fix to avoid crash during back to back playback

stop call on source added to avoid crash during back to
back playback

Change-Id: I5bcbac2ba1c131c4d0e322ecd876a1d1021cba9f
CRs-Fixed: 450679
audio: add wmaLossLess decoder component

- Add OMX.qcom.audio.decoder.wmaLossLess to
  register table to support wmaLossLess format

Change-Id: Ibb20268ccb55a54302ed7cfd8863141482f7242b
CRs-Fixed: 457174
mm-video: vdec: Notify display about the format of video playback

An H.264 clip may have SPS+PPS that indicates the clip is
interlaced. However, the subsequent frame data may be
progressive. In this case, display is not updated about the
progressive content, it continues to display the video as
if it was interlaced.
With this change, we are now notifying display about the
Interlace/Progressive format of video playback by calling
setMetaData API for each buffer during handling of Interlace
Extradata

Change-Id: I0f3f11ba21ffc659b0a54c1494c2aa72fdd367a7
CRs-Fixed: 406941
mm-video: vdec: Amend logic to send playback error

During playback of an erroneous clip or a clip with SPS/PPS
occuring more than 288 times before the first IDR is queued,
playback error was being reported. This was being done for
non arbitrary bytes mode only. Now handle this case for all
frame packing modes.

Change-Id: I3b289eae61b9007355db98929cc542c140ae660c
CRs-fixed: 458875
mm-video: Support for QCOM_BSP define

 * Add support for QCOM_BSP flag, which implies that we have the new ION
   API and a recent KGSL.

Change-Id: Ic3041cbb2333cd69d3417141ecf21f9eefbc95ea
mm-video: vdec: Remove genlock lib dependency

With MR1 release, the use of genlock is deprecated.
Remove genlock lib dependency from the makefile.

CRs-fixed: 449736
Change-Id: I4e1fd58a1b64d9e80da63d2b0ea752eaf03bc277
vidc:venc: Reject changing number of B-frames dynamically

The number of B-frames is not expected to be changed
at run time. The dynamic intra period settings are
allowed to change the number of P-frames and not B-frames.
This change will reject if number of B-frames is changed
in dynamic intra period setting.

Change-Id: I5c5c168270bdb49a1533d5ffc46ff811c714d21a
CRs-fixed: 416057
mm-video: vidc: Suppress non-fatal error messages

These messages are non-fatal and appear frequently
during the video session. Hence suppressing them.

Change-Id: I6528c467cafe8fa409ea1217b7113b075ed28a2d
CRs-Fixed: 389408
mm-video: vidc: allocate color conversion buffers as uncached

If the c2d buffers are allocated as cached, CPU may not read
updated data written by c2d hardware. This would need an explicit
invalidate.
Or allocate these buffers as uncached to avoid this issue.
CRs-Fixed: 460460

Change-Id: I87e0ebf7105261b34edbff7b8778d7ed2b9ef391
media: Better compatibility with new KGSL

 * Memset the params struct instead of initializing every value manually
   so that we don't have to deal with the flags/reserved change.

Change-Id: I0085d14e7f39304936534518a6adb9c8c9544b86
QCTimedText: Avoid recycling parcel while parsing parcel

Text sample parcels are obtained from global parcel pool
and should be recycled only once in jni.

Change-Id: Ie8fd65da4cadfd846e5543da5b40eb78193e8d86
media: Better ION version compatibility

Change-Id: I2eb1887ecbe7a0000d2a16768b46004d92f18a82
mm-video: Return correct value from extract_rbsp

Sometimes, extract_rbsp is returning a value of type
uint32 while the actual return type is a bool.
In such a scenario, last 8 bits of return value is
interpreted as zero at the caller occasionally.
This is resulting in playback issues in arbitrary
bytes mode. Returning correct value fixes the issue.

CRs-fixed: 458922
Change-Id: Ie956338211486d5a9699cf6e7e8b8a2653ea1214
mm-video: vidc: Close ION_IOC_MAP fd before closing ION device fd

Changes were made to free output buffer function where ION_IOC_MAP
fd is closed before closing ION device fd.

CRs-Fixed: 382450
Change-Id: I1e567ebc7679f502822113e535f7070ca5b2aea5
mm_video: vidc: Handle consecutive start code in demux table

In case of consecutive start code in a frame, these changes shall
eliminate the first occurance of the start code entry while
constructing a demux table

Change-Id: I12c679407b60aa7d3414414911659b38737d4814
CRs-Fixed: 368116
Tiny fixes for building on vanilla display driver.

Change-Id: I825212305a6dd2c800afcc0bb9ff19070d757f33
mm-video: vdec: conditionally revert metadata patch

Only libqdutils from display-caf has qdmetadata. This change only uses
qdmetadata if the current display variant is CAF.

This conditionally reverts the commit "mm-video: vdec: Notify display about the format
of video playback".

Change-Id: I4592228351651cd6d4e88d20258092e39a0eb264