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. what type of functioanlities will be written in onStart method

hi group,
In most  of the example i came across the net , didn't have much talk
on "onStart()" method ,so let me know what kind of functionalities
will be writen in this method

Thanks

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

2. Will ADP1 support payed apps from the store

I am writing this, because of this news ->
http://www.engadgetmobile.com/2009/02/25/google-blocking-paid-market-apps-from-dev-phone-1-users/
. Is this true? And will ADP1 support buying payed apps? I am truly
hopping that it will, because otherwise we will be not able to see the
competition`s apps and many more features which will be missing if
there is no payed apps on the phone.

Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. Where can i see the Android applications and its price

4. Where can i see the Android applications and its price

5. core Android mail - access to emails from other applications

6. where are the apk located

7. How-To Remove An App Icon from Home Page?