Transfer Functions? Linear GL textures - gamma removed
Matthew Waters
waters.matthew00 at gmail.com
Mon Jan 16 10:05:28 UTC 2017
On 14/01/17 11:47, Bruce Wheaton wrote:
> Is there an equivalent to gst_video_color_transfer_decode and friends in the GL elements?
>
> I’d like to use shaders to remove transfer functions and get a linear buffer (will be floating point - see other thread - so bit depth shouldn’t be an issue as it would in 8-bit).
>
> Technically, it should happen in glColorConvert, but doing an (optional) transfer function correction followed by optional gamma adjustment in GstGLColorBalance would seem like a reasonable approach too.
>
> Does anyone have information on this please? Is this a ‘code welcome’ situation?
This is a 'code welcome' situation :).
The most generic option is to linearize to/from SRGB in shaders which
should definitely happen in glcolorconvert. This is all indicated by
the caps just not used by the GL conversion code.
Cheers
-Matt
> Thanks,
>
> Bruce
>
>
>
More information about the gstreamer-devel
mailing list