[gst-devel] VideoFilter(transformation element) implementation
pkit at mail.ru
Wed Apr 7 23:46:45 CEST 2010
On 07/04/2010 19:44, Edward Hervey wrote:
>> So why is it still in there? Gstreamer is hard enough to figure out as it is.
> Define 'there'. I can't see any mention of that obsolete video filter
> template in git of gstreamer core, -base or -template.
> P.S. Asking for it to be removed instead of complaining as you're doing
> might have, you know... a better chance of it being fixed.
I'll be very happy if it will be fixed. For now I found ~3 working
solutions (really 3 variations of 1 solution). As for now i derive my
plugin from GstElement, and variants are:
1) create temp buffer once in _start() method and free it in _finalize()
2a) create temp buffer, use it and free it in _transform() with GLib
memory management functions
2b) create output buffer (gst_buffer_copy), make transformations on it
and free input buffer (gst_buffer_unref) in _transform() with those
I think 1-st method better, because buffer allocated and freed only once.
But i still think, that it is not the fully right way.
P.S. If in near future i will gain better understanding of this i'll try
to fix template by myself.
More information about the gstreamer-devel