explanation needes on ISurface and PVPlayer interface

by vishal bhoj » Thu, 12 Mar 2009 12:20:19 GMT


Sponsored Links
 Hello all ,


I am just playing around with the playerdriver.cpp  implementation  to get
something on to the screen . . . I wanted to try out the registerBuffer and
postBuffer function . I had added this code at setvideoSurface function to
get some garbage on to the screen but I am getting nothing on the screen. is
there something wrong happening which i am unable to trace ?



 mFrameHeap = new MemoryHeapBase(320* 240*2 );
            if (mFrameHeap->heapID() < 0) {
                LOGE("Error creating frame buffer heap");
                //return false;
            }
            mSurface->unregisterBuffers();
            status_t ret =
mSurface->registerBuffers(320,240,320,240,PIXEL_FORMAT_RGB_565, mFrameHeap);
            LOGD("****************POST
BUFFER************ ret %d",ret);
            LOGD("m   Heap Base = %p %p\tSize = 0x%x =
%d",mFrameHeap->getBase(), mFrameHeap->base(), mFrameHeap->getSize(),
mFrameHeap->getSize());
            uint8 *fb = static_cast<uint8*> (mFrameHeap->base());
            int i;
            for(i=0;i< 240*320*2 ;i++)
            {    *fb= (i & 0xff) ;
                   fb++;
                }
    mSurface->postBuffer(0);
    mSurface->postBuffer(0);
    mSurface->postBuffer(0);
    mSurface->postBuffer(0);
    mSurface->postBuffer(0);
    mSurface->postBuffer(0);
    mSurface->postBuffer(0);

-- 
with regards vishal

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



Other Threads

1. Not able to make perticualar pixels in image as transparent

Hi,

I am trying to make specific colored pixels to transparent in an
image.

One solution may be to read each pixels and then manipulate them but
it will be a performance issue.

is there any way to achive it?

thanks,
Mack

-- 

2. Spectral Souls

Bah... Uda keburu ilang minat ngeliat size nya, hahaha...
Bandwidth n quota wifi di rumah bisa langsung mblesek ntar.
Lagi demen2nya maen homerun battle nih sekarang.

Regards,
William



Uahahaha! Sqya di rumah pake wifi aha. Dl pagi2 2 jaman beres bro. Saya nekat beli soalnya mirip bgt sama ff tactics trus support game pad Xplay. Hihi. Berminat bro? Nanti saya bikin short review nya.
-- "

3. Override the Status bar

4. Ask : Situs gadget super murah Jayasel.com

5. [WTI] Mengapa memilih asus eeepadTransformer?|WTA:Asus transformer

6. Adding points automatic

7. 'Android Eats Apple' Wallpaper - Download