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. First Hello World program

Hello
       Now I have installed all the necessary things and code as in the
first hello world exercise but nothing is happening just a mobile device and
a keypad is there but no hello world is written there so can anybody tell me
that what is wrong with my code.

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

2. Fail in running new application

Hello
       Its is giving me an error


[2008-07-02 23:19:42 - adb] Failed to get the adb version:
CreateProcess: \tools\adb.exe version error=3


while running according to the instructions on the home page of
android.plz help me out.

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

3. import com.google.googlenav.Search not functional in m5??

4. parsing a zip-compressed-xml file from net

5. Can default Theme change default height ?

6. Plz help me out

7. Industry Standard article on deciding which mobile platform to develop for