[FFmpeg-devel] libavcodec/psd : add support for rgb/gray float

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Mar 2 00:57:32 EET 2017

2017-03-01 23:42 GMT+01:00 Martin Vignali <martin.vignali at gmail.com>:
> Hello,
> In attach patch for decoding float data (rgb/gray only) inside psd
> Like in the openexr decoder, float data is convert to uint16
> A gamma conversion can be apply before uint16 conversion (with an option)
> the function : static inline uint16_t psd_flt2uint(uint32_t v)
> is a copy/paste of exr_flt_uint of the exr decoder.
> Probably need to be move somewhere (but i don't know the best place for that)

If no other suggestions are made, move it to libavcodec/internal.h
and make it av_always_inline.

Is the buffer always necessary, or can the transformation be done

> Sample can be found here :
> https://we.tl/85kvceapTL

Thank you, Carl Eugen

More information about the ffmpeg-devel mailing list