Did you make sure that the input bitstream to your component matches,
i.e., is as expected w.r.t. the "test application"?

-Ravi

On Mar 3, 3:12 am, anupama <[email protected]> wrote:
> Hi All,
>
> I am working on aac-codec integration.It is integrated to PV framework
> and I am able to play the audio file.But the sound quality very
> poor.From the dumped logs I have found that the decoded output is not
> the expected one.
>
> My codec-component works as follows -
> ==============================
>
> - In ComponentInit() the component thread is created and structure for
> private data of the component is input to the thread.
>   (The private data of the componenet includes input and output port
> related information, buffer related information,  specifications for
> audio decoder..etc).
>
> - When EmptyThisBuffer() gets called in the main thread, I am setting
> one flag and writting that to the pipe which is accessed in the
> component thread.I am not writing the buffer contents to the pipe.It
> is passed to the component thread as parameter.
>
> - The component thread keeps on checking for the flag which gets set
> in the EmptyThisBuffer.If it finds the flag as set and the state is
> OMX_StateExecuting, the decoding process starts.
>
> - As PV sends raw data (with stripped header) to the component, my
> codec-component is implemented in the way that it can handle raw data.
>
> - But the issue is when I am testing my component separately it works
> fine.
>   When I integrate this with the PV framework and play an audio file
> (ADTS file), I am getting the    sound, but the sound quality is not
> at all good.
>
> - And also I have crosschecked the decode o/p of my test application
> when I am testing my  component separately with the decoded o/p which
> I get  when I play in PV  framework , it mismatches.
>
> I am not getting where I am going wrong.
> Does PV expect anything else from the component?
>
> Thanks & Regards,
> Anupama

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to