Hi mengdong.
I add comments.
For detail, I am glad to discuss you by E-mail.
We can also discuss it in http://www.androidin.com/bbs


On 12月21日, 下午5时03分, jasperr <mengdong_...@hotmail.com> wrote:
> I have some questions about the overlay definition in "overlay.h":
> (1) Is the application that calls "createOverlay",
>    and then uses this as the input argument for "SetVideoSurface" in
> the player driver?
>
=========================================================
I don't think ISurface can be touched by Applcation.
You can see in the interface  "SetVideoSurface" is just a ISurface ,
but the implement can be different.
Now you can notice the code in SurfaceFligner , The implementation of
ISurface is there.

The implementation of createOverlay must need base on HW.
The change of PVPlayer is small, only change using allocate buffer in
PVPlayer to using form ISurface.

The interface of ISurface are some , but the  ISurface for Video plane
can different.



> (2) If I want to display video in the full-screen mode, how to get the
> size of display screen by this overlay interface?
> The video render MIO does not care about the display position, just
> let the application set the scaling and roution parameter?
>
=========================================================

The MIO just decode by orignal video size.  The postion and size is
control by SurfaceFligner  now.
If We using HW overlay, the logic seems same.
But The capbility depend on HW.
Now I am investage to find on common method for ViewFinder Preview and
Video Playback,
Also find a common methed for different driver (pmem , fb or v4l2
output ).
For best performance the resize and positon should by done by display
hardware ,but many hardware can't support it.
So there must be a SW method.

> (3) If I want the overlay hardware to allocate more than 2 buffers of
> a specified size, sharing these buffers with the video decoder node:
> Is there an API available?
> Also, I think "swapBuffers" is not enough if I want the overlay to
> display a specified buffer.
=========================================================
It seems swapBuffers just for using double-buffer. like current
PostBuffer method/
Whether it can overlay  more than 2 buffers  depends on HW.
Most Display HW only can support no more than 2 video plane.
You can refer S3C24A0/PXA/OMAP data sheet.

But I seems there needn't  using 2 HW overlay (for video ) at same
time.



>
> Thanks
> Jasperr
--~--~---------~--~----~------------~-------~--~----~
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