[gstreamer-bugs] [Bug 625722] new plugin: cheeseeffects

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Aug 1 05:59:21 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=625722
  GStreamer | gst-plugins-bad | unspecified

--- Comment #13 from Sebastian Dröge <slomo at circular-chaos.org> 2010-08-01 12:59:18 UTC ---
(In reply to comment #12)
> (In reply to comment #11)
> > You're probably right but all the effect names sound so familiar :)
> > 
> > You could also take a look at the geometrictransform element from
> > gst-plugins-bad btw, it has a lot of effects that might be similar too. And it
> > has a nice base class for geometric transformations, which you could probably
> > use too (i.e. it does the original coordinate -> new coordinate mapping).
> 
> Uh, that's one I didn't know about :)
> It has a nice base class you're right and has at least two filters, twirl and
> pinch, which overlap with cheesetwirl and cheesesqueeze.
> 
> It doesn't do the interpolating thing though, it just maps the new pixel to
> nearest neighbour pixel (well it casts doubles to (int), not sure if that
> actually rounds to nearest int) in the source at transformed coords (often
> resulting in jagged output).
> It is not straightly portable to geometrictransform because it currently works
> with 32 bit pixels while that supports also RGB, GRAY8 and GRAY16 caps.

Well, the interpolation thing could be added to the geometrictransform
baseclass I guess. And then you could port most of these effects to that and
automagically get RGB, etc support :)
What do you think?

> Also I'd like to add at least two more filters, lookup table based color
> transforms, "heat" and "sepia". It would be great to have them in Cheese but
> they don't surely fit the geometrictransform plugin.

Yes, that's something different then. How exactly do they work? Is it just a
function from source color to destination color, e.g. mapping of green to blue?
Or does it also take the position into account?
Anyway, I think it might make sense to have a new plugin with a base class for
this and then add the heat/sepia elements as subtypes there. I guess something
like current cheese's "hulk" effect could be done with this too, IIRC it was
just adjusting the hue a bit.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list