[Bug 695884] New: Frei0r plugins expose incorrectly split properties for RGB stuff

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Mar 14 15:11:17 PDT 2013


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

           Summary: Frei0r plugins expose incorrectly split properties for
                    RGB stuff
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: nekohayo at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=238937)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=238937)
screenshot

gst-inspect-1.0 frei0r-filter-white-balance


Yields the following element properties besides name, parent, qos:

  neutral-color-r     : Choose a color from the source image that should be
white.
                        flags: readable, writable, controllable
                        Float. Range:               0 -               1
Default:               1 
  neutral-color-g     : Choose a color from the source image that should be
white.
                        flags: readable, writable, controllable
                        Float. Range:               0 -               1
Default:               1 
  neutral-color-b     : Choose a color from the source image that should be
white.
                        flags: readable, writable, controllable
                        Float. Range:               0 -               1
Default:               1 
  green-tint          : Adjust the level of green.
                        flags: readable, writable, controllable
                        Double. Range:               0 -               1
Default:             1.2 


Looking at frei0r's balanc0r.c, I see only one single "neutral-color" property.
I can guess that GStreamer somehow split that property into three.

The problem is that the description incorrectly stays the same for all three
virtual properties, so when you display them in a GUI like pitivi, the
descriptions are all identical.

What's worse however is that in pitivi (and this is both in 0.10 and 1.x git),
the property "names" that are exposed to us by gstreamer are somehow incorrect,
as the attached screenshot demonstrates: instead of "Neutral R color value",
"Neutral G color value", "Neutral B color value", you get only "Neutral Color:"
shown twice and one "Neutral Color-R:"

Not only that, the actual value prop boundaries don't seem to make sense. If my
understanding of the gst inspect output above is correct, it goes from 0.0 to
1.0... but RGB would be 0 to 255 each, no?

This is not necessarily specific to frei0r's white balance filter, various
other frei0r filters seem to be affected in similar ways, especially when it
comes to the naming of human-readable properties names, or descriptions being
missing. Is there a central place where you are overriding frei0r's strings
somewhere in gstreamer?

-- 
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