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. Possible to hang help/hint bubbles off views?

I'm considering the use of hints on TextViews but curious to know if hint *
bubbles* are possible? (out of the box)

Thanks,
Stace

-- 

2. VOOT: AHA Episode Empat Tidak Tayang

Karena ada kendala operasional (walah... kayak alasan ground staff
maskapai penerbangan bila pesawat delay), hari ini "episode" keempat
layanan uji pakai AHA tidak ditayangkan. Diharapkan besok telah kembali
normal. 

Sebagai pelipur lara, ada sebuah kisah yang terjadi tadi siang dan
sampai saat ini masih membuat saya tersenyum sendiri kala mengingatnya.
Tiga paragraf awal saya copy paste-kan di sini. Kalau masih ingin
membaca lanjutannya, silakan masuk ke http://ponselmu.com/2010/07/01/laptop/



Salam,


Herry SW

===

Kisah ini terjadi tadi siang, 1 Juli 2010, sekitar pukul 12.00.

Saya masih harus menuntaskan ketikan naskah seputar ponsel. Meluncurlah
saya ke Plaza Tunjungan (TP), pusat perbelanjaan teramai dan terbesar di
Surabaya.

engetik di Starbucks saja deh,gumam saya dalam hati. Harga minuman
di sana memang tidak terlalu murah. Namun, saya suka dengan perilaku
staf di sana. Biarpun saya hanya membeli segelas minuman, lalu mengetik
berjam-jam, tak ada bahasa tubuh yang bermakna engusiran

-- 
"Indonesian Android Community [id-android]" 

3. live stream error

4. am i using these correctly? AbsListView.layoutparams

5. Audio

6. init.rc commands not interprete

7. what are the contents of the en.us/*.par files?