porting liboverlay

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


Sponsored Links
 Hi,

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.

Regards,
Sambhav

-- 



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..
LOCAL_MODULE := overlay.$(TARGET_BOARD_PLATFORM)


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
/system/lib/hw/overlay.default.so


Another things is in the sample
programs*frameworks/base/libs/surfaceflinger/tests/overlay/
*
*

sp<OverlayRef> ref = isurface->createOverlay(320, 240,
PIXEL_FORMAT_RGB_565);
*

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,
                        overlayRef->mOverlayHandle);
            }

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
file*frameworks/base/libs/ui/ISurface.cpp
*
from here I was not able to trace where the control is going to.






>> website: 



Other Threads

1. run signed apps from eclipse

is there a way to let eclipse compile always a signed app and run it
on the mobile/emulator

I nearly never use debug and so always when i switch between my
developing app and the
app i publish i have to deinstall the app. quit nerving.

would be way cool if there is an option to automate the signing so i
always work with the
same packet.

chris

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

2. Andoird on x86 fails to boot - dalvik-cache problem

You may be able to reference the init.rc to see which partition is
mounted as /data( by default it seems to be /dev/block/sda8), do you
have the right partition and file system type(ext3)?
--
Chen




--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Raw GPS data from the G1

4. clearing G1 system log?

5. checking for Android home screen

6. Cornell Research Study about Android and Open Source: 20-30 minute interviews - Flexible Times

7. playing video without hardware OpenGL and overlay