summaryrefslogtreecommitdiffstats
path: root/domx
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of proprietary firmwarePaul Kocialkowski2013-12-313-40/+0
| | | | | Change-Id: I12604f28cddc7515238055dcd8abe10938d267d8 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* [1/3] omap4xxx: Allow custom DOMX source instead of Google DOMX defaultHashcode2013-01-201-1/+3
| | | | | | | | | | | | | | | | | | | | | Part 1 of 3 patches: To allow omap4 devices to use custom "domx" source via a new BoardConfig.mk item: TI_CUSTOM_DOMX_PATH := device/<manufacturer>/<device-name>/domx This setting provides for 3 changes during the build: 1. In hardware/ti/omap4xxx this settings stops standard Google domx source from being built and changes the domx reference for tiutils. 2. In frameworks/base it changes the default openmax references for frameworks/base/media/jni/mediaeditor/Android.mk to the new location 3. In frameworks/av changes the openmax references in 5 places, and adds new includes in ACodec.cpp, CameraSource.cpp and OMXCodec.cpp This commit for hardware/ti/omap4xxx is based on this cherry-pick from omapzoom (with a more descriptive BoardConfig setting name): http://www.omapzoom.org/?p=platform/hardware/ti/omap4xxx.git;a=commitdiff;h=040534d546dbcfcff16ff1afff15c01c2822dfcc Change-Id: I32bf75073278639dc9e4442168c7b35295beb495 Signed-off-by: Hashcode <hashcode0f@gmail.com>
* Fixup ion change to old libraryRebecca Schultz Zavin2012-07-091-1/+1
| | | | | | | Missed a few places that needed updating Change-Id: I1a483d9d85858e752df0f1d970559fcac6695856 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* Put back old ion libraryRebecca Schultz Zavin2012-06-283-3/+4
| | | | | | | 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>
* Switched to use header files from /frameworks/nativeJames Dong2012-03-121-0/+2
| | | | | | o related-to-bug: 6044887 Change-Id: I45362c0a68f49684e0393fc77ab4d5f55ec53716
* Update includes for ion helper libraryRebecca Schultz Zavin2012-02-223-3/+2
| | | | | | | | 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>
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-2/+2
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I551e5a040249a8908251cd8c8d7131287f1f53de
* am dcddc823: am 43498642: am 402d1d64: DOMX: Add index AutofocusEnableMilen Mitkov2011-11-101-1/+2
|\ | | | | | | | | * commit 'dcddc8233ca55f42d00b7fd322564198eab49e1d': DOMX: Add index AutofocusEnable
| * DOMX: Add index AutofocusEnableMilen Mitkov2011-11-091-1/+2
| | | | | | | | | | | | | | | | | | | | 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>
* | am 3c23a89e: am 978f3598: DOMX: fix an ION handle leakIliyan Malchev2011-11-091-0/+1
|\ \ | |/ | | | | | | * commit '3c23a89e346803d4eeb0dc901006aa3edc49a5b8': DOMX: fix an ION handle leak
| * DOMX: fix an ION handle leakIliyan Malchev2011-11-081-0/+1
| | | | | | | | | | | | | | | | 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>
* | Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block2011-10-251-11/+11
|/ | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: Ic854588fa661ebcc63395c388bf98af268b709c7
* Send correct pBuffer to IL client in EOS case too.Sarthak Aggarwal2011-10-192-2/+6
| | | | | | | Change-Id: I098a1e51eb56a7c6e54c5393dc2952e48f740605 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com> related-to-bug: 5485643
* DOMX: Do not maintain the secure state info at the userspace.Sarthak Aggarwal2011-10-143-50/+86
| | | | | | | | | 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>
* Enable Secure-component call into Misc driverSarthak Aggarwal2011-10-076-13/+153
| | | | | Change-Id: If2cb2f7744967df6632dd097bd5a9576cf4f9718 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
* omap4xxx: remove DOMX logspamSarthak Aggarwal2011-10-071-1/+1
| | | | | | | | | | | 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>
* DOMX: change DCC lookup pathStanimir Varbanov2011-09-281-1/+1
| | | | | | | | | | | | 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>
* MPEG4 enc: Dont encode buffer with filled len zero.Sarthak Aggarwal2011-09-221-1/+21
| | | | | | | | | | | 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>
* DOMX: H264ENC,MPEG4ENC: Fix file-descriptor leak issueDevaraj Rangasamy2011-09-222-21/+22
| | | | | | | | | | | | | | | | 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>
* omap4xxx: fix errors and dead code in usage of pipe(2)Iliyan Malchev2011-09-221-101/+14
| | | | | Change-Id: I7134e635316c2a118498d23521248016b73d6496 Signed-off-by: Iliyan Malchev <malchev@google.com>
* H264 enc: Dont encode buffer with filled len zero.Sarthak Aggarwal2011-09-221-2/+5
| | | | | | | | | | | | 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>
* domx: fix to rectify the memory corruption in mpeg4 enc proxySarthak Aggarwal2011-09-121-5/+4
| | | | | Change-Id: If18b138cc9196342adb044abf460a603ed143b92 Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
* domx: fix to rectify the memory corruption in h264 enc proxySarthak Aggarwal2011-09-121-5/+4
| | | | | Change-Id: Ic8565a8662c0e6f80e548301fadff2a83b376d9f Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
* DOMX: Do proper clean up even in case of error in GetHandleSarthak Aggarwal2011-09-123-4/+16
| | | | | | | | | 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>
* omap4xxx: hasta la vista, libtimemmgrIliyan Malchev2011-09-091-1/+0
| | | | | Change-Id: Ib2e253090258299ec21f9f17e1763be8bf3cc1dc Signed-off-by: Iliyan Malchev <malchev@google.com>
* Moving MPEG4 encoder buffers for surface encoder to gralloc buffersSarthak Aggarwal2011-09-092-78/+47
| | | | | | | | 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>
* Moving DCC buffers from MemMgr to ionSarthak Aggarwal2011-09-092-11/+63
| | | | | Change-Id: I9367d2e918109ecc9bec59bdbfe6238cb7d694cd Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
* Using ion instead of memmgr for all buffers allocated by DOMX.Sarthak Aggarwal2011-09-093-21/+123
| | | | | | | 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>
* Moving encoder buffers for surface encoder to gralloc buffersSarthak Aggarwal2011-09-092-69/+45
| | | | | | | | 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>
* [MPEG4-Enc-Proxy] Add android opaque color conversion supportLakshman Gowda2011-09-023-30/+478
| | | | | | | | | 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>
* DOMX : Multiple focus and exposure areas supportMilen Mitkov2011-09-023-1/+51
| | | | | | | | | | | 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>
* DOMX: Align ion 1d buffer allocations to 4KSuman Anna2011-08-311-1/+1
| | | | | | | | | | | | | 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 : provide extension index support for gralloc buffer usage flags queryLakshman Gowda2011-08-306-15/+102
| | | | | | | | | 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>
* [H264-Enc-Proxy] Add android opaque color conversion supportLakshman Gowda2011-08-305-33/+486
| | | | | | | | | | 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>
* Remove some non fatal error logs in Camera use-caseSundar Raman2011-08-302-7/+10
| | | | | Change-Id: I3d0f40b68c2337e67271784c544db8979dcc0358 Signed-off-by: Sundar Raman <sunds@ti.com>
* MPEG4Enc: New omx proxy component for MPEG4 encoder is addedSrinivas Kowtal2011-08-296-20/+588
| | | | | | Signed-off-by: Srinivas Kowtal <ksrini@ti.com> Change-Id: I8cd4286d5fc303e73817a69b2f8bf518e61ee10d
* Enable NPA mode on h264 encoder.Sarthak Aggarwal2011-08-291-2/+21
| | | | | | | | 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>
* domx: request and allocate smaller-sized buffer in metadata mode recordingJohn Wei2011-08-292-1/+10
| | | | | | | | | | 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>
* DOMX: Log error values on failure scenarios.Devaraj Rangasamy2011-08-261-1/+2
| | | | | | | | 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>
* Free a ion buffer in domx only when it is allocated by DOMXSarthak Aggarwal2011-08-261-0/+3
| | | | | Change-Id: I1b6bb594740122c753d21eaa7a739a8e500ab57d Signed-Off-By: Sarthak Aggarwal<sarthak@ti.com>
* DOMX: Clear metadata data after allocSundar Raman2011-08-251-0/+3
| | | | | | | | | | | | | 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>
* DOMX: Unmap the complete ION buffer while tearing down the componentSarthak Aggarwal2011-08-251-1/+1
| | | | | Change-Id: Iac07645546e352c37170eb46602bd1b6555fe85a Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
* Moving Bitstream buffers to IONSarthak Aggarwal2011-08-247-21/+226
| | | | | | | 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>
* Enabling ION buffers for non-secure video usecasesSarthak Aggarwal2011-08-241-0/+11
| | | | | Change-Id: Ic6d53f51f150de6c8c1324aae7464b984eb6ee52 Signed-Off-by:Sarthak Aggarwal<sarthak@ti.com>
* Add new OMX component for secure playbackSarthak Aggarwal2011-08-241-0/+58
| | | | | Change-Id: Ib55f6a1dd3ef6e9c99798b1bffabeae63671efad Signed-Off-By:Sarthak Aggarwal<sarthak@ti.com>
* omap4xxx: tiler/camera cleanupIliyan Malchev2011-08-232-8/+8
| | | | | Change-Id: Ia63104950fdfbaf41254187dd0ee516fde8eb7d2 Signed-off-by: Iliyan Malchev <malchev@google.com>
* initial commitIliyan Malchev2011-08-0885-0/+26925
Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e Signed-off-by: Iliyan Malchev <malchev@google.com>