forgive me, im a newbie in Linux.Currently Im trying to build an embedded linux system using qemu.
Im am doing some image processing programming with a special library (.so file). This library has a function to read Image from a memory.This library function is to decode an image given from the main program.c .
below are the program flow i created:
1- main program.c get an image file and put into memory with malloc function.
2- The decoder library reads the data from the malloc and compute the result.result is pass back from the library to the main program.c .
What i hope to achieved:
1-I would like to created 3 mmap with the size for and 1.3 megapixel image.
2-By having this 3 mmap, i could store 3 different image for the library to decode later.
3- I would like to know also the specific address like DMA so that i could shared this 3 mmap with a another program.c.
The problem I'm facing :
1- i never used mmap before.How to make 3 mmap?
2-How to put the image into the mmap?
3-Mmap can have a specific address? can i use this address in another program.c ?
Thank you for reading my post, I hope that post wasn't confusing