Hello all,
I am trying to execute the program which is used to
capture an image.
Here I am using the following few lines,
unsigned char * tmp_image_ptr ;
int VIDEO_BUF_SIZE = (320*240*3);
tmp_image_ptr = mmap(0 , VIDEO_BUF_SIZE , PROT_READ |
PROT_WRITE ,MAP_SHARED , Dev , 0) ;
if((unsigned char *)tmp_image_ptr == (unsigned char *)
-1 )
{ printf("MMAP Failed !\n");
sleep(1);
LogErr("MMAP Failed !\n");
continue ;
}
You can refer the following link to see how mmap()
works in c.
http://www.opengroup.org/onlinepubs/000095399/functions/mmap.html
But the same program runs perfect on Puppy 2.0 Shocked
Can anybody solve this problem ??? Confused
Thanks & Regards,
Ashwini Patil
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
***Archives:
http://groups.yahoo.com/group/linuxvadapav/messages
***Group Usage Guidelines (Please Read):
http://groups.yahoo.com/group/linuxvadapav/files/mailing_rules
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/linuxvadapav/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/