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 689355 - gst-discoverer does not provide image depth anymore
gst-discoverer does not provide image depth anymore
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.x
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-11-30 15:14 UTC by Jens Georg
Modified: 2014-08-10 10:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
typefinding: add format, depth and parsed fields to PNG caps (3.51 KB, patch)
2013-01-05 16:01 UTC, Tim-Philipp Müller
none Details | Review

Description Jens Georg 2012-11-30 15:14:29 UTC
From discussing with Tim on IRC this is intentional as the situation on 0.10 also wasn't giving the depth of the image but rather of whatever decoder happened to be plugged.

The problem is that I need that information for DLNA so it would be great to it that back somehow.
Comment 1 Tim-Philipp Müller 2012-11-30 15:21:21 UTC
Can you be more specific, what depth for what formats you need exactly?
Comment 2 Jens Georg 2012-11-30 15:31:58 UTC
PNG mostly. I need the color bits information (8, 16, 24 with or without alpha)
Comment 3 Tim-Philipp Müller 2013-01-05 16:01:37 UTC
Created attachment 232826 [details] [review]
typefinding: add format, depth and parsed fields to PNG caps

Perhaps this would help?

Yields caps like this:

$ gst-typefind-1.0 ~/.cache/epiphany-browser/* 2>/dev/null | grep png | sed -e 's/^.*image/image/'
image/png, width=(int)423, height=(int)172, format=(string)RGB, depth=(int)24
image/png, width=(int)90, height=(int)34, format=(string)RGBP, depth=(int)8
image/png, width=(int)32, height=(int)32, format=(string)RGBA, depth=(int)32
image/png, width=(int)192, height=(int)324, format=(string)RGB, depth=(int)24
image/png, width=(int)57, height=(int)18, format=(string)RGBA, depth=(int)16
image/png, width=(int)100, height=(int)100, format=(string)RGB, depth=(int)24
image/png, width=(int)100, height=(int)100, format=(string)RGB, depth=(int)24
image/png, width=(int)32, height=(int)32, format=(string)RGBA, depth=(int)16
image/png, width=(int)175, height=(int)50, format=(string)RGBP, depth=(int)8
image/png, width=(int)64, height=(int)64, format=(string)RGB, depth=(int)24
image/png, width=(int)32, height=(int)32, format=(string)RGBA, depth=(int)16
image/png, width=(int)442, height=(int)32, format=(string)RGB, depth=(int)24
image/png, width=(int)256, height=(int)256, format=(string)RGBP, depth=(int)8
image/png, width=(int)369, height=(int)367, format=(string)RGB, depth=(int)24
image/png, width=(int)56, height=(int)37, format=(string)RGBA, depth=(int)16
image/png, width=(int)167, height=(int)924, format=(string)RGBA, depth=(int)16
image/png, width=(int)190, height=(int)80, format=(string)RGBA, depth=(int)16
image/png, width=(int)940, height=(int)373, format=(string)RGBA, depth=(int)16
image/png, width=(int)174, height=(int)174, format=(string)RGB, depth=(int)24
image/png, width=(int)7, height=(int)6, format=(string)RGBA, depth=(int)16
image/png, width=(int)16, height=(int)26, format=(string)RGB, depth=(int)24
image/png, width=(int)110, height=(int)29, format=(string)RGBA, depth=(int)16
image/png, width=(int)16, height=(int)656, format=(string)RGBA, depth=(int)16
image/png, width=(int)120, height=(int)46, format=(string)RGBA, depth=(int)16
image/png, width=(int)2500, height=(int)21, format=(string)RGBA, depth=(int)16
image/png, width=(int)132, height=(int)109, format=(string)RGBA, depth=(int)16
image/png, width=(int)21, height=(int)21, format=(string)RGBA, depth=(int)16
image/png, width=(int)300, height=(int)250, format=(string)RGBP, depth=(int)8
image/png, width=(int)32, height=(int)32, format=(string)RGBA, depth=(int)16
image/png, width=(int)9, height=(int)7, format=(string)RGBA, depth=(int)16
image/png, width=(int)11, height=(int)11, format=(string)RGBP, depth=(int)8

Question is what depth means, e.g for paletted RGB. Maybe the field should be called something else than "format", not sure.
Comment 4 Sebastian Dröge (slomo) 2013-01-06 11:20:55 UTC
depth seems to be redundant in combination with format. The format already contains the depth information
Comment 5 Tim-Philipp Müller 2013-01-06 12:06:21 UTC
There can be different bpp for each format.
Comment 6 Sebastian Dröge (slomo) 2013-01-06 12:31:55 UTC
Ah so it's not a mapping to the GStreamer video/x-raw formats. I don't mind calling it format though, or you could call it colorspace like in JPEG2000.
Comment 7 Tim-Philipp Müller 2013-01-06 16:40:45 UTC
See http://en.wikipedia.org/wiki/Portable_Network_Graphics#Color_depth  for the full range of possibilities.

Could make it lower-case and spell it out to differentiate from the video formats.
Comment 8 Jens Georg 2013-01-10 10:34:50 UTC
if that ends up in discover info, that'll help alot
Comment 9 Jens Georg 2013-05-06 12:03:25 UTC
I checked our profiles, it was using every bitrate anyway, so we can probably close it and I remove the restriction from our code
Comment 10 Jens Georg 2013-05-06 12:03:39 UTC
depths, not bitrates.
Comment 11 Jens Georg 2014-08-10 08:57:38 UTC
Can be closed from my pov
Comment 12 Tim-Philipp Müller 2014-08-10 09:38:52 UTC
So you don't need the patch after all? ok
Comment 13 Jens Georg 2014-08-10 10:39:53 UTC
No, it wasn't used anyway.