Re: GStreamer buffer memory pointer

This small addition to GstBuffer.xs fixes my initial problem with adding "data_ptr" method to gstreamer buffer object, 
now I can use OpenGL pixel buffer object efficiently - maybe it will be useful for someone else

On 27 September 2012 16:48, vividsnow <vividsnow gmail com> wrote:

It works, but I'm try to avoid memory copying.

Also there are warnings in this code
*** GPerl asked to invoke callback from a foreign thread; handing it over to the main loop
What I'm doing wrong? or how can I setup callback on each new frame? 
it seems that there is no perl bindings for

Thank you!

On 27 September 2012 11:49, Torsten Schoenfeld <kaffeetisch gmx de> wrote:
On 27.09.2012 00:51, vividsnow wrote:
Is it possible to get memory pointer to a buffer data, so I can pass it
to OpenGL::Array?

Does $buffer->data not work?
gtk-perl-list mailing list
gtk-perl-list gnome org

Attachment: data_ptr.diff
Description: Binary data

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]