generic rate element

Luis de Bethencourt luis at debethencourt.com
Tue Jul 7 11:15:31 PDT 2015


On 7 July 2015 at 14:14, philippe renon <philippe_renon at yahoo.fr> wrote:

> Hi,
>
> I need to write a generic rate element that would be able to throttle or
> interpolate generic buffers.
> It would be similar in function to the videorate or audiorate elements but
> would work on nondescript buffers (could be text buffers...).
>
>
I am looking into introducing a GstBaseRate class. This class would
> eventually serve as a base class for the videorate and audiorate elements
> (in a later stage). That base class would also be used for my own specific
> element where I need special logic to merge or interpolate buffers.
>
> I'll obviously use audiorate and/or videorate as a source of inspiration.
>
> That leads me to my first question:
> Audiorate derives directly from GstElement while videorate derives from
> GstBaseTransform.
> Is there a reason for this difference or could audiorate also be made to
> derive from GstBaseTransform?
>

As far as I know the reason is purely historical. Audiorate was created
before GstBaseTransform existed.

Has anybody ever considered porting audiorate to derive from
GstBaseTranform? I don't know.
It is an interesting idea and I would suggest offering this as your first
step. Propose it in bugzilla :)


> In other words, should the GstBaseRate derive from GstElement or
> GstBaseTransform?
>
> And more generally, does the above make sense or are audiorate and
> videorate irreconcilable by nature and I would be better of writing my own
> rate element without trying to introduce a GstBaseRate class?
>

This would depend on the interest on the above.

Thanks!
Luis


>
> Cheers,
> Philippe.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150707/26d50e34/attachment.html>


More information about the gstreamer-devel mailing list