summaryrefslogtreecommitdiff
path: root/domx
AgeCommit message (Collapse)Author
2012-10-17TI mainline's DOMXMike J. Chen
Change-Id: I1b6fbb3b897e8caa80c605dcace80114b58e4d40 Signed-off-by: Mike J. Chen <mjchen@google.com>
2012-07-09Fixup ion change to old libraryRebecca Schultz Zavin
Missed a few places that needed updating Change-Id: I1a483d9d85858e752df0f1d970559fcac6695856 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2012-06-28Put back old ion libraryRebecca Schultz Zavin
Non-backwards compatible changes are being made to the version in system core Change-Id: I66d5119fb28a7eb3dc6cb9f7cbd1a8a8d902f290 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2012-03-12Switched to use header files from /frameworks/nativeJames Dong
o related-to-bug: 6044887 Change-Id: I45362c0a68f49684e0393fc77ab4d5f55ec53716
2012-02-22Update includes for ion helper libraryRebecca Schultz Zavin
libion is being moved to system/core. Update the includes to reflect the change. Change-Id: If94feb9b89ff1f6c8f55303ba610d3c39c8d80d8 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2012-01-03Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I551e5a040249a8908251cd8c8d7131287f1f53de
2011-11-10am dcddc823: am 43498642: am 402d1d64: DOMX: Add index AutofocusEnableMilen Mitkov
* commit 'dcddc8233ca55f42d00b7fd322564198eab49e1d': DOMX: Add index AutofocusEnable
2011-11-09am 3c23a89e: am 978f3598: DOMX: fix an ION handle leakIliyan Malchev
* commit '3c23a89e346803d4eeb0dc901006aa3edc49a5b8': DOMX: fix an ION handle leak
2011-11-09DOMX: Add index AutofocusEnableMilen Mitkov
Part of the fix for b/5591797. Used to signify when AF scanning should begin Change-Id: Ie130f308e36fc9aa76d15391c573d52da93b483a Signed-off-by: Milen Mitkov <mmitkov@mm-sol.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-11-08DOMX: fix an ION handle leakIliyan Malchev
This fixes an ION-handle memory leak in mediaserver that occured every time you launch the camera. Change-Id: I01b96f28a538d3a37f1badfa330d380b0df49d4e Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-10-25Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: Ic854588fa661ebcc63395c388bf98af268b709c7
2011-10-19Send correct pBuffer to IL client in EOS case too.Sarthak Aggarwal
Change-Id: I098a1e51eb56a7c6e54c5393dc2952e48f740605 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com> related-to-bug: 5485643
2011-10-14DOMX: Do not maintain the secure state info at the userspace.Sarthak Aggarwal
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 <sarthak@ti.com>
2011-10-07Enable Secure-component call into Misc driverSarthak Aggarwal
Change-Id: If2cb2f7744967df6632dd097bd5a9576cf4f9718 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
2011-10-07omap4xxx: remove DOMX logspamSarthak Aggarwal
Fixes b/5367387 Remove the error trace in case ducati gives ErrorNoMore, which is not an actual error. Change-Id: Ifeb56527f1d5cdb3fb2366a324e5bb6f2ea0a8c7 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-09-28DOMX: change DCC lookup pathStanimir Varbanov
Change the DCC lookup path in the domx, to a path which is not mounted as a read-only as default. This would enable to dynamicaly change the dcc settings, without needing to remount the /system/ partition. Change-Id: I8fdc8c1ec7b3812b12188bfa5cee43c6e4a296c9 Signed-off-by: Vladislav Hristov <vhristov@mm-sol.com> Signed-off-by: Stanimir Varbanov <svarbanov@mm-sol.com>
2011-09-22MPEG4 enc: Dont encode buffer with filled len zero.Sarthak Aggarwal
Fixes b/5332812 Even in case filled len sent by client was 0, proxy was overriding it with a non-zero value leading ducati side to encode it. this patch rectifies that. Change-Id: Ic62cbf5e7bc580d213895475fa28fbb8a004ed7b Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
2011-09-22DOMX: H264ENC,MPEG4ENC: Fix file-descriptor leak issueDevaraj Rangasamy
Fixes b/5360550 H264,MPEG4 Encoder proxies is not releasing pipe on component deinit during encode usecase exit. Patchset2: - removed redundant macro Patchset3: - added mpeg4-enc fix too Change-Id: I1bf9b4bd85fdee7ced74da5918d370624c8c9c43 Signed-off-by: Devaraj Rangasamy <dev@ti.com>
2011-09-22omap4xxx: fix errors and dead code in usage of pipe(2)Iliyan Malchev
Change-Id: I7134e635316c2a118498d23521248016b73d6496 Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-09-22H264 enc: Dont encode buffer with filled len zero.Sarthak Aggarwal
Fixes b/5332812 Even in case filled len sent by client was 0, proxy was overriding it with a non-zero value leading ducati side to encode it. this patch rectifies that. Change-Id: Ia1125fad0fe61ccb4375192f962a2da60202a275 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-09-12domx: fix to rectify the memory corruption in mpeg4 enc proxySarthak Aggarwal
Change-Id: If18b138cc9196342adb044abf460a603ed143b92 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
2011-09-12domx: fix to rectify the memory corruption in h264 enc proxySarthak Aggarwal
Change-Id: Ic8565a8662c0e6f80e548301fadff2a83b376d9f Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
2011-09-12DOMX: Do proper clean up even in case of error in GetHandleSarthak Aggarwal
In case of some error during GetHandle, there was a double free of a pointer which was finally leading to a seg fault. This patch rectifies that clean up path. Change-Id: Ia24fc746d9a274ac0b7bea4b2dfbcde657b15c13 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
2011-09-09omap4xxx: hasta la vista, libtimemmgrIliyan Malchev
Change-Id: Ib2e253090258299ec21f9f17e1763be8bf3cc1dc Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-09-09Moving MPEG4 encoder buffers for surface encoder to gralloc buffersSarthak Aggarwal
Moving the buffers to gralloc removes the unnecessary step of user-mapping which will improve performance. Change-Id: I6e45015799ed955f721299a7fb6d0c7e0cd6d3cf Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
2011-09-09Moving DCC buffers from MemMgr to ionSarthak Aggarwal
Change-Id: I9367d2e918109ecc9bec59bdbfe6238cb7d694cd Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
2011-09-09Using ion instead of memmgr for all buffers allocated by DOMX.Sarthak Aggarwal
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>
2011-09-09Moving encoder buffers for surface encoder to gralloc buffersSarthak Aggarwal
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>
2011-09-02[MPEG4-Enc-Proxy] Add android opaque color conversion supportLakshman Gowda
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>
2011-09-02DOMX : Multiple focus and exposure areas supportMilen Mitkov
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>
2011-08-31DOMX: Align ion 1d buffer allocations to 4KSuman Anna
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>
2011-08-30DOMX : provide extension index support for gralloc buffer usage flags queryLakshman Gowda
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>
2011-08-30[H264-Enc-Proxy] Add android opaque color conversion supportLakshman Gowda
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>
2011-08-30Remove some non fatal error logs in Camera use-caseSundar Raman
Change-Id: I3d0f40b68c2337e67271784c544db8979dcc0358 Signed-off-by: Sundar Raman <sunds@ti.com>
2011-08-29MPEG4Enc: New omx proxy component for MPEG4 encoder is addedSrinivas Kowtal
Signed-off-by: Srinivas Kowtal <ksrini@ti.com> Change-Id: I8cd4286d5fc303e73817a69b2f8bf518e61ee10d
2011-08-29Enable NPA mode on h264 encoder.Sarthak Aggarwal
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>
2011-08-29domx: request and allocate smaller-sized buffer in metadata mode recordingJohn Wei
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>
2011-08-26DOMX: Log error values on failure scenarios.Devaraj Rangasamy
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>
2011-08-26Free a ion buffer in domx only when it is allocated by DOMXSarthak Aggarwal
Change-Id: I1b6bb594740122c753d21eaa7a739a8e500ab57d Signed-Off-By: Sarthak Aggarwal<sarthak@ti.com>
2011-08-25DOMX: Clear metadata data after allocSundar Raman
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>
2011-08-25DOMX: Unmap the complete ION buffer while tearing down the componentSarthak Aggarwal
Change-Id: Iac07645546e352c37170eb46602bd1b6555fe85a Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
2011-08-24Moving Bitstream buffers to IONSarthak Aggarwal
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>
2011-08-24Enabling ION buffers for non-secure video usecasesSarthak Aggarwal
Change-Id: Ic6d53f51f150de6c8c1324aae7464b984eb6ee52 Signed-Off-by:Sarthak Aggarwal<sarthak@ti.com>
2011-08-24Add new OMX component for secure playbackSarthak Aggarwal
Change-Id: Ib55f6a1dd3ef6e9c99798b1bffabeae63671efad Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
2011-08-23omap4xxx: tiler/camera cleanupIliyan Malchev
Change-Id: Ia63104950fdfbaf41254187dd0ee516fde8eb7d2 Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-08-08initial commitIliyan Malchev
Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e Signed-off-by: Iliyan Malchev <malchev@google.com>