Re: [FFmpeg-devel] [PATCH v15 03/15] lavc/tiff: Convert DNGs to sRGB color space

2019-08-22 Thread Moritz Barsnick
On Tue, Aug 20, 2019 at 16:37:35 +0300, Nick Renieris wrote: > +static float av_always_inline linear_to_srgb(float value) { > +if (value <= 0.0031308) > +return value * 12.92; > +else > +return pow(value * 1.055, 1.0 / 2.4) - 0.055; > +} Do you need the intermediate double

[FFmpeg-devel] [PATCH v15 03/15] lavc/tiff: Convert DNGs to sRGB color space

2019-08-20 Thread Nick Renieris
Signed-off-by: Nick Renieris --- libavcodec/tiff.c | 34 +++--- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 4c6b835afe..a2102f32b5 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -731,14 +731,23