porting liboverlay

by Sambhav » Fri, 07 May 2010 21:48:38 GMT

Sponsored Links

By default overlay module at *hardware\libhardware\modules\overlay* is a
skeleton implementation.
I am calling the V4L2 driver calls from these functions.
I have build the module - liboverlay.so

Where should I indicate that Overlay calls made from *
frameworks/base/libs/ui/Overlay.cpp* to use the services from *liboverlay.so
*created above.



porting liboverlay

by Deva R » Mon, 10 May 2010 22:39:18 GMT

 when overlay is created, it walks through overlay hardware module

so, instead of generating generic liboverlay.so, its better to generate
module with hardware name appeneded.

you can update your overlay -> Android.mk module name as below..

Not sure if you leave it as just liboverlay.so, it will work or not..

> website: 

Sponsored Links

porting liboverlay

by Sambhav » Mon, 10 May 2010 23:49:25 GMT

 when hw_get_module is called the hardware.c forms the complete path to the
library based on certain predefined values which by default comes to

Another things is in the sample

sp<OverlayRef> ref = isurface->createOverlay(320, 240,

ref is used in sp<Overlay> overlay = new Overlay(ref);

which comes to the code give below.

    if (overlayRef != 0) {
        if (hw_get_module(OVERLAY_HARDWARE_MODULE_ID, &module) == 0) {
            if (overlay_data_open(module, &mOverlayData) == NO_ERROR) {
               mStatus = mOverlayData->initialize(mOverlayData,

However the condition is failing  if (overlayRef != 0) and hence overlay
object creation fails.

Any idea on what is going wrong ?

the function isurface->createOverlay
comes to
remote()->transact(CREATE_OVERLAY, data, &reply); in
from here I was not able to trace where the control is going to.

>> website: 

Other Threads

1. emulator udp broadcast on host subnet?

I've been able to use the redir command to get packets to and from an
emulator instance from another device on my dev machine's local subnet
- specifying addresses like 192.168.0.xxx works just fine.

I have not been able, however, to send a UDP broadcast packet from the
emulator on my dev machine's local subnet.  Is this possible?  Thanks
for any tips!



2. Anyway to place camera preview onto xml defined surfaceview?

I have been messing with the issue for days to try and place the
camera preview onto a surfaceview defined in my xml layout. Main
reason I am trying to do this is to place it onto a tabview.

used to tie to the surface view to paint.
So on the Preview API  example, if I changed it from
mHolder = getHolder();
SurfaceView mysurfaceview = (SurfaceView)findViewById
mHolder = mysurfaceview.getHolder;

My app compiles fine, but crashes @ runtime.

That should work, but I don't think I have seen an application YET
where the camera preview is loaded onto a SurfaceView. I am able to
resize the preview using the width and height, but that does not
really help as I can't seem to position the view where I need it to


3. Error generating final archive: null

4. WebView.zoomOut() doesn't work right

5. SoundRecordingDemo in v1.0

6. Using resources in WebView

7. google contact ?