Bug 1115 - SRGB implementation
Summary: SRGB implementation
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: tbd
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
Depends on:
Reported: 2015-01-07 11:06 CET by Giuseppe Barbieri
Modified: 2019-03-29 13:58 CET (History)
1 user (show)

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Barbieri 2015-01-07 11:06:56 CET
So, we would need a GLCapabilities extension for colorspace selection.
Maybe this has to be defined in it's parent Capabilities, allowing to
select the default framebuffer / pixelformat (-> onscreen).

This 'Capabilities.colorspace' entry shall be utilized for
[1] onscreen drawables and [2] offscreen FBO drawables, if available.


Capabilities.colorspace might be of an integer or enum type
w/ (currently known) values: lRGB (default, linear) and sRGB (standardized RGB).
We may refactor TextureData.Colorspace and extend it's type accordingly.

Onscreen drawables will require assistance of EGL, GLX, EGL ..,
where FBO offscreen can be supported merely by 'some' GL extension(s).

<https://en.wikipedia.org/wiki/SRGB#Usage> refers to EXT/framebuffer_sRGB
which will allow implementing [2]!

Note: While FBObject shall support sRGB naturally,
one can already use above extension in their own code using textures and FBOs.

It has to be seen, whether implementation of [1] is supported, i.e. possible. 

Reference thread:
Comment 1 Sven Gothel 2015-06-22 19:51:54 CEST
Further input / experiences w/ sRGB:

04/03/2010 Using sRGB color space with OpenGL
Comment 2 Sven Gothel 2015-06-22 20:06:36 CEST
March 2015 OpenGL drivers status and FB sRGB conversions