Transfer Functions? Linear GL textures - gamma removed
Matthew Waters
ystreet00 at gmail.com
Mon Jan 16 10:06:37 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
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 516 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170116/022dd066/attachment-0001.sig>
More information about the gstreamer-devel
mailing list