About Overlay interface

by pramod » Mon, 06 Apr 2009 06:34:11 GMT


Sponsored Links
 hi,


I am implementing a custom MIO which makes use of Overlay interface.
my MIO calls the overlay ref  through the call "mSurface-
interface.

Currently i am facing problem in "mSurface->createOverlay", this is
not returning the OverlayRef. Due to this the next call to "new Overlay
(ref)" is failing.

"LayerBuffer::OverlaySource::OverlaySource(LayerBuffer&
layer,sp<OverlayRef>* overlayRef, uint32_t w, uint32_t h, int32_t
format)"  in LayerBuffer.cpp should return the Overlay ref object.

am i missing anything??? Is the overlay support fully implemented in
current Cupacake branch..?

Thanks in advance.

Pramod
--~--~---------~--~----~------------~-------~--~----~



About Overlay interface

by waterblood » Tue, 07 Apr 2009 02:26:22 GMT


 It should be a overlay engine in surfaceflinger which means a you
should implment a overlay hardware HAL in hardware\libhardware\modules
\overlay



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


About Overlay interface

by pramod » Tue, 07 Apr 2009 03:03:33 GMT


 hi ,

Thanks for responding, i have already implemented the overlay hardware
HAL in libhardware.
The overlay engine is created in the surfaceflinger,during
displayhardware init().
After putting some debug prints i found out that this overlay engine
is properly being used during the creation of the Overlay in
LayerBuffer::OverlaySource::OverlaySource. The OverlayRef is also
created and is retured properly.

But my problem is that i am not being able to access the OverlayRef
object in android_surface_output.cpp. The OverlayRef object is created
using the template class sp<>.

I have even included the libraries libutils, libcutils which might be
needed for usage of template class sp, and also the header file "utils/
RefBase.h".

Still i am not able to access the OverlayRef object.

Any help to solve the issue would be greatly appreciated.

Regards
Pramod




--~--~---------~--~----~------------~-------~--~----~



About Overlay interface

by AJAY » Mon, 13 Apr 2009 10:58:42 GMT


 Hi Hanchao,

I am implementing a custom MIO which makes use of Overlay interface.I
have implemented my MIO calls "mSurface->createOverlay" to get
reference to the OverlayRef object.

The above createOverlay function is implemented in the ISurface.cpp.
The height ,weight, format information is passed using the parcel
object and the overlay is created succesfully. The created overlay is
passed back to the ISurface through the call
"OverlayRef::writeToParcel". But while reading the reply  parcel
through "OverlayRef::readFromParcel(reply)" call ,the OverlayRef
object is NULL.

Did you face similar issue when implementing overlay ?

Regards,
Ajay









--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Am I root?

Hi Guys,
I know I should have the Root rights because it's a Developer Phone,
right? Anyways, a few days ago I updated my G1 with this package:
https://android.clients.google.com/updates/signed-kila-ota-115247-prereq.TC4-RC19+RC28.zip
(sorry I don't know how to link)
And now I tried to use the software called: Screenshot. And it tells
me: "screenshot.raw file not found!". I did some research and found
out that my problem is that I am not root.
How can I find out if I am root or not? And if I'm not, how do I get
my root-status back?
With friendly Regards,
Beni

--~--~---------~--~----~------------~-------~--~----~

2. Running the Emulator in debug mode

in the top right corner of eclipse choose the item that says debug(you
might have to click the expand arrow to see it). after it loads the
new screen run the app in debug and it should break.




--~--~---------~--~----~------------~-------~--~----~

3. Horizontal Scrolling in TableLayout

4. download of the android source

5. View apps list in marketplace?

6. Android Dev Phone 1 Setup

7. Official Android release structure (v1.0, v1.0.1, v1.0.2, etc)?