<div dir="ltr">On 7 July 2015 at 14:14, philippe renon <span dir="ltr"><<a href="mailto:philippe_renon@yahoo.fr" target="_blank">philippe_renon@yahoo.fr</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:lucida console,sans-serif;font-size:13px"><div>Hi,</div><div><br></div><div>I need to write a generic rate element that would be able to throttle or interpolate generic buffers.</div><div dir="ltr">It would be similar in function to  the videorate or audiorate elements but would work on nondescript buffers (could be text buffers...).</div><div> </div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:lucida console,sans-serif;font-size:13px"><div dir="ltr"></div><div dir="ltr">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.</div><div dir="ltr"><br></div><div dir="ltr">I'll obviously use audiorate and/or videorate as a source of inspiration.</div><div dir="ltr"><br></div><div dir="ltr">That leads me to my first question:</div><div dir="ltr">Audiorate derives directly from GstElement while videorate derives from GstBaseTransform.</div><div dir="ltr">Is there a reason for this difference or could audiorate also be made to derive from GstBaseTransform?</div><div dir="ltr"></div></div></div></blockquote><div><br></div><div>As far as I know the reason is purely historical. Audiorate was created before GstBaseTransform existed.<br><br></div><div>Has anybody ever considered porting audiorate to derive from GstBaseTranform? I don't know.<br>It is an interesting idea and I would suggest offering this as your first step. Propose it in bugzilla :)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:lucida console,sans-serif;font-size:13px"><div dir="ltr">In other words, should the GstBaseRate derive from GstElement or GstBaseTransform?</div><div dir="ltr"><br></div><div dir="ltr">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?</div></div></div></blockquote><div><br></div><div>This would depend on the interest on the above.<br><br></div><div>Thanks!<br></div><div>Luis<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:lucida console,sans-serif;font-size:13px"><div dir="ltr"><br></div><div dir="ltr">Cheers,</div><div dir="ltr">Philippe.<br></div><div> </div></div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div>