Maybe this is some sort of video stream? By middleware component, do
you mean native code?

If so, we're not ready to support this scenario yet. The media
framework is still in flux as we are still working on improvements to
the hardware abstractions. You could certainly hack something like
this up and make it work on the emulator and the G1, but there is no
guarantee it will work in the future.

On Jan 28, 9:02 pm, Dianne Hackborn <[email protected]> wrote:
> You generally don't pass a frame buffer in to a surface, a surface holds a
> buffer that you can render directly in to.  You can look at the Java APIs
> that are in the SDK and documented.
>
>
>
> On Wed, Jan 28, 2009 at 8:49 PM, srini amul <[email protected]> wrote:
> > Thanks for a response.
>
> > My component is in middleware. I received SurfaceView from my application.
> > But i dont know how do i pass my frame bufffer into surface view ?
>
> > Could you please tell me the procedure to pass the frame buffer to surface
> > view ?
>
> > Thanks & Regards,
> > P.Sriniamul
>
> > --- On *Wed, 28/1/09, Dianne Hackborn <[email protected]>* wrote:
>
> > From: Dianne Hackborn <[email protected]>
> > Subject: Re: Displaying RBG data from a framework
> > To: [email protected]
> > Date: Wednesday, 28 January, 2009, 10:06 PM
>
> > What are you trying to do?  Why don't you just use the normal model, where
> > you use SurfaceView to create a surface and write your data into its frame
> > buffer?
>
> > On Wed, Jan 28, 2009 at 8:03 AM, srini amul <[email protected]> wrote:
>
> >>   Hi,   My requirement needs me to draw the RGB data from the framework
> >> layer.
>
> >> Is this possible? From the android code, I seem to understand the
> >> following :
> >> 1. Create an ISurface object from a surfaceView -> surfaceHolder
> >> 2. Create a IMemory object with the RGB data
> >> 4. Call ISurface->RegisterBuffer()
> >> sample piece of code: *************************** void DisplayFrame(UINT8
> >> * frameBuffer, UINT32 frameSize)
> >> {
> >>      *sp<Surface> surface ;*
>
> >>      sp<ISurface> iSurface = surface->getISurface ();
>
> >>      heap = new MemoryHeapBase (frameSize);
>
> >>      mBuffers = new MemoryBase(heap, 0, frameSize);
>
> >>      memcpy (heap->base, frameBuffer, frameSize * 2);
>
> >>      iSurface->registerBuffers (w,h,w,h,PIXEL_FORMAT_RGB_565, heap);
> >>      iSurface->postBuffer(0);
> >> }
>
> >> My doubts are ::
> >> 1. Is my understanding right?
> >> 2. How do i create a surface object ?
>
> >> Thanks & Regards
> >> S.Sriniamul
>
> >> ------------------------------
> >> Unlimited freedom, unlimited storage. Get it now
>
> >> <http://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/yah...>
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support.  All such questions should be posted on public
> > forums, where I and others can see and answer them.
>
> > ------------------------------
> > Add more friends to your messenger and enjoy! Invite them now.
>
> > <http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.co...>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~---------~--~----~------------~-------~--~----~
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