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. Backward-compatibility with 1.5 and view caching

There is absolutely *no need* to do all of this. All you have to do is
call setDrawingCacheEnabled(true) on your View (or ViewGroup) and the
framework will do the rest. This will work on 1.5 and 1.6.

On Thu, May 6, 2010 at 7:22 AM, kr...@boerse-go.de


> 

2. Android Virtual Device

Hello folks,

I was wondering that is it possible to use mike of my development
machine to use as input for the emulator.
I am trying to create new speech recognition app.

Thank you in advance!!!

-- 

3. Android User Base

4. ScrollTextView

5. How to secure passwords

6. How can i call wcf from android !! Help

7. Procss Acore Force Close