Hi Ravi,

Yes. In case of MP3 we may not need this structure, and there is nothing
present in that structure as far as MP3 is considered. But I am trying to
make it generic so that in case some other type of OMX components needs this
kind of structure of some kinda of init data then how do I achieve this?
I am going to test this feature with MP3 and when I get this structure (init
time data) for time being in case of MP3 I am just going to ignore it.
Also after digging a bit in the code I guess, in case of AAC or AMR some
buffer (I think 2 or 5 bytes) is already being sent to the OMX component.
I want to know how this buffer has been sent to OMX component from the
parser.

Thanks
APT


On Mon, Mar 23, 2009 at 5:52 PM, rktb <[email protected]> wrote:

>
>
>
> On Mar 23, 5:01 am, MMF <[email protected]> wrote:
> > Hi Ravi,
> >
> > Do you mean to say that SendConfigBufferToOMXComponent() call will send
> me
> > the config data as a first frame data using OMX_EmptyThisBuffer() call?
> That is correct.
> >
> > To be very clear let me explain the problem once again.
> > My parser should send some data into a structure which will be used by my
> > OMX component at the time of decoder creation.
> > Can you please let me how do I achieve this?
> What is this structure? I need to know because our OMX mp3 component
> does not require this data, and is still capable of performing it's
> duties. The goal is to always come up with a generic implementation,
> but we are not there yet. We are constantly looking at new OMX
> component implementations and trying to integrate them with our
> framework.
> >
> > Thanks
> > APT
> >
> > On Sat, Mar 21, 2009 at 11:17 PM, rktb <[email protected]> wrote:
> >
> > > Take a look at "PVMFOMXAudioDecNode::InitDecoder( )" in external/
> > > opencore/nodes/pvomxaudiodecnode/src/pvmf_omx_audiodec_node.cpp.
> >
> > > -Ravi
> >
> > > On Mar 21, 11:05 am, MMF <[email protected]> wrote:
> > > > Hi Ravi,
> >
> > > > OK. Agree.
> > > > Can you please let me know how you send config data/information for
> > > "those"
> > > > codecs?
> > > > Its kinda imp as I am trying to generalize the implementation as much
> as
> > > > possible.
> >
> > > > Thanks
> > > > APT
> >
> > > > On Sat, Mar 21, 2009 at 1:15 PM, rktb <[email protected]> wrote:
> >
> > > > > We should remember that the mp3 frames can be totally disjoint. So,
> > > > > configuring the decoder with one set of parameters seems to be
> > > > > dangerous.
> >
> > > > > Generally speaking, we send configuration information for only
> those
> > > > > codecs that have some config data. AMR, MP3, and H.263 decoders
> don't
> > > > > really have config data, and hence there is no information required
> to
> > > > > initialize the decoder.
> >
> > > > > -Ravi
> >
> > > > > On Mar 20, 11:21 pm, MMF <[email protected]> wrote:
> > > > > > Hi Ravi,
> >
> > > > > > Thanks for the reply.
> > > > > > In my case parser has to send this information as I need this
> > > information
> > > > > at
> > > > > > the time of initializing the decoder.
> > > > > > And I would create my decoder instance only when I get this
> > > information
> > > > > > using OMX_AUDIO_PARAM_MP3TYPE.
> > > > > > and then proceed with the decoding.
> >
> > > > > > Regards
> > > > > > APT
> >
> > > > > > On Sat, Mar 21, 2009 at 12:22 AM, rktb <[email protected]> wrote:
> >
> > > > > > > Why would the parser need to communicate this information the
> > > > > > > component? The component will know this when it decodes the
> first
> > > > > > > frame. Right?
> >
> > > > > > > -Ravi
> >
> > > > > > > On Mar 20, 10:33 am, MMF <[email protected]> wrote:
> > > > > > > > Hello Friends,
> >
> > > > > > > > I have a small doubt to be clarified.
> > > > > > > > I will try to explain it with mp3 decoder example.
> >
> > > > > > > > I have a mp3 parser (pv parser node) which is capable of
> > > extracting
> > > > > the
> > > > > > > > information about channel, bit-rate, sample-rate from the
> .mp3
> > > file
> > > > > while
> > > > > > > > parsing.
> > > > > > > > Now this information I need in my OMX mp3 decoder component..
> > > > > > > > Is there any way I can communicate this info from my parser
> to
> > > OMX
> > > > > > > > component? (which is nothing but calling the SetParam of the
> OMX
> > > > > > > component).
> > > > > > > > What I need to do in the parser or in the player engine so
> that
> > > the
> > > > > > > SetParam
> > > > > > > > gets called?
> > > > > > > > Is there any method or way of achieving this in OpenCORE FW.
> >
> > > > > > > > regards
> > > > > > > > APT
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to