[FFmpeg-devel] [PATCH] avutil: Add basic transfer functions for each AVColorTransferCharacteristic

wm4 nfxjfg at googlemail.com
Tue Sep 1 13:40:25 CEST 2015


On Tue, 1 Sep 2015 07:33:26 -0400
"Ronald S. Bultje" <rsbultje at gmail.com> wrote:

> Hi,
> 
> On Tue, Sep 1, 2015 at 7:02 AM, Kevin Wheatley <kevin.j.wheatley at gmail.com>
> wrote:
> 
> > Following on from my previous email, this adds some functions to
> > actually convert from linear to non-linear encoding. I have another
> > that changes the OpenEXR codec to actually use these.
> 
> 
> Won't performance be crumblingly slow with this kind of API? It seems to
> make more sense to write a filter that can convert between different TRC
> types, or do it in swscale, and then add some fast implementations
> (LUT-based, or approximation-based) alongside the slow versions.

I suppose these functions could be used to build a LUT in the first
place.

To do this in a filter, we'll probably need a float pixel format, and
of course float support in swscale. (Who volunteers?)


More information about the ffmpeg-devel mailing list