initial commit

Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e
Signed-off-by: Iliyan Malchev <malchev@google.com>
omap4xxx: tiler/camera cleanup

Change-Id: Ia63104950fdfbaf41254187dd0ee516fde8eb7d2
Signed-off-by: Iliyan Malchev <malchev@google.com>
Add new OMX component for secure playback

Change-Id: Ib55f6a1dd3ef6e9c99798b1bffabeae63671efad
Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
Enabling ION buffers for non-secure video usecases

Change-Id: Ic6d53f51f150de6c8c1324aae7464b984eb6ee52
Signed-Off-by:Sarthak Aggarwal<sarthak@ti.com>
Moving Bitstream buffers to ION

The patch moves 1d bitstream buffers needed by video codecs from MemMngr to ION.

Change-Id: I56f010f904a64ae0d36bbc8925498f3748a0ab42
Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
DOMX: Unmap the complete ION buffer while tearing down the component

Change-Id: Iac07645546e352c37170eb46602bd1b6555fe85a
Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
DOMX: Clear metadata data after alloc

    There was stale data in the metadata buffers during
    initial few FBDs before omx component was ready to
    fill the data. Seeing this in face detection usecase
    where a few false rectangles are being shown when
    the app is first opened.

Signed-off-by: Tyler Luu <tluu@ti.com>

Change-Id: I442d90a2e81ed0439ea0257850abfa9e0d0da1b1
Signed-off-by: Sundar Raman <sunds@ti.com>
Free a ion buffer in domx only when it is allocated by DOMX

Change-Id: I1b6bb594740122c753d21eaa7a739a8e500ab57d
Signed-Off-By: Sarthak Aggarwal<sarthak@ti.com>
DOMX: Log error values on failure scenarios.

Logs shared/observed on failures dont have proper error code.
UNDEFINED error code masks failure reason

Change-Id: I1a7ba901b1301e283f385db6117807501043bc9f
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
domx: request and allocate smaller-sized buffer in metadata mode recording

request and allocate smaller-sized buffer in metadata mode recording.
the buffer is used to hold video_metadata_t structure (12 bytes). It is
a big saving from allocating an NV12 buffer size. Corresponding Ducati
side change on UseBuffer() is required.

Change-Id: I7e4730c0982e826def844e3cf5050d83063fa2a7
Signed-off-by: John Wei <a0272715@ti.com>
Enable NPA mode on h264 encoder.

This patch completes the i/p buffer optimization in case of metadata buffers
The patch also sets the correct alloc length and filled length to ducati side OMX encoder, while gives the metadata size to the OMX IL client

Change-Id: I0ac758c367ceb9affa6e47fedbc20a80d7058b31
Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
MPEG4Enc: New omx proxy component for MPEG4 encoder is added

Signed-off-by: Srinivas Kowtal <ksrini@ti.com>

Change-Id: I8cd4286d5fc303e73817a69b2f8bf518e61ee10d
Remove some non fatal error logs in Camera use-case

Change-Id: I3d0f40b68c2337e67271784c544db8979dcc0358
Signed-off-by: Sundar Raman <sunds@ti.com>
[H264-Enc-Proxy] Add android opaque color conversion support

Add support for android opaque color format as encoder input and
use color conversion routines to format to NV12 color format
which is passed on to remote OMX encoder component

Change-Id: I45be6a6ea3577cbe9a13e7df87bb399b16e5db29
Signed-off-by: Abhishek Ranka <asranka@ti.com>
Signed-off-by: Lakshman Gowda <lakshman79@ti.com>
DOMX : provide extension index support for gralloc buffer usage flags query

The Stagefright queries DOMX in order to allocate buffers from gralloc with
correct usage flags.

Change-Id: I85dc7bd6bf6b3008a12470bb797df0cce8a370e0
Signed-off-by: Lakshman Gowda <lakshman79@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
DOMX: Align ion 1d buffer allocations to 4K

Set the alignment parameter for ion allocations to 4K. The
allocation size is already configured to be a multiple of
4K. This ensures that all the DOMX buffers can be mapped
into the user-space, and ensure that allocations are not
returned on a 4K boundary due to extraneous ion client
allocations from the same ion heap.

Change-Id: Ief40a6f30f48fccb315e073d28a2591d027e8243
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
DOMX : Multiple focus and exposure areas support

Adds support for multiple focus and exposure areas and
also correctly returning the number of maximum supported
focus and exposure areas in DOMX side.

- Patch set 2 : Rebased.

Change-Id: Ia6983f4006405e69dded064270860d8b1f33d576
Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com>
[MPEG4-Enc-Proxy] Add android opaque color conversion support

    Add support for android opaque color format as encoder input and
    use color conversion routines to format to NV12 color format
    which is passed on to remote OMX encoder component

Change-Id: I569a77b0e4aab3d5a50f3dc9ccf710a5bb6bd77b
Signed-off-by: Lakshman Gowda <lakshman79@ti.com>
Moving encoder buffers for surface encoder to gralloc buffers

Moving the buffers to gralloc removes the unnecessary step
of user-mapping which will improve performance.

Change-Id: I4b1b12c82466a2629e7edc3484f4ab56300dd38c
Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
Using ion instead of memmgr for all buffers allocated by DOMX.

Patch moves all memmgr buffers to ion and maps them to userspace as and when required.

Change-Id: Iff8cc0759594918e5902625c052ea48d74bc07e1
Signed-Off-By: Sarthak Aggarwal<sarthak@ti.com>