mm-video:vidc: Add the handling of MPEG-2 extension and user data.

Handling of extension and user data returned by core is added
to user space code. Now extension and user data is appended to
YUV data along with other extra data and passed to client.

Change-Id: I6735263633d1cd224ce332fb7801b08511676922
(cherry picked from commit 5b126aeb3ab33e635090bef8254025590197da32)
mm-core: Add MPEG-2 extension and user data types.

With this commit, OMX_ExtraDataMP2ExtnData and
OMX_ExtraDataMP2UserData eTypes are added to support
MPEG-2 extra data types.

Change-Id: Iffd6e216d9f6fdf30f6a99410c353a37bbe14dc7
(cherry picked from commit 051cdcaae9d3d69440b2bc5053b0c11e4486a60a)

Conflicts:

	mm-core/inc/OMX_QCOMExtns.h
(cherry picked from commit 63d30d6c955068efc11a1a77b91aba4b927a56b4)
mm-video: vidc: Add PAR value extradata support for H264.

Core gives aspect ratio information for H264 in a shared
memory register. This change will fetch the value of the
aspect ratio from the designated register and append this
information to the frame_info extradata which can be used
by the client.

Change-Id: I8f7f29a4f70cb99049d8238101326f86b5901a6f
(cherry picked from commit 428f393430cd4d0cec771cd12e0abf3f2a637f85)
(cherry picked from commit abec80d1348940972dd6307f3e03beaba9198260)
mm-video: vidc: Add support for MPEG-2 sample aspect ratio.

ISDB-T client requires sample aspect ratio (SAR) and it
depends on the sequence display extension and display
aspect ratio (DAR). This change calculates the SAR
values as required by the client.

Change-Id: Ib7e3d1cfb8aff3a9e33048197a95b1d266ed3658

Conflicts:

	mm-video/vidc/vdec/src/omx_vdec.cpp
(cherry picked from commit 5bf5f6cff2e5674f4f4b2bb721fb4b89bbcc92c0)
mm-video: Add support for display aspect ratio info.

This change adds support for sending display aspect
ratio information as part of frame info extradata
to the client.

Change-Id: I60a20faffe2f58b5720670373625b3299f9ed1fc
(cherry picked from commit 3914b4dba71fa9ba1d30a069051d2de062abe804)

Conflicts:

	mm-video/vidc/vdec/test/omx_vdec_test.cpp
mm-core: Add support for display aspect ratio info.

This change adds support for sending display aspect
ratio information to the client from video component.

Change-Id: I2d56ef92046572e1aaf334ec8ecdc3f959617434
(cherry picked from commit 456643d21db5eb2655b8015db4ca27e20062b686)
(cherry picked from commit 855e84347ea307aff74447f9e26c86624928f5d3)
mm_video: vidc: Align input buffer size for vdec.

1080p video core needs scratch space in the input buffers.
This change will reduce the input buffer size exposed to client
by scratch buffer requirements of video core.

Change-Id: I56fde759a1c715cb204f5779114f2694f13eb6f7
CRs-Fixed: 366808
(cherry picked from commit b316d6fb49a05634aab369b796bc0d6ef9cee4ba)
(cherry picked from commit 0fb4a5fcd15f6326cd488098ca3325788e883e27)
mm-video: Fix for debug log messages support

Enabling/Disabling debug log messages is controlled
by Android.mk file.
This change fixes the redundancy of the code which was
creating some issues for this support. Now the logs
can be enabled/disabled using Android.mk

Change-Id: I4d4990a112ae494eec133d21ff1127c39878d5f4
CRs-Fixed: 440739
Initial 8x55 mr1 bring up

Change-Id: Ib2830754cd82ed201d51aa457f1b633b7cfabd4c
mm-video:vdec: Video decoder bring-up on 8x55 target

- Set TILE color format for index zero on video port format
- Add ION memory support for video decoder.

Change-Id: Ifef1a15ec7089702c7644fd0e7c1463f81035fc7
mm-core: initial video bring-up on 8x55 target

This change is needed to pick qcom video h/w libraries
for 8x55 target.

Change-Id: Ie6af7da5c30e27c796b2c6827d30682227b825d9
mm-video:venc: Add required ION Heap ID for video encoder buffers

- Allocate video encoder buffers from ION_CAMERA_HEAP_ID memory
  for 8x55 target.

Change-Id: If9d4d4d484d53bffe41940a04adf589d7d1a9ebe
mm-video: Use CM standard qcom naming

Change-Id: I8edc62bb4acaaad604588c135e30dfa7c7854fe5
vidc: Align ion buffer length before allocating it

Align buffer legnth to the required alignment before
allocating it to resolve mmap issue for ion memory
allocations on kernel 3.0 version.

Change-Id: I0acbcdab6afe1e946d257b9a0aeb103d9074e87d
Revert "mm-video:vidc: Add the handling of MPEG-2 extension and user data."

This reverts commit 76c7c96da722bd62c125a144eed0ec26e5985966.

Reason: breaks build (VDEC_EXTRADATA_EXT_DATA and
VDEC_EXTRADATA_EXT_DATA not present in kernel headers)

Change-Id: I52e6fb447dc5a4893de36784049d5063245ff24d
media: allow msm8660 into repo

Change-Id: I1713a946e94202b10fab68652903f4a5af1f4587
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1

Conflicts:
	Android.mk
	mm-core/Android.mk