Re: [libdc] Writable DMA buffer
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: David M. <dav...@gm...> - 2011-08-21 17:37:29
|
I guess you are talking about allowing the application to use the mmap region for in-place image processing operations while the buffer is dequeued? I don't see anything wrong with that. Go ahead and add PROT_WRITE and test it out, and if you are happy with it, it sounds good to me. -David On Sun, Aug 21, 2011 at 12:37 AM, Damien Douxchamps <dd...@do...>wrote: > Hi, > > After a long inactive period I was finally looking at libdc's code today > and noticed that the DMA buffer allocation in juju uses read-only flag > PROT_READ. In the legacy 1394 code, both read and write are allowed, > which can avoid an unnecessary memcpy() operation. > > Is there any problem in changing the PROT_READ to (PROT_READ | > PROT_WRITE) ? > > Damien > > -- > Damien 高原 Douxchamps http://damien.douxchamps.net/ > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Mailing list for libdc1394-devel > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libdc1394-devel > |