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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---