merge in klp-release (no-op)
mm-video: venc: allocate input buffers as uncached

YUV data written by CPU producers (MediaCodec apps) are not

Bug: 10192531

Change-Id: I1975b9b63ad4af474340ac366af32c8c3863b4bb
Merge "mm-video: venc: allocate input buffers as uncached" into klp-dev
mm-video: vidc: Fix codec config behavior in flush

Send pending codec config data to the driver when flushing.
Reset intermediate buffers handles when input port is
disabled and port buffers are freed.

Bug: 11099331

Signed-off: Leena Winterrowd <lenhardw@codeaurora.org>
Change-Id: Ifd674b71ce04a4be16b564c53122ce5c5e4d92f1
mm-video: vidc: stability fixes in decoder

Synchronize access to extradata buffer which is allocated
and accessed in separate threads.
Do not unmap output handles in dynamic buffer mode when
buffers are freed (since they are unmapped already in FBD)

Bug: 11099331
Bug: 11366221

Signed-off: Leena Winterrowd <lenhardw@codeaurora.org>
Change-Id: I26d02c183d8496a52d4ded51c53f44eaf5e6e0b0
mm-video: vidc: Fix codec config behavior in flush

Send pending codec config data to the driver when flushing.
Reset intermediate buffers handles when input port is
disabled and port buffers are freed.

Bug: 11099331

Signed-off: Leena Winterrowd <lenhardw@codeaurora.org>
Change-Id: Ifd674b71ce04a4be16b564c53122ce5c5e4d92f1
mm-video: vidc: stability fixes in decoder

Synchronize access to extradata buffer which is allocated
and accessed in separate threads.
Do not unmap output handles in dynamic buffer mode when
buffers are freed (since they are unmapped already in FBD)

Bug: 11099331
Bug: 11366221

Signed-off: Leena Winterrowd <lenhardw@codeaurora.org>
Change-Id: I26d02c183d8496a52d4ded51c53f44eaf5e6e0b0
media: Only build when no variant is set

Change-Id: I4363e0c9163050932a52711d080b0957e1d5925c
merge in release branch changes (no-op).
mm-video: vidc:  release registered buffers from driver

In some scenarios, component may restart from loaded to idle
state in the same context and it is resulting in the preapare
buf failure as previous buffers are not unregistered. Unregister
the buffers from driver while stopping the component.

b/11051201

Signed-off: Manikanta Kanamarlapudi<kmanikan@codeaurora.org>

Change-Id: I048cf715d2e83b05df99eaf10776cff0bbb2acd2
mm-video: venc: switch between executing and loaded.

when the v4l2 modules stopped, it will free all output
and input buffers. So when it is re-started again,
re-do the VIDIOC_REQBUFS command again.

b/11051201
Signed-off: Kim Zhang<xiazhang@codeaurora.org>
Change-Id: I7c6de237fdd7476ca4ebc7d1f1016e86f3af9d95
mm-video: vidc: venc: add set ctrl to request sequence header

The omx component can explicitly request for sequence header
using the set ctrl id - V4L2_CID_MPEG_VIDC_VIDEO_REQUEST_SEQ_HEADER.
The omx component should not rely on the driver to
send sequence header on it's own.

b/11051201

Change-Id: Ie5c2adc11c15b84a7f659d75357a09b7758ea199
Use actual kernel headers and display-caf paths if defined

Change-Id: I7338867f6eb4d88b33b610a2b2f93280ed6e71bc
QCMetaData: Add key for interlace

key for interlace set in metadata is being used for thumbnail mode.
If the key is set, two ETB are send to the decoder

Change-Id: I1e4e996f46f022916ab5f4f14ff2c111f04717c1
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 tag 'android-4.4.1_r1' into HEAD

Android 4.4.1 Release 1
media: fix msm8660 omx issue

for msm8660: previous code lost libOmxVdec.so & libOmxVenc.so , now fixed it!

Change-Id: Ie6db1be912f0411bca47e9bfba9d0b7053febb18
mm-video: venc: restrict codec level based on target specific macro

Without this change, call for supported codec levels for
different codec profile returned same for different chipset.

The change will now return different codec levels supported
for different chipset.This change will fix CTS case.

Change-Id: I2da19265b5b9360aae363b2b43fe83b8f007fc96
CRs-Fixed: 572716
vidc: venc: Add support for AVCProfileConstrainedBaseline

This change adds AVCProfileConstrainedBaseline profile
support for H264 encoder. OMX Client can now set this
profile to get required profile settings in SPS NAL unit
from video component.

CRs-Fixed:525412

Change-Id: Id15f620cd3a39b199b2750db92ac1c23bc083c88
Fix the header-inclusion paths for non-AOSP A and B-family targets

AOSP chose to use specific platform names to split the A/B-family
implementations of the display HALs, but we support other platforms
within the same families. Add support for those.

Change-Id: I8a4b9164e04e0fb7128216e56f76b4d96fc1868c