After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774944 - iqa makes it difficult to support multiple metrics
iqa makes it difficult to support multiple metrics
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-23 17:13 UTC by LRN
Modified: 2018-11-03 13:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
IQA: Rename iqa element to iqadssim (23.81 KB, patch)
2016-11-23 17:13 UTC, LRN
none Details | Review

Description LRN 2016-11-23 17:13:04 UTC
This was discussed on the IRC, the gist is that iqa hardcodes all input to be converted to RGB for dssim, and not all metrics can be computed on RGB.
One possible fix is to make existing Iqa class a dssim-only class (renaming it to IqaDssim), and implement other metrics as separate IqaSomething classes. Not a lot of code duplication, since GstVideoAggregator does most of the plumbing anyway.
Comment 1 LRN 2016-11-23 17:13:21 UTC
Created attachment 340621 [details] [review]
IQA: Rename iqa element to iqadssim

Remove do-dssim property, as iqadssim only ever does dssim
metric.
Make iqadssim compilation conditional on the dssim presence.
Comment 2 LRN 2016-11-23 17:18:25 UTC
attachment 340621 [details] [review] does not include meson changes, as my meson-fu is a bit weak.
Comment 3 Mathieu Duponchelle 2016-11-23 17:58:28 UTC
I disagree with this patch. My intention with this plugin was to provide the ability to run multiple metrics at once, and emit a single message for all the pads and all the metrics for a set of frames. Can you explain how you would do this with the proposed approach?
Comment 4 Nicolas Dufresne (ndufresne) 2016-11-23 19:08:18 UTC
The current implementation isn't flexible on the pixel format and I don't see how this can be fixed. Having multiple elements with a clear naming convention is a fair workaround to that.
Comment 5 Mathieu Duponchelle 2016-11-23 20:00:50 UTC
From IRC:

<ndufresne> note, I didn't look at what it would be to move from VideoAggregator to Aggregator itself
<ndufresne> we could do the format conversion when needed, as needed
<ndufresne> (this is a suggestion from ocrete)
<ndufresne> from there you accept anything on your input, and in the aggregate funciton, you'll get that original image, which is better when always having a converted image

I'd be way more interested to see this happen.
Comment 6 GStreamer system administrator 2018-11-03 13:59:41 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/479.