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. How to display 'Column title' on the top of List ?

Do you mean a fixed header that always stays on top? Or a header that
moves with the content?





-- 

2. Down Tab Bar in Android

Hi,


How to show tab bar in down in android like iphone ?

Any suggestion?

-- 

3. MotionEvent.ACTION_DOWN stop working after 1 day Livewallpaper

4. OOT: Pejing suhu nurfat

5. simulating drag event

6. help : Live wallpaper di spica gue error.

7. iPhone OS 4 vs Android 2.1 vs Windows Phone 7