Skip navigation.
 
mlCGDisplayBaseAddress
FROM : Niyaz
DATE : Wed Apr 13 13:45:06 2005

Hi All,

I tried using CGDisplayBaseAddress API to get the base address to the
frame buffer of active display. Wrote the code as below:

/******************************** CODE BEGINS HERE
*****************************************/

void *addr = CGDisplayBaseAddress();
- Returns the base address in frame buffer memory of a active display or
captured by your application.

/******************************** CODE ENDS HERE
*****************************************/

I was able to execute this statement successfully with some valid
pointer returned. I can say it a valid because if using that pointer I
do memset(addr, size, "aaa"), it makes your display blacked out.

Can anybody please let me know how to make proper use of this pointer or
tell me the structure of the memory being pointed to by this pointer
having base address of framebuffer.

Thanking you in anticipation.

Regards
Niyaz N

Related mailsAuthorDate
No related mails found.