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. java.security.NoSuchAlgorithmException: SSLContext SSL implementation not found

Hi All,

I want to use sslsocket to my application. I am having one certificate
file called "myserver.cer"

Using my code i got all the details about certification file .

Now i created instance for SSLContext like below.

SSLContext sc = SSLContext.getInstance("SSL");

If i used this in my code i got one exception called

"java.security.NoSuchAlgorithmException: SSLContext SSL implementation
not found"

Instead of "SSL" i gave "TLS". Its never show this exception.

But i need to use "SSL" protocal. so how can i solve my problem.

Help me,

Thanks,
Kums.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Video Stream

Can anyone point me to a tutorial or post on how to stream video from
my phone to an application running on a server?  Also, can I do this
without displaying the video on an activity?  Perhaps in a background
thread?

-- 

3. Change Browser or Mms(Messaging) app Settings Programmatically

4. Change Browser or Mms(Messaging) app Settings Programmatically

5. Custom BaseAdapter + dynamic updates = crash in ListView layout

6. how to set Wifi settings in Android simulator??

7. How can I create TextAppearanceSpan which looks like an anchor