On 08/27/2011 03:06 AM, Michael K. Edwards wrote:
Note that read/write can be given semantics that mmap + memory-mapped access doesn't provide. (Block until you get an I frame, then capture a scaled-down picture with no tearing artifacts, all in a single read() syscall ...)
Your use case of blocking on read() can be helpful only for a movie thumbnail in gallery. Otherwise, blocking on read(fd) in a userspace can result in frame loss during the encode kind of operation.
Regards, Subash
Linaro-mm-sig mailing list Linaro-mm-sig@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-mm-sig