Hi,

What you have done so far is good, except for one minor issue. You
should not be touching the pvplayer.cfg file. Instead, you should be
creating your own .cfg file that will be exported to the /system/etc/
folder.

You could add the line "$(call add-prebuilt-files, ETC, myomxmp3.cfg)"
to your makefile that lists your LOCAL_PREBUILT_LIBS.

/==============================
$(call add-prebuilt-files, ETC, myomxmp3.cfg)

LOCAL_PREBUILT_LIBS :=  MyLibrary.so

include $(BUILD_MULTI_PREBUILT)

LOCAL_SHARED_LIBRARIES := MyLibrary
==============================/

Now, for the OpenCORE framework to load your omx core before the PV
omx core, the trick is to rename your .cfg file as 01_myomxmp3.cfg.
While dynamic loading of omx cores we do a bubble sort of the .cfg
files based on the name of the .cfg files. Our updated documentation
based on OpenCORE 2.1 will explain this.

-Ravi

On Mar 1, 11:50 pm, Yogi <yogesh.agrawal2...@gmail.com> wrote:
> Hi Ravi,
>
> We have followed the below step to integrate our MP3 OMX component.
>
> 1.Pushed ".so" to the "out" folder by the following way
>
> /==============================
> LOCAL_PREBUILT_LIBS :=  MyLibrary.so
>
> include $(BUILD_MULTI_PREBUILT)
>
> LOCAL_SHARED_LIBRARIES := MyLibrary
> ==============================/
>
> 2. wrapper interface file defined in  "omx_core_plugin" is modified to
> include our ".so".
>    Created another "*My_sharedlibray.mk" to integrate wrapper
> interface.
>    Wrapper interface file is placed under "omx_sharedlibrary/
> my_interface/src" and build.
>
> 3."*mp3_sharedlibrary.mk" has been modified to remove the lines for
> compiling component and decoder sourcecode."omx_mp3" and "mp3" folders
> are
> removed.
>
> 4.In /system/etc/pvplayer.cfg of "out" folder, entry has been added as
> defined in integration doc.
>
> 5.our omx shared library(.so) includes omx core also.
>
> As there are two omx core library i.e ours and PV's,its always
> executing the PV's omx core library.
> Its should execute our inteface & omx core if we try to play mp3 clip.
>
> I tried one experiment,apart from the above five steps:
> 6. I have removed the entry of libomx_sharedlibrary from system/etc/
> pvplayer.cfg file.
> 7. Commented compilation of libomx_sharedlibrary &
> libomx_mp3sharedlibrary from opencore/Android.mk
> 8. Compiled
>
> After performing the step from 1 to 8, we have observed that PV
> framework is loading our omx core shared libarary,not PV's.
> Hence,its executing the interface which we have customize to load our
> omx core.
>
> How we can load the omx core dynamically with repect to component.i.e
> if we try to play .3gp clip it should load PV's omx core and if we try
> to play .mp3 clip it should load our omx core.
>
> Please help me out if I have done something wrong or I have missed out
> some step.
>
> Thanks,
> Yogi
>
> On Mar 1, 8:56 pm, rktb <yend...@pv.com> wrote:
>
> > Sorry...I did not get your question in here. Can you rephrase?
>
> > -Ravi
>
> > On Mar 1, 1:13 am, Yogi <yogesh.agrawal2...@gmail.com> wrote:
>
> > > Hi All,
>
> > > I have integrated our own openmax core dynamic library into android
> > > system by creating an inteface.
> > > But it is going to existing i.e PV's openMax core library.
>
> > > I tried replacing the existing openMax core library with my openMax
> > > core library,its working.
> > > Its is executing my openmax opencore library.
> > > That means, if there are two openmax core library then it is always
> > > going to existing one.
>
> > > I have followed the same procedure as mention in these post above.
>
> > > Thanks in advance,
> > > Yogi
>
> > > On Feb 27, 12:02 am, v_dusan <veselino...@pv.com> wrote:
>
> > > > From your description - it seems the steps you are performing are
> > > > correct.
>
> > > > We have just posted updated documentation that you may find useful.
>
> > > >http://android.git.kernel.org/?p=platform/external/opencore.git;a=blo...
>
> > > > Section 3.4 and 3.5 may provide more details.
> > > > Hope this helps.
>
> > > > On Feb 18, 11:56 am, Nima <sayikuma...@gmail.com> wrote:
>
> > > > > We have done the following to integrate our OMX1.1 compliant mp3
> > > > > decoder sharedlibraryto PV frame work.Guide us if we are going in
> > > > > wrong direction.
>
> > > > > 1.Pushed ".so" to the "out" folder by the following way
>
> > > > > /==============================
> > > > > LOCAL_PREBUILT_LIBS :=  MyLibrary.so
>
> > > > > include $(BUILD_MULTI_PREBUILT)
>
> > > > > LOCAL_SHARED_LIBRARIES := MyLibrary
> > > > > ==============================/
> > > > > We can see PV's .so files are pushed in 4 places in "out" folder.
> > > > > But we are able to push to 2 places in "out " folder.
> > > > > Whether above lines of code in "My_Andriod.mk" is sufficient to push
> > > > > our .so to "out" folder?
>
> > > > > 2. wrapper interface file defined in  "omx_core_plugin" is modified to
> > > > > include our ".so".
> > > > >    Created another "*My_sharedlibray.mk" to integrate wrapper
> > > > > interface.
> > > > >    Wrapper interface file is placed under "omx_sharedlibrary/
> > > > > my_interface/src" and build.
>
> > > > > 3."*mp3_sharedlibrary.mk" has been modified to remove the lines for
> > > > > compiling component and decoder sourcecode."omx_mp3" and "mp3" folders
> > > > > are
> > > > > removed.
>
> > > > > 4.In /system/etc/pvplayer.cfg of "out" folder, entry has been added as
> > > > > defined in integration doc.
>
> > > > > 5.our omx sharedlibrary(.so) includes omx core also.
>
> > > > > Thanks&Regards,
>
> > > > > On Feb 17, 10:54 pm, v_dusan <veselino...@pv.com> wrote:
>
> > > > > > Hi,
>
> > > > > > You cannot integrate a single OMX component into PV omx core.
> > > > > > You need to build your own OMX core and incorporate your OMX
> > > > > > component
> > > > > > into your own OMX core.
> > > > > > PV framework can then integrate your OMX core using the wrapper
> > > > > > interface
> > > > > > defined in "omx_sharedlibrary" or "omx_core_plugin" as described in
>
> > > > > >http://android.git.kernel.org/?p=platform/external/opencore.git;a=blo...
>
> > > > > > On Feb 17, 11:37 am, Nima <sayikuma...@gmail.com> wrote:
>
> > > > > > > Hi Ravi,
>
> > > > > > > We have done the following to integrate our own OMX IL 1.1 
> > > > > > > Compliant
> > > > > > > Component SharedLibrary(.so) for
> > > > > > > Mp3 decoder to PV framework.Please guide us if we are wrong.
>
> > > > > > > 1.Pushed ".so" to the "out" folder.
> > > > > > > 2."*mp3_sharedlibrary.mk" has been modified to remove the lines 
> > > > > > > for
> > > > > > > compiling component and decoder sourcecode.omx_mp3 and mp3 
> > > > > > > folders are
> > > > > > > removed.
> > > > > > > 3.Android _omx_sharedlibrary.so is used as wrapper
>
> > > > > > > Thanks&Regards,
>
> > > > > > > On Feb 17, 10:08 am, Nima <sayikuma...@gmail.com> wrote:
>
> > > > > > > > Hi Ravi,
>
> > > > > > > > We have our own OMX IL 1.1 Compliant Component 
> > > > > > > > SharedLibrary(.so) for
> > > > > > > > Mp3 decoder.
> > > > > > > > We would like to integrate this sharedlibraryto PV 
> > > > > > > > framework.Kindly
> > > > > > > > lets know the procedure to be followed for the intergration.
>
> > > > > > > > Thanks &Regards
>
> > > > > > > > On Feb 17, 12:46 am, rktb <yend...@pv.com> wrote:
>
> > > > > > > > > "include $(BUILD_MULTI_PREBUILT)" does NOT link the libraries 
> > > > > > > > > against
> > > > > > > > > any other components. It is just pushing the libraries to the 
> > > > > > > > > "out"
> > > > > > > > > folder in the correct location to be picked up before the 
> > > > > > > > > system image
> > > > > > > > > is created.
>
> > > > > > > > > To prevent the possibility of being overwritten, tt is not 
> > > > > > > > > preferred
> > > > > > > > > to link a3rdpartylibraryagainst PV's OpenCORE framework 
> > > > > > > > > without
> > > > > > > > > prior discussing it with PV. If this is a dynamically 
> > > > > > > > > loadable OMX
> > > > > > > > > module, you can create a new .cfg file and push it on to the 
> > > > > > > > > system
> > > > > > > > > without PV's involvement.
>
> > > > > > > > > What exactly are you trying to achieve here? We can provide 
> > > > > > > > > more help
> > > > > > > > > if we know the usecase.
>
> > > > > > > > > -Ravi
>
> > > > > > > > > On Feb 16, 11:26 am, Nima <sayikuma...@gmail.com> wrote:
>
> > > > > > > > > > whether the same procedure can be applied for linking a 
> > > > > > > > > > sharelibrary?
> > > > > > > > > > Where the3rdpartylibrarycan be placed in PV frame work?
>
> > > > > > > > > > On Feb 16, 7:31 pm, rktb <yend...@pv.com> wrote:
>
> > > > > > > > > > > Please try "include $(BUILD_MULTI_PREBUILT)".
>
> > > > > > > > > > > -Ravi
>
> > > > > > > > > > > On Feb 16, 6:38 am, waterblood <guoyin.c...@gmail.com> 
> > > > > > > > > > > wrote:
>
> > > > > > > > > > > > Hi All,
>
> > > > > > > > > > > >    I just want to write a Android.mk to automatically 
> > > > > > > > > > > > install a3rd-
> > > > > > > > > > > >partylib to target lib directory, so in other Android.mk 
> > > > > > > > > > > >can link
> > > > > > > > > > > > them.  Below is my make file. But it cannot work
>
> > > > > > > > > > > >    LOCAL_PATH := $(my-dir)
> > > > > > > > > > > >    include $(CLEAR_VARS)
>
> > > > > > > > > > > >    LOCAL_PREBUILT_LIBS := \
> > > > > > > > > > > >         libmy.a
>
> > > > > > > > > > > >    include $(BUILD_PREBUILT)
>
> > > > > > > > > > > > The error message is "dont use LOCAL_PREBUILT_LIBS 
> > > > > > > > > > > > anymore ........".
> > > > > > > > > > > > If using " include $(BUILD_HOST_PREBUILT) " , the 
> > > > > > > > > > > > libmy.a will be
> > > > > > > > > > > > copied to host lib directory.
>
> > > > > > > > > > > >   Thanks for any reply.
>
> > > > > > > > > > > > Guoyin Chen- Hide quoted text -
>
> > > > > > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to