6 years agocamera proxy: pass ion fd's instead of handles
Tyler Luu [Wed, 16 May 2012 08:44:21 +0000 (03:44 -0500)]
camera proxy: pass ion fd's instead of handles

proxy common now requires ion fd's to be passed instead of
ion handles.

Change-Id: Ibc2c8b43ff1556643c533530f93143b9529947ac
Signed-off-by: Tyler Luu <>
6 years agoproxy: add support for sgx register ioctl
Tyler Luu [Tue, 22 May 2012 19:11:02 +0000 (14:11 -0500)]
proxy: add support for sgx register ioctl

rpmsg_omx requires clients to register gralloc (sgx) buffers
using seperate ioctl (OMX_IOCPVRREGISTER). Handles received
from regsiter need to be released using OMX_IOCIONUNREGISTER
when done.

the exploit of passing ion handles is no longer supported directly
to rpmsg is no longer supported. rpmsg mappings will fail if handles
are not first registered.

Change-Id: I8d2bad7a9a6a7c34a96bef494d4327e988c78e8b
Signed-off-by: Tyler Luu <>
6 years agoproxy common: choose buffer 1st in AllocateBuffer
Tyler Luu [Wed, 25 Apr 2012 22:03:54 +0000 (17:03 -0500)]
proxy common: choose buffer 1st in AllocateBuffer

Moving choose buffer logic to the beginning of
AllocateBuffer so we can use it to index tBufList
array when saving ion handle information

Fixes an issue missed by "domx: fix video record"

Change-Id: Icf5ddcda8b2ffdc67f5ac337b4e7b683b90c053f
Signed-off-by: Tyler Luu <>
6 years agodomx: pass registered buffer address to FreeBuffer
Tyler Luu [Fri, 13 Apr 2012 23:26:53 +0000 (18:26 -0500)]
domx: pass registered buffer address to FreeBuffer

Pass registered buffer address to RPC_FreeBuffer in
PROXY_FreeBuffer. rpmsg expects a registered address to
be passed to it when mapping is required.

Change-Id: I50abeaf5a7cfc31298832294648a0b8991cea3ad
Signed-off-by: Tyler Luu <>
6 years agodomx: fix video record
Tyler Luu [Fri, 30 Mar 2012 00:44:56 +0000 (19:44 -0500)]
domx: fix video record

With cpcam kernel changes for rpmsg driver, rpmsg omx
is requiring all buffers be registered and unregistered
starting here:

Since encoders are using this little trick of dynamically
reassigning handles for each input buffer, we will need
to register/unregister the handles every ETB.

Change-Id: Iaefcd8d3ba56605edfc398814bdec9a6524fa196
Signed-off-by: Tyler Luu <>
6 years agoMerge "domx: add register/unregister for buffers"
Keith Deacon [Thu, 24 May 2012 22:15:09 +0000 (17:15 -0500)]
Merge "domx: add register/unregister for buffers"

6 years agoMerge "domx: fixes for reprocessing"
Keith Deacon [Thu, 24 May 2012 22:14:13 +0000 (17:14 -0500)]
Merge "domx: fixes for reprocessing"

6 years agoMerge "domx: Handle Ducati requests for internal allocation"
Keith Deacon [Thu, 24 May 2012 22:13:27 +0000 (17:13 -0500)]
Merge "domx: Handle Ducati requests for internal allocation"

6 years ago[VDEC] Adds Index to enable/disable Decoder Metadata
Shivaraj Shetty [Tue, 8 May 2012 02:08:19 +0000 (07:38 +0530)]
[VDEC] Adds Index to enable/disable Decoder Metadata

Adds OMX_TI_IndexParamVideoEnableMetadata index to configure
the codec metadata. Also adds interface structures for SEI, VUI
and MBInfo Metadata interpretation.

By default SEI and VUI are enabled (only H264D and SVCD),
MBInfo is disabled.

Dependent Ducati Patch:
[VDEC] Full Codec Metadata Export to the Application,6451

Change-Id: I85e3a67410e4d23f0c696cb955654f323136df2f
Signed-off-by: Shivaraj Shetty <>
6 years agodomx: add register/unregister for buffers
Tyler Luu [Wed, 11 Apr 2012 18:36:56 +0000 (13:36 -0500)]
domx: add register/unregister for buffers

need to register/unregister ion and gralloc handles with
rpmsg before sending. this includes shared buffers used
in get/set config and parameters.

Change-Id: I23e4c09349c9c4f87c06b65e270b320dba9f0372
Signed-off-by: Tyler Luu <>
6 years agodomx: fixes for reprocessing
Tyler Luu [Tue, 27 Mar 2012 00:42:52 +0000 (19:42 -0500)]
domx: fixes for reprocessing

1. For OMX_TI_IndexUseNativeBuffers, properly set gralloc
   usage for false case. If client set this index to true,
   a subsequent set to false was not being handled causing
   domx to misintrepret handles.
2. For OMX_TI_IndexUseBufferDescriptor, RPC SetParameters
   needs to be called so Ducati also knows about the
   descriptor. This index was previously only being handled

Change-Id: I928dda6d5ae9b76682c3b60dce4375a1accf09e4
Signed-off-by: Tyler Luu <>
6 years ago[DOMX] Fix missing condition for color conversion
Vidhoon Viswanathan [Wed, 16 May 2012 10:20:17 +0000 (03:20 -0700)]
[DOMX] Fix missing condition for color conversion

The conditional check to initiate color conversion was incomplete.
A portion of it was missed during rebase and dependency changes of
the patch:

This patch adds the missing part to fix the condition.

Change-Id: I121004a0e47d28422ec40863b57682d2288c7d5e
Signed-off-by: Vidhoon Viswanathan <>
6 years agodomx: Handle Ducati requests for internal allocation
Tyler Luu [Fri, 30 Mar 2012 23:33:09 +0000 (18:33 -0500)]
domx: Handle Ducati requests for internal allocation

Indicate to ducati that we want to use dynamically mapped system heap
buffers, and process ducati requests for tiler area to map those buffers

Change-Id: Ic713fc3c65acd3f478e9b6772af7486ff5a3be59
Signed-off-by: David Schleef <>
6 years agoReplacing OMAP_ENHANCMENT flag with USE_ITTIAM_AAC flag
Barry Woodward [Wed, 18 Apr 2012 22:49:47 +0000 (17:49 -0500)]
Replacing OMAP_ENHANCMENT flag with USE_ITTIAM_AAC flag

The OMAP_ENHANCEMENT flag is not needed for TI code.
Also including these lines cause an error in builds where
the Ittiam binaries are not present.  Adding USE_ITTIAM_FLAG
so that this can be configured in the file

Change-Id: Ia3fdefb442dc73280ec2386aff57ca439cdec679
Signed-off-by: Barry Woodward <>
6 years agoMerge "Disable DOMX for omap3 only"
Jean Johnson [Wed, 2 May 2012 10:08:38 +0000 (05:08 -0500)]
Merge "Disable DOMX for omap3 only"

6 years agoDisable DOMX for omap3 only
Jean Johnson [Wed, 2 May 2012 05:19:05 +0000 (00:19 -0500)]
Disable DOMX for omap3 only

Ensure that DOMX is disableld for the OMAP3 program.  Other programs,
based on OMAP4 and OMAP5 use the domx program.  Previously, only the
OMAP4 program had used DOMX.

Change-Id: I798f1dd7dcde776790cfa9c605c9f96e28ba4065
Signed-off-by: Jean Johnson <>
6 years agoWifi Display: Color convert Input buffers based on Pixel format
Vidhoon Viswanathan [Tue, 17 Apr 2012 12:08:26 +0000 (05:08 -0700)]
Wifi Display: Color convert Input buffers based on Pixel format

This patch determines the pixel format of buffers at
LOCAL_PROXY_H264E_EmptyThisBuffer and allocates local buffers for color
conversion only if the format is not NV12. Before, based on color format
of supplying port, local buffers used to be allocated at
LOCAL_PROXY_H264E_AllocateBuffer. But color conversion is dependent on
pixel format of buffer and not color format of supplying port.

Change-Id: I05c7098d515502ac3a5ab2097a5894f05139691a
Signed-off-by: Vidhoon Viswanathan <>
6 years agoH264 enc: Send valid pointer to NV12 buffer even if it has zero filled length.
Andriy Chepurnyy [Thu, 12 Apr 2012 08:56:46 +0000 (11:56 +0300)]
H264 enc: Send valid pointer to NV12 buffer even if it has zero filled length.

Even in case buffer filled len sent by client was 0, proxy should set correct
NV12 ptr preventing error in rpmsg on buffer address translation.

This pacth fix DR OMAPS00266438

Change-Id: I470ffa3c3e8b23f262c34819ac9ae025a160dad3
Signed-off-by: Andriy Chepurnyy <>
Pavel Nedev [Thu, 5 Apr 2012 13:09:31 +0000 (16:09 +0300)]

Added OMX_TI_StereoVideo to OMX_CAMOPERATINGMODETYPE enum in OMX_TI_IVCommon.h

Corresponding Ducati side patches:

Change-Id: I5a312620061582453c95ae788aea72023699c52c
Signed-off-by: Pavel Nedev <>
6 years agoEnumerator declaration correction
Brijesh Nekkare [Tue, 3 Apr 2012 10:30:18 +0000 (16:00 +0530)]
Enumerator declaration correction

Enumerator declaration correction for OMX_TI_INDEXTYPE

Signed-off-by: Brijesh Nekkare <>
6 years agoEncoder: Add a custom index to retrieve the component handle
Brijesh Nekkare [Tue, 3 Apr 2012 09:49:52 +0000 (15:19 +0530)]
Encoder: Add a custom index to retrieve the component handle

For slice based processing between camera and encoder, a tunnel must be set up
between camera and encoder. Therefore, the application requires access to the
component handle. However, the handle is hidden in lower layers of the framework.
Therefore, added a custom Index that applications can use to read the component handle.

Change-Id: I8dd24abe5d78bf188b76d48d88586cb923146679
Signed-off-by: Jorge E. Solano <>
Signed-off-by: Anu Sundararajan <>


Signed-off-by: Brijesh Nekkare <>
6 years agoAdd index OMX_TI_IndexParamComponentExpectedSuspensionState
Abhishek Ranka [Tue, 3 Apr 2012 07:28:06 +0000 (00:28 -0700)]
Add index OMX_TI_IndexParamComponentExpectedSuspensionState

Add support to query using structure OMX_PARAM_SUSPENSIONTYPE
over the index OMX_TI_IndexParamComponentExpectedSuspensionState to
indicate the present or anticipated suspension status of OMX
camera if the IL Client tried to continue using OMX camera. If
OMX-camera is or anticipates it would be blocked on resources
if transitioned from states Loaded to Idle or beyond, it returns
the eType as OMX_Suspended and IL Clients may choose not to
continue using OMX-camera at present and try to use later on.
If the resources are available at present and it already has
or anticipates to get the resources, then the eType is returned
as OMX_NotSuspended.

Signed-off-by: Abhishek Ranka <>
6 years agoDOMX: Pass the correct buf address in PROXY_FreeBuffer
Pavel Nedev [Wed, 21 Mar 2012 10:23:03 +0000 (12:23 +0200)]
DOMX: Pass the correct buf address in PROXY_FreeBuffer

This fixes the address passed from PROXY_FreeBuffer to RPC_FreeBuffer to be the same
that is passed to RPC_UseBuffer from PROXY_UseBuffer.

Change-Id: I8581ec7a6abfafcb8ef11dd360a6114ba4d704d2
Signed-off-by: Pavel Nedev <>
6 years ago[DOMX] Fix Buffer Map type during free buffer
Pradeep Venkatasubbarao [Thu, 22 Mar 2012 13:17:18 +0000 (18:47 +0530)]
[DOMX] Fix Buffer Map type during free buffer

The buffer sent from RPC calls (UseBuffer, AllocateBuffer, FreeBuffer)
will get mapped to approriate space depending on the map type that is
set in the packet.

Even though a pBuffer was sent in the packet, the map type
This resulted in conversion not being done in rpmsg.

This patch sets the RPC_OMX_MAP_INFO_TYPE correctly in the
packet to RPC_OMX_MAP_INFO_ONE_BUF. With this rpmsg will
convert the pBuffer address to ducati side (tiler) address.

Change-Id: I722b618687e178817e2e8ffdb9670e7a5f54d5e9
Signed-off-by: Pradeep Venkatasubbarao <>
6 years agoAdded support for Ittiam AAC and BSAC decoders
Sergii Shcherbakov [Tue, 6 Mar 2012 15:33:20 +0000 (17:33 +0200)]
Added support for Ittiam AAC and BSAC decoders

Change-Id: I8e0cfc195630d0dfcc2ba6d3c644c8d984d5c454
Signed-off-by: Sergii Shcherbakov <>
6 years agoSync between A9 DOMX and Ducati OMX interface
Brijesh Nekkare [Thu, 22 Mar 2012 09:20:20 +0000 (14:50 +0530)]
Sync between A9 DOMX and Ducati OMX interface

This syncup is needed due to the CP-CAM changes

Signed-off-by: Brijesh Nekkare <>
6 years ago[OMAP4-DOMX]Patch to add new index to control feature to skip grey frames
Shivaraj Shetty [Fri, 9 Mar 2012 06:39:16 +0000 (12:09 +0530)]
[OMAP4-DOMX]Patch to add new index to control feature to skip grey frames

Signed-off-by: Shivaraj Shetty <>
6 years ago[cp-cam] enqueue vector shot interface changes
Naveen Kumar Penda [Thu, 8 Mar 2012 11:46:42 +0000 (17:16 +0530)]
[cp-cam] enqueue vector shot interface changes

Change-Id: I416657d5e9fa6d07829458c7f17b7b921fb8267f
Signed-off-by: Naveen Kumar Penda <>
6 years agoAdd interfaces for OMX component allocation support
Naveen Kumar Penda [Mon, 5 Mar 2012 16:00:16 +0000 (21:30 +0530)]
Add interfaces for OMX component allocation support

Signed-off-by: naveen kumar penda <>
This patch enables a OMX component to export its internal
buffer requirements (multiple) and a OMX component user to
query them, allocate them as per the buffer type and set the
buffers. This is expected to happen per port and during
regular OMX buffer life cycle (Loaded>Idle and Port Enable)

ducati side changes:,4950

Change-Id: I88d70364cc6f18a676c0224457ef03cb48595379

6 years agoExtend buffer types in OMX_TI_BUFFERTYPE
Naveen Kumar Penda [Mon, 5 Mar 2012 15:56:13 +0000 (21:26 +0530)]
Extend buffer types in OMX_TI_BUFFERTYPE

Signed-off-by: naveen kumar penda <>
ducati side changes:,4949

Change-Id: Idf9c679b8d325f2d396895bb99baadcf9df19e31

6 years agoDynamic algo disable
Naveen Kumar Penda [Mon, 5 Mar 2012 15:50:32 +0000 (21:20 +0530)]
Dynamic algo disable

Signed-off-by: naveen kumar penda <>
Dynamic algo disable (OMX interface)

1. Need ability to turn off (post-demosaicking) denoising - we definitely want to skip NSF2 and YUV denoising
2. Need ability to turn off sharpening
3. Need ability to set final tone mapping to gamma=1/2.2, or at least to read back the lookup table
4. Need ability to turn off non-linear color processing, i.e. turn off 3D-LUT color mapping

Ducati side changes:,4945

Change-Id: I055e74c9554b812b745c9d5fc5b9a2c622b70105

6 years agoOMX interface for Port Tap Point
Naveen Kumar Penda [Mon, 5 Mar 2012 15:47:37 +0000 (21:17 +0530)]
OMX interface for Port Tap Point

Signed-off-by: naveen kumar penda <>
Ducati side changes:,4943

Change-Id: I69a99ddd247b291f542a40209c95f5c8eec92b39

6 years agoRe-Process mode in single preview
Naveen Kumar Penda [Mon, 5 Mar 2012 15:38:38 +0000 (21:08 +0530)]
Re-Process mode in single preview

Signed-off-by: naveen kumar penda <>
Ducati side change:,4941

Change-Id: I2961e61f169e8ec0ef3cef3e280b5f59ece6d728

6 years agoNew CPCam Usecase interface change
Naveen Kumar Penda [Mon, 5 Mar 2012 15:33:31 +0000 (21:03 +0530)]
New CPCam Usecase interface change

Change-Id: I4291a9effd6061be28a45246b7bb22d75a712ccc
Signed-off-by: naveen kumar penda <>
Ducati side changes:

6 years agoInterface changes for absolute exposure-gain bracketing
Naveen Kumar Penda [Mon, 5 Mar 2012 15:27:17 +0000 (20:57 +0530)]
Interface changes for absolute exposure-gain bracketing

corresponding Ducati patch to be merged:,4938

Change-Id: I2709776c18a0563a3e7694379c42977edac11ac5
Signed-off-by: Naveen Kumar Penda <>
6 years agoUpdating DOMX Core corresponding to OMX Core
Saurabh Bipin Chandra [Fri, 2 Mar 2012 08:59:44 +0000 (14:29 +0530)]
Updating DOMX Core corresponding to OMX Core

Abstracting the dynamic Rate control params exposed at the OMX level by the Ducatimm patch
Change-Id: I5253e6db54115dbade0619ba274c39b5e461b814
to the A9 side.
Also adding a few indexes from the OMX core which were
missing in the DOMX core.

Signed-off-by: Saurabh Bipin Chandra <>
6 years ago[domx-cam]: Buffer allocation for 1080p was smaller for VTC usecase
Phanish Hanagal [Thu, 19 Jan 2012 15:09:12 +0000 (20:39 +0530)]
[domx-cam]: Buffer allocation for 1080p was smaller for VTC usecase

Description: Buffer allocation for VTC usecase with VNF at 1080p was not
sufficient and hence the 1080p usecase was failing. This patch fixes the
allocation issue.

Change-Id: I8622738269e3bb92600669dc93f62f5ef3d820e8
Signed-off-by: Phanish Hanagal <>
6 years agoDOMX: OMX param for sensor compression
Emilian Peev [Fri, 3 Feb 2012 09:39:52 +0000 (11:39 +0200)]
DOMX: OMX param for sensor compression

- Corresponding Ducati change:,4346

Change-Id: I54e0ab344a57c214d1c5c1a94f5ff2e1bb6d5acb
Signed-off-by: Emilian Peev <>
6 years agoSetupTunnel:fix to return Comp returned Err value
Radha Dasari [Fri, 13 Jan 2012 06:51:11 +0000 (12:21 +0530)]
SetupTunnel:fix to return Comp returned Err value

corrected the structure value to be update : so that the
Comp returned Value will be notified to the APP

Signed-off-by: Radha Dasari <>
6 years agoDOMX: Add new camera views
Ivan Evlogiev [Wed, 21 Dec 2011 13:29:01 +0000 (15:29 +0200)]
DOMX: Add new camera views

Depends on
ducati master,3310
ducati 2.0,3312

Change-Id: I2228a97ac75b5cce056e588fd8237870dda36588
Signed-off-by: Ivan Evlogiev <>
6 years agoDOMX: Change use of structure HISTOGRAMTYPE
Ivan Evlogiev [Mon, 19 Dec 2011 14:47:44 +0000 (16:47 +0200)]
DOMX: Change use of structure HISTOGRAMTYPE

were used along/mixed with OMX_TI_HISTOGRAMTYPE and
to be used only.
On A9 side only the HYSTOGRAMTYPE was not cleaned up

Ducati side patches are:
maser branch:,3248
ducati_mmInc2.0 branch:,3251

Change-Id: Ib9a9450a1f12702f4d27a4f55a386918f80a04ea
Signed-off-by: Ivan Evlogiev <>
6 years ago[Code Clean] domx code cleanup
a kasi viswanathan [Mon, 19 Dec 2011 10:45:47 +0000 (16:15 +0530)]
[Code Clean] domx code cleanup

code clean up for domx, removing dead code
Reverting back omx_rpc_stub.c, timm_osal_pipes.c and
omx_proxy_common.c for future use and reference

Signed-off-by: a kasi viswanathan <>
6 years ago[TRACE] Include function name in tracing
a kasi viswanathan [Tue, 6 Dec 2011 07:56:36 +0000 (13:26 +0530)]
[TRACE] Include function name in tracing

Print path to function, line number and function name for trace levels 1, 2 and 5. (error, warning and entry/exit)
Modified to remove tabs and more spaces

Signed-off-by: a kasi viswanathan <>
6 years ago[Compiler warning removal]
a kasi viswanathan [Wed, 7 Dec 2011 05:55:18 +0000 (11:25 +0530)]
[Compiler warning removal]

Removal of compiler warnings.
typecastings of datatypes, adding default statements for switches, etc.

Signed-off-by: a kasi viswanathan <>
6 years agoMerge "[Cleanup] unused roles , unused components"
Pradeep Venkatasubbarao [Tue, 20 Dec 2011 11:30:02 +0000 (05:30 -0600)]
Merge "[Cleanup] unused roles , unused components"

6 years agoDOMX: Adds GLBCE to OMX Capabilities
Emilian Peev [Mon, 12 Dec 2011 09:25:56 +0000 (11:25 +0200)]
DOMX: Adds GLBCE to OMX Capabilities

Change-Id: I196fae46282778240d68331e0a4d1abefb8a8efc
Signed-off-by: Emilian Peev <>
6 years ago[omx-venc]interface update -auto frame rate update
Radha Dasari [Fri, 9 Dec 2011 13:16:35 +0000 (18:46 +0530)]
[omx-venc]interface update -auto frame rate update

interface for the configuration of ato frame rate update
to the codec from component has been added.

OMX when client enbles it, the OMX component calculates
the change in frame rate & inform the codec accordingly.

the corresponding ducati patch is,3030

Signed-off-by: Radha Dasari <>
6 years ago[DOMX] Adding check for null buffer at PROXY_FreeBuffer
Saurabh Bipin Chandra [Fri, 9 Dec 2011 09:55:39 +0000 (15:25 +0530)]
[DOMX] Adding check for null buffer at PROXY_FreeBuffer

Memory unmapping to be avoided for null buffers

Change-Id: I9c2a7fd1029f314f4feddaded981799de0a14a84
Signed-off-by: Saurabh Bipin Chandra <>
6 years ago[Cleanup] unused roles , unused components
a kasi viswanathan [Tue, 6 Dec 2011 13:09:48 +0000 (18:39 +0530)]
[Cleanup] unused roles , unused components

updation of component table for removal of unused roles of components,
unused components and addition of new roles for components.

Signed-off-by: a kasi viswanathan <>
6 years agoPatch to fix segmentation fault in getconfig for SVC decoder
Shivaraj Shetty [Fri, 2 Dec 2011 05:08:24 +0000 (10:38 +0530)]
Patch to fix segmentation fault in getconfig for SVC decoder

This patch fixes the segmentation fault in DOMX while calling getconfig to query layer details for SVC decoder

Signed-off-by: Shivaraj Shetty <>
6 years agoMerge "DOMX: fix an ION handle leak"
Sujatha Ratnala [Thu, 1 Dec 2011 12:21:03 +0000 (06:21 -0600)]
Merge "DOMX: fix an ION handle leak"

6 years agoDOMX: fix an ION handle leak
Tyler Luu [Mon, 28 Nov 2011 22:51:36 +0000 (16:51 -0600)]
DOMX: fix an ION handle leak

This fixes an ION-handle memory leak in mediaserver that occured every time you
launch the camera.

port from omap4xx/domx

Signed-off-by: Iliyan Malchev <>
Signed-off-by: Tyler Luu <>
6 years agoMerge "Properly assering errors in PROXY_checkRpcError"
Sujatha Ratnala [Thu, 1 Dec 2011 11:10:16 +0000 (05:10 -0600)]
Merge "Properly assering errors in PROXY_checkRpcError"

6 years agoMerge "Increase payload size to 300 bytes"
Sujatha Ratnala [Thu, 1 Dec 2011 11:01:34 +0000 (05:01 -0600)]
Merge "Increase payload size to 300 bytes"

6 years agoProperly assering errors in PROXY_checkRpcError
Gabriel Guerrero Hernandez [Wed, 30 Nov 2011 17:12:32 +0000 (11:12 -0600)]
Properly assering errors in PROXY_checkRpcError

Adding PROXY_ASSERT to ensure going to EXIT tag in every function
in case of error from RPC layer.
Discovered in call from PROXY_UseBuffer where even with error from
RPC we were going ahead and update buffer number and updating with
garbage pointer.

Other cases that get affected are: OMX_ProxyCommonInit, PROXY_UseBuffer,
PROXY_AllocateBuffer and RPC_UTIL_GetStride

Signed-off-by: Gabriel Guerrero Hernandez <>
6 years agoIncrease payload size to 300 bytes
Tyler Luu [Mon, 28 Nov 2011 22:14:04 +0000 (16:14 -0600)]
Increase payload size to 300 bytes

Certain configs (i.e. GetComponentVersion) is exceding
the current 240 byte payload and causing segfaults.

Signed-off-by: Tyler Luu <>
6 years agoSupport i/p timestamps for decoders in decode order.
Sarthak Aggarwal [Tue, 29 Nov 2011 12:53:32 +0000 (18:23 +0530)]
Support i/p timestamps for decoders in decode order.

This is WA for IL clients/parsers which cannot
provide presentation TimeStamps to OMX. This makes
OMX give out o/p TimeStamps in the same order
as it recieved i/p time stamps.

Signed-off-by: Sarthak Aggarwal <>
6 years agoomxh264e - interface update to support LTRP modes
Radha Purnima [Wed, 23 Nov 2011 11:03:15 +0000 (16:33 +0530)]
omxh264e - interface update to support LTRP modes

Interface updates related to Long Term Reference Picture
feature support - pulling the changes to ducati mainline
from RIM custom code base
the corresponding ducati side patch is,2745

Change-Id: Ie5fbbcad6a001537c0480460970d6ac594427bd8

6 years agoRevert "Merge "Increase payload size to 484 bytes""
Pradeep Venkatasubbarao [Mon, 28 Nov 2011 05:59:06 +0000 (11:29 +0530)]
Revert "Merge "Increase payload size to 484 bytes""

This reverts commit 638b146a36bccb17ed5a4674aeb9553d5203ccf6, reversing
changes made to 72fb683338bc803f15fa9bdf950562255be6c1bf.

6 years agoIncrease the max number of proxy buffers supported to 100.
Sarthak Aggarwal [Tue, 15 Nov 2011 11:37:04 +0000 (17:07 +0530)]
Increase the max number of proxy buffers supported to 100.

Currently the Max buffers was capped to 32. But certain clips
need more than 32 buffer header.

Hence increasing to a safe value of 100.
Size of each entity is < 50 bytes. So increasing to a large value
will not have any side effects.

Signed-off-by: Sarthak Aggarwal <>
6 years agoMerge "[omx-h264e]interface update for multiple nal/buf support"
Pradeep Venkatasubbarao [Wed, 23 Nov 2011 07:23:08 +0000 (01:23 -0600)]
Merge "[omx-h264e]interface update for multiple nal/buf support"

6 years agoMerge "Increase payload size to 484 bytes"
Pradeep Venkatasubbarao [Wed, 23 Nov 2011 07:22:54 +0000 (01:22 -0600)]
Merge "Increase payload size to 484 bytes"

6 years agoOMX MPEG4 Encoder : Update the VFR config port index
Prasanna Kumar M.R [Fri, 18 Nov 2011 17:37:18 +0000 (11:37 -0600)]
OMX MPEG4 Encoder : Update the VFR config port index

This patch updates the Port where we set the VFR config index
in MPEG4 cases. We are using input port instead of output.
For H264, it is already in input port (as per Ducati changes)

This is in alignment with the Ducati changes done recently

Change-Id: Id477381781746ba3969f44bdee8e3717070e1eda
Signed-off-by: Prasanna Kumar M.R. <>
6 years agoDOMX: Do not maintain the secure state info at the userspace.
Pradeep Venkatasubbarao [Sat, 19 Nov 2011 08:17:02 +0000 (13:47 +0530)]
DOMX: Do not maintain the secure state info at the userspace.

This patch is resubmitted since another patch overwrote the contents.,16522

Rely on the kernel to maintain the secure state. Query the misc driver
for the state whenever need be.
Also whenever misc driver setting of secure mode fails, cleanup properly.

Signed-off-by: Sarthak Aggarwal <>


Change-Id: Ida61a4be74f026b4190678ecabeb7dad53f351e2

6 years ago[omx-h264e]interface update for multiple nal/buf support
Radha Purnima [Fri, 18 Nov 2011 19:40:25 +0000 (01:10 +0530)]
[omx-h264e]interface update for multiple nal/buf support

corresponding ducati patch is,2090

Change-Id: Iab35d86d0253c8ff66c97d5fcdaf20e4d8285fb5

6 years agoDOMX: Fixed reading secure flag
Daniel Levin [Thu, 20 Oct 2011 21:46:11 +0000 (16:46 -0500)]
DOMX: Fixed reading secure flag

Variable 'mode' was remaining uninitialized in case
/dev/rproc_user is not readable, causing random error
"non-secure component not supported in secure mode"
when calling OMX_GetHandle().

Signed-off-by: Daniel Levin <>
Change-Id: I8a4bf74570221e6660459c85e29073c183ef7998

6 years agoMX: Do not maintain the secure state info at the userspace.
Pradeep Venkatasubbarao [Fri, 18 Nov 2011 15:00:26 +0000 (20:30 +0530)]
MX: Do not maintain the secure state info at the userspace.

Rely on the kernel to maintain the secure state. Query the misc driver
for the state whenever need be.
Also whenever misc driver setting of secure mode fails, cleanup properly.

Change-Id: I460138f4751fa729ed06a0e507035a2da2492daf
Signed-off-by: Sarthak Aggarwal <>
6 years agoEnable Secure-component call into Misc driver
Pradeep Venkatasubbarao [Fri, 18 Nov 2011 14:55:39 +0000 (20:25 +0530)]
Enable Secure-component call into Misc driver

Change-Id: If2cb2f7744967df6632dd097bd5a9576cf4f9718
Signed-off-by: Sarthak Aggarwal <>


6 years agoPatch to enable tiler buffer passing
Phanish Hanagal [Fri, 18 Nov 2011 12:33:18 +0000 (18:03 +0530)]
Patch to enable tiler buffer passing

Description: Vtc usecase needs tiler buffers from A9 to be given
to ducati as ducati cannot allocate them directly. Currently 720p
 buffers are allocated which would be enhanced to 1080p.

corresponding ducati patch : 2692 on

Signed-off-by: Phanish Hanagal <>
6 years agoMerge "Remove dependency on LOGV for tracing"
Pradeep Venkatasubbarao [Fri, 18 Nov 2011 12:06:28 +0000 (06:06 -0600)]
Merge "Remove dependency on LOGV for tracing"

6 years agoDOMX: Extend support for mapping two buffers to remote core in SetParamter
Abhishek Ranka [Fri, 18 Nov 2011 10:56:21 +0000 (02:56 -0800)]
DOMX: Extend support for mapping two buffers to remote core in SetParamter

This patch enables to map an array of 2 buffers instead of a single buffer
in SetParameter() by indicating the number of "local" buffers that need
to be mapped to remote core. These 2 buffers must be an array. Exiting
camera proxy is updated to reflect this extension.

Change-Id: Id939dc8a69e693d1ff7c627771960f1bb3ffc946
Signed-off-by: Abhishek Ranka <>
6 years agoRemove dependency on LOGV for tracing
Pradeep Venkatasubbarao [Fri, 18 Nov 2011 09:26:45 +0000 (14:56 +0530)]
Remove dependency on LOGV for tracing

This patch removes the dependecy on LOGV for tracing
in OMX_Core. Instead, TIMM OSAL tracing mechanism
is used to keep it generic across DOMX sub-modules

Change-Id: Id292ef54cc5670afa046be0e00e3f741ef3c9769
Signed-off-by: Pradeep Venkatasubbarao <>
6 years agoMerge "DOMX: Update camera capabilities"
Pradeep Venkatasubbarao [Fri, 18 Nov 2011 09:14:26 +0000 (03:14 -0600)]
Merge "DOMX: Update camera capabilities"

6 years ago[DOMX] Receiving error from PROXY_EmptyThisBuffer
Saurabh Bipin Chandra [Wed, 16 Nov 2011 12:32:35 +0000 (18:02 +0530)]
[DOMX] Receiving error from PROXY_EmptyThisBuffer

Storing the returned error value from PROXY_EmptyThisBuffer
Signed-off-by: Saurabh Bipin Chandra <>
Change-Id: I6e3b59a89f74b1ef507b0d30a5232546be9d6df8

6 years agoDOMX: Update camera capabilities
Ivan Evlogiev [Thu, 17 Nov 2011 13:05:29 +0000 (15:05 +0200)]
DOMX: Update camera capabilities

- Video Noise Filter Supported
- Video Stabilization Supported
- Still Capture During Video Supported
- Mechanical Misalignment Supported
- Face Priority Supported
- Region Priority Supported
- Manual Convergence Min/Max
- Manual Exposure Time Min/Max
- Brightness Min/Max
- Contrast Min/Max
- Sharpness Min/Max
- Saturation Min/Max

Corresponding patch on Ducati side is,2673

Signed-off-by: Ivan Evlogiev <>
6 years agoMerge "[DOMX] Receiving error from PROXY_GetExtensionIndex"
Pradeep Venkatasubbarao [Thu, 17 Nov 2011 04:04:34 +0000 (22:04 -0600)]
Merge "[DOMX] Receiving error from PROXY_GetExtensionIndex"

6 years agoMerge "DOMX: OMX VIDEO DECODER PROXY changes to support raw frame dump to mmc"
Pradeep Venkatasubbarao [Thu, 17 Nov 2011 04:04:06 +0000 (22:04 -0600)]
Merge "DOMX: OMX VIDEO DECODER PROXY changes to support raw frame dump to mmc"

6 years agoRevert "Fix: Compilation issues. Rename LOGV to ALOGV"
Jean Johnson [Wed, 16 Nov 2011 20:55:51 +0000 (14:55 -0600)]
Revert "Fix: Compilation issues. Rename LOGV to ALOGV"

This reverts commit 515fe8be50be3f6e296b812c28b35f557ea20922.

6 years ago[DOMX] Receiving error from PROXY_GetExtensionIndex
Saurabh Bipin Chandra [Wed, 16 Nov 2011 08:53:38 +0000 (14:23 +0530)]
[DOMX] Receiving error from PROXY_GetExtensionIndex

Storing the returned error value from PROXY_GetExtensionIndex

Signed-off-by: Saurabh Bipin Chandra <>
6 years agoDOMX: Adds profile data extra data type
Emilian Peev [Fri, 11 Nov 2011 14:06:23 +0000 (16:06 +0200)]
DOMX: Adds profile data extra data type

- Corresponding Ducati patch:,2519

Signed-off-by: Emilian Peev <>
Change-Id: I556b83506ec50d2be661a110a185437a774b336b

6 years agoIncrease payload size to 484 bytes
Tyler Luu [Tue, 15 Nov 2011 23:06:40 +0000 (17:06 -0600)]
Increase payload size to 484 bytes

Increasing the payload size to max allowed by rpmsg
driver which is (496 bytes - 12 bytes for omx header)

Certain configs (i.e. GetComponentVersion) is exceding
the current 240 byte payload and causing segfaults.

Change-Id: I535b016b6e30dea53c19c8745a471f19e72ee011
Signed-off-by: Tyler Luu <>
6 years agoDOMX: OMX VIDEO DECODER PROXY changes to support raw frame dump to mmc
Sunita Nadampalli [Tue, 15 Nov 2011 17:59:48 +0000 (11:59 -0600)]
DOMX: OMX VIDEO DECODER PROXY changes to support raw frame dump to mmc

Description# setprop controlled mechansim is added to
omx video decoder proxy component to dump the raw frames from
ducati to mmc which can be analysed on PC tools for
debugging and quality assessment.
This feature supports enable/disable frame dump
at run time, the range can be specified.
The frames are dumped to data partition, and they can be
pulled over adb.

By default this feature is kept disabled to avoid security leaks.

How To Enable and Use#
(1) Uncomment the below 2 lines from

And rebuild the omx proxy common component

(2) Before start playback, make sure that "data" folder has r/w
permissions. For this execute the below
mount -o rw,remount -t ext3 /dev/block/mmcblk0p1 /data/
chmod 777 /data/

(3) Set the property for number of frames to dump
eg: setprop 10:20
would dump frames from 10 to 20.

(4) Pull the frames to PC over adb
adb pull /data/frame_10.txt

(5) Analyse on PC tools.

Change-Id: I72c05f568daaaf88c36ceb79d158b65a2a02da1a
Signed-off-by: Sunita Nadampalli <>
6 years agoDOMX: Syncs OMX API
Emilian Peev [Fri, 11 Nov 2011 10:05:46 +0000 (12:05 +0200)]

- Corresponding Ducati patch can be found at:,2566

Change-Id: I1378378b5871414f78756a2894bb40b5871d9927
Signed-off-by: Emilian Peev <>
6 years ago[DOMX-Camera]: Patch to enable setup tunneling and vtc index
Phanish Hanagal [Fri, 11 Nov 2011 11:20:23 +0000 (16:50 +0530)]
[DOMX-Camera]: Patch to enable setup tunneling and vtc index

Description: VTC feature needs tunneling feature between
camera and encoder. This patch enables a9 side tunneling
Index to enable VTC feature is appended to OMX_TI_Index.h

CQ: None

Change-Id: I57cb42d7269d498c93d17db8ac768788c2478af2
Signed-off-by: Phanish Hanagal <>
6 years ago[DOMX] Trace clean up for Proxy
Shivaraj Shetty [Fri, 11 Nov 2011 11:26:30 +0000 (16:56 +0530)]
[DOMX] Trace clean up for Proxy

Trace was showing zero instead of the errorcode returned in
PROXY_paramCheck macro in omx_proxy_common.h
Trace was showing null instead of the checked condition in
RPC_paramCheck macro in omx_rpc_utils.h

Change-Id: Ib3e21ba5fdb12403bed38d3356c6b9293336b18f
Signed-off-by: Shivaraj Shetty <>
6 years ago[DOMX] Check for NULL buffer address for UseBuffer
Saurabh Bipin Chandra [Fri, 11 Nov 2011 09:11:45 +0000 (14:41 +0530)]
[DOMX] Check for NULL buffer address for UseBuffer

Adding a check for NULL buffer address in PROXY_UseBuffer()
and returning appropriate error on failing.

Signed-off-by: Saurabh Bipin Chandra <>
6 years agoOMX Camera: Update Header File to be in sync
a0393677 [Fri, 4 Nov 2011 18:26:03 +0000 (17:26 -0100)]
OMX Camera: Update Header File to be in sync

This patch is to update the header as per the below patch:,2304

Change-Id: Ifddeaca987b63dc916f3dc66b9b51db20a812702
Signed-off-by: Sathya Prakash M R <>
6 years ago[SVCd and VP8d] Adding Indicies and data structure
Pradeep Venkatasubbarao [Fri, 4 Nov 2011 05:42:57 +0000 (11:12 +0530)]
[SVCd and VP8d] Adding Indicies and data structure

This patch adds the needed indicies and data structure for
SVC and VP8 decoders

Change-Id: I2e8248febee825c599c931fe3eb43cb7881e4163
Signed-off-by: Pradeep Venkatasubbarao <>
6 years agonow DCC loading happens during loaded->Idle
naveen kumar penda [Tue, 25 Oct 2011 17:34:21 +0000 (23:04 +0530)]
now DCC loading happens during loaded->Idle

Signed-off-by: naveen kumar penda <>
This patch provides
a. DCC loading happens during loaded -> Idle state transition
b. For Mem-Mem, intelligence added on Ducati side so that no Sensor
 Detect and DCC loading will be executed.

Ducati side patch:,4029
OMX interface changes are taken care:,15842

Change-Id: Icfd874b86993315648227efb67da34dd121c2699

6 years agoOMX Video Encoder : Configure Frame Rate Dynamically
Prasanna Kumar M.R [Sat, 29 Oct 2011 21:49:41 +0000 (16:49 -0500)]
OMX Video Encoder : Configure Frame Rate Dynamically

This patch adds support to configure frame rate to encoder dynamically.
This is necessicated by the Variable Frame Rate support avaialble in Camera
The Frame Rate is fed to encoder periodically to maintain
the quality of recorded Video.

By default it is enabled, we can use the setprop to configire it in runtime
setprop debug.vfr.enable 0 (disable)
setprop debug.vfr.enable 1 (enable)

Ported the changes from GB(#13338) and modified it according to the Ducati
side updates

Change-Id: Id2d38c476d722c40f54a561b268fbe5f8efe7526
Signed-off-by: Prasanna Kumar M.R. <>
6 years agoDOMX: Syncs extended OMX interface between A9 and Ducati
Emilian Peev [Wed, 31 Aug 2011 09:35:12 +0000 (12:35 +0300)]
DOMX: Syncs extended OMX interface between A9 and Ducati

Corresponding dicatu side patch is:,1329

Change-Id: Id410be351093af6e7e08f2a1e1a55bf44b82718e
Signed-off-by: Emilian Peev <>
Signed-off-by: Dimitar Borisov <>
Signed-off-by: Ivan Evlogiev <>
6 years agodomx: return error hardware in case of ducati fault
Sunita Nadampalli [Tue, 25 Oct 2011 18:23:44 +0000 (13:23 -0500)]
domx: return error hardware in case of ducati fault

In case of ducati faults, all pending OMX calls should return
with OMX_ErrorHardware so that client is not blocked waiting
for any OMX call to return while ducati has faulted.

Also, all calls after the error hardware callbacks should
also get OMX_ErrorHardware.Just for GetState no error should
be returned, but the state returned should be OMX_StateInvalid.

Note# This has been ported from the below patch,4852

Change-Id: I3efa845ea052bf4f4fb80b981f9e1701a7c87a31
Signed-off-by: Sunita Nadampalli <>
6 years agoAdded support for 2D virtual buffers
Pradeep Venkatasubbarao [Thu, 27 Oct 2011 05:47:59 +0000 (11:17 +0530)]
Added support for 2D virtual buffers

This patch adds support for passing multiple 2D virtual buffers by
passing a descriptor structure in pBuffer of OMX buffer header.
Interface only support is added for platform 1D and 2D buffers
which is envisioned to be used for passing ION handles

Signed-off-by: Abhishek Ranka <>


Change-Id: I112fbcda623d89e5f20c2e8000caba99f76678ae

6 years agoFix: Compilation issues. Rename LOGV to ALOGV
x0118064 [Wed, 26 Oct 2011 20:42:32 +0000 (15:42 -0500)]
Fix: Compilation issues. Rename LOGV to ALOGV

This patch assigns LOGV to ALOGV as it got renamed
in system/core/include/cutils/log.h.

Change-Id: I8176f2ff6bcf5710ad54e39b8cfe167f70845726
Signed-off-by: Solaiyappan Saravanan <>
6 years agoOMX_proxy: Add support for VC-1 video format
Sunita Nadampalli [Mon, 24 Oct 2011 14:39:54 +0000 (09:39 -0500)]
OMX_proxy: Add support for VC-1 video format

After installation of the parser, it's require to handle the
information received from the initial frame and send it
to codec according to the requirement.

Change-Id: If1dd6eb82a2ce403f9062d659d824b76079d5605
Signed-off-by: Sunita Nadampalli <>
6 years agoMerge "Revert "Merge "DOMX: Skips DCC URI query altogether if DCC data is missing"""
Pradeep Venkatasubbarao [Mon, 24 Oct 2011 11:11:52 +0000 (06:11 -0500)]
Merge "Revert "Merge "DOMX: Skips DCC URI query altogether if DCC data is missing"""

6 years agoRevert "Merge "DOMX: Skips DCC URI query altogether if DCC data is missing""
Pradeep Venkatasubbarao [Mon, 24 Oct 2011 08:06:21 +0000 (13:36 +0530)]
Revert "Merge "DOMX: Skips DCC URI query altogether if DCC data is missing""

This reverts commit 9ec51a2f849f87febb58be13e25613ae2e4f675c, reversing
changes made to aade1a239ce39c926927fc5ca957a1124ce3d78f.

6 years agoMerge "DOMX: Fill pComponentUUID in GetComponentVersion"
Pradeep Venkatasubbarao [Mon, 24 Oct 2011 07:19:55 +0000 (02:19 -0500)]
Merge "DOMX: Fill pComponentUUID in GetComponentVersion"

6 years agoMerge "DOMX: Skips DCC URI query altogether if DCC data is missing"
Pradeep Venkatasubbarao [Mon, 24 Oct 2011 05:40:59 +0000 (00:40 -0500)]
Merge "DOMX: Skips DCC URI query altogether if DCC data is missing"

6 years agoDOMX header updates for interlaced video formats
Sunita Nadampalli [Fri, 21 Oct 2011 15:32:49 +0000 (10:32 -0500)]
DOMX header updates for interlaced video formats

OMX Video and Index headers are updated with the
Interlaced video formats.

Change-Id: I315df31dd0de89d951a1c5864cf2a49bc0f5b8a9
Signed-off-by: Sunita Nadampalli <>