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 131167 - gamma correction plugin should handle RGB
gamma correction plugin should handle RGB
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.7.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-01-11 18:43 UTC by Arwed v. Merkatz
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to add videogamma element to videofilters (10.30 KB, patch)
2004-01-11 18:44 UTC, Arwed v. Merkatz
none Details | Review
rgb gamma correction filter (9.61 KB, text/plain)
2004-01-12 16:30 UTC, Arwed v. Merkatz
  Details
patch to add rgb gamma correction to the gamma videofilter (6.84 KB, patch)
2004-01-17 20:19 UTC, Arwed v. Merkatz
none Details | Review

Description Arwed v. Merkatz 2004-01-11 18:43:45 UTC
Due to a very old monitor i need gamma correction to see anything when
playing video. gst was missing such a filter, so i wrote a simple one.
Comment 1 Arwed v. Merkatz 2004-01-11 18:44:43 UTC
Created attachment 23236 [details] [review]
patch to add videogamma element to videofilters
Comment 2 David Schleef 2004-01-11 21:56:54 UTC
I modified the patch to fit in with recent changes I made to
make_filter, and applied it.  Thanks for sending it.

I tested it out, and I'm a bit worried that it doesn't work very well
in YUV space.  That's not surprising, since gamma correction is
typically done in RGB space, since monitors are non-linear in RGB space.

I'm leaving this bug open, but retitiling it to reflect that it would
be better to have an RGB gamma plugin.
Comment 3 Arwed v. Merkatz 2004-01-12 16:29:05 UTC
You're right, gamma correction in rgb space looks quite a bit better,
but since it needs several colorspace conversions to be actually
useful it becomes too slow on my system to use it. I'll attach a first
draft of a RGB gamma correction filter, currently limited to one rgb
format (defined in an ugly way since i didn't find the correct way to
do it yet). If you add this rgb gamma filter, please also leave the
YUV one in, as people with less powerful systems may find it useful (i
certainly do).
Comment 4 Arwed v. Merkatz 2004-01-12 16:30:05 UTC
Created attachment 23264 [details]
rgb gamma correction filter
Comment 5 David Schleef 2004-01-12 20:09:10 UTC
This should be folded into the existing gamma element.  I don't think
it's a problem that the ARG_GAMMA_RGB_R property doesn't make sense
for YUV.
Comment 6 Arwed v. Merkatz 2004-01-17 20:19:30 UTC
Created attachment 23482 [details] [review]
patch to add rgb gamma correction to the gamma videofilter
Comment 7 Arwed v. Merkatz 2004-01-17 20:20:42 UTC
With that patch the gamma filter works with both YUV and RGB, the
redgamma, greengamma and bluegamma values are only used for the RGB
version though.
Comment 8 Thomas Vander Stichele 2004-02-24 17:49:40 UTC
ping
Comment 9 Arwed v. Merkatz 2004-02-24 18:36:27 UTC
I currently don't have time to work on this, the patch still applies
and adds rgb gamma correction to the gamma plugin. The seperate values
for red, green and blue gamma are only used by the rgb version, and if
overall gamma is set that overrides seperate values.
Comment 10 David Schleef 2004-02-24 21:25:57 UTC
Applied, thanks.