Buffer copying

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Buffer copying

vaishnavi
We are developing a plug-in which has interface with Hardware driver for transcoding.

To avoid copying, in the driver, we use get_user_pages to map user space memory to the

kernel space.

 

When we use filesrc to read from the file and pass on to this plug-in, we are currently

copying the buffer passed from filesrc to another memory which is allocated using

posix_memalign in the plug-in.

 

Is there a way where we can avoid this copying by asking filesrc to do page alignment

when it allocates a buffer for reading from the file?

 
Thank you
Reply | Threaded
Open this post in threaded view
|

Re: Buffer copying

Clark, Rob
it may be a bit heavy handed to align *all* buffers to page boundary, but you could do that by using the --with-buffer-alignment argument to gstreamer core configure script

BR,
-R

On Fri, Jan 7, 2011 at 7:22 AM, vaishnavi <[hidden email]> wrote:

We are developing a plug-in which has interface with Hardware driver for
transcoding.

To avoid copying, in the driver, we use get_user_pages to map user space
memory to the

kernel space.



When we use filesrc to read from the file and pass on to this plug-in, we
are currently

copying the buffer passed from filesrc to another memory which is allocated
using

posix_memalign in the plug-in.



Is there a way where we can avoid this copying by asking filesrc to do page
alignment

when it allocates a buffer for reading from the file?


Thank you
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Buffer-copying-tp3179110p3179110.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Buffer copying

vaishnavi
Thank you.. Il try that...