media: squashed CM commits (1/2)
Revert "Bring up to 4.2.1 for msm8660"

This reverts commit 3f4a8223d04ff1e2836fc6d51532d5dc8230c2e7.

mm-video: Change kernel headers search path

Compilation is failing as user space component is
using kernel header from bionic which is not up-to-date.
Make changes to the make file to include kernel header
from kernel obj of the target out folder.

Change-Id: I1444c55f90999fb332e206a8229aff9eda215b8c

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)

audio: add support for amrwb/amrwb_plus

Change-Id: Ic167fd8fc2af9517642ae4061e8740760007cf0d

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

mm-video: Build video test programs with 'debug' tag

Video test programs should be made available only in
'userdebug' and 'eng' builds but not in 'user' builds.

Change-Id: I58d12f42ad9843278ed2849bc4bb636b80aed583
CRs-fixed: 416069

mm-video: msm_fb_unset and msm_fb_play should be followed by pan update.

- If pan update not called, Video buffers are getting dropped in MDP.
- MSMFB_OVERLAY_PLAY and MSMFB_OVERLAY_UNSET should be followed
  by FBIOPAN_DISPLAY.

Change-Id: Ib572d09ec5ea8524ac05581ec1d70df090b4478b
CRs-Fixed: 440176 415430

Initial 8x55 mr1 bring up

Change-Id: Ib2830754cd82ed201d51aa457f1b633b7cfabd4c

Conflicts:
	mm-video/vidc/vdec/Android.mk

Revert "conditionally use IOMMU only for caf display variant"

This reverts commit 958ec67fc485c8183331163ba9bff3f7b6f4f813.

Conflicts:
	mm-video/vidc/vdec/Android.mk

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

mm-core: Add kKeySmoothStreaming

Change-Id: I93036781cab1d81d8e22a626d61348b71203380b

dashplayer: Add new player for supporting DASH

Change-Id: I23386f49298323cbf0aecddb7fee2016a2ec16f3

qcmediaplayer: Add qcmediaplayer for supporting DASH

Change-Id: I3431b91116504f22a1f53743983657954e80b43c

dashplayer: add text track support

Change-Id: If4612dfca426efbbd9fb1b8afecbc077c3aed753

vidc: Amend output timestamp check condition

The output timestamp need to be checked after
the timestamp reorder operation is completed,
not before the reordering. This change will
amend the check condition accordingly.

Change-Id: Id6fbf714d485e5ecd1847ddaa4d2fa84fa211e28
CRs-fixed: 441917

mm-video: vidc: Try to open secure video decoder again.

Try to open secure video decoder again if first
open fails.

Change-Id: I244970d3d804688b1c57635c1f6c2965f8ee4735
CRs-Fixed: 444078

mm-video: vidc: Broadcasts intent for the start and end of secure playback.

- Broadcasts intent for start and end of secure playback so that other
  services (Wifi-Display) can find out whether secure or non-secure session
  is going on.

Change-Id: Id69042bc449cae29a1dd309c9bfb477c3b005541
CRs-Fixed: 444078

Conflicts:
	mm-video/vidc/vdec/Android.mk

vidc: venc: Disable slice mode for unsupported settings

The video hardware does not support slice size less than
1900 bits in BITS mode multi slice settings, so disable
slice mode in case of unsupported multi slice settings.

Change-Id: Iffbbb7c182b74c9de7f08db0dcade12783b8fbda
CRs-fixed: 442639

media: allow msm8660 into repo

Change-Id: I1713a946e94202b10fab68652903f4a5af1f4587

mm-core: Add registry table for mpeg2 secure playback

During mpeg2 secure playback, the client calls the
OMX_GetHandle method which locates the component
specified by the component name,
OMX.qcom.video.decoder.mpeg2.secure,and loads that
component into the memory.
This change adds the registry table for the above
component name

Change-Id: Ibdaa46c46f858904959c3a1b4cfc53ec9ee85373

mm-video:vdec: Separate meta buffers support in secure mode

Extradata is appended at the end of the output buffer
in the normal scenario. But in case of secure playback,
we can not parse the input and output buffers,
therefore extradata support is unavailable in this case.
This change adds the extradata support in case of secure
playback. For secure playback, extradata is now dumped
in the separate meta buffers which are allocated from
ION_CP_MFC_HEAP_ID that enables HLOS to read and parse it.

Change-Id: I292a15abccfab666d5d319c629e2f9268b7ce5f4

Conflicts:

	mm-video/vidc/vdec/src/omx_vdec.cpp

Conflicts:
	mm-video/vidc/vdec/src/omx_vdec.cpp