Reduce to 2 colors only (black+white) based on threshhold (x-raw GRAY8 format)?

Josh Doe josh at
Tue Nov 21 14:12:01 UTC 2017

On Tue, Nov 21, 2017 at 8:07 AM, HermannSW <hermann at>

> I will write my own plugin (GRAY8 in, GRAY8 out) and compare its
> performance
> with similar pipeline then.

threshold0r uses a LUT which should be quite fast. Of course in your case
there's a GRAY8->RGBA->GRAY8 conversion, so direct on GRAY8 should be
faster than what you're seeing with frei0r. Consider adding this in the
opencv plugin located in gst-plugins-bad, it will make some things a little
easier, and would be nice to add, or at least use GstVideoFilter. Be sure
to implement both transform and transform_ip. If you roll your own, I'd be
curious how orc's cmpgtsb opcode compares to a LUT, both should be very
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list