On Wed, 1 Mar 2017 23:42:28 +0100 Martin Vignali <martin.vign...@gmail.com> wrote:
> 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) > > Sample can be found here : > https://we.tl/85kvceapTL Time to think about a float pixfmt? I find it weird that we support excessively obscure pixfmts like AV_PIX_FMT_BGR4_BYTE, but then have hacks like this one if the codec uses float data. (I'm just commenting, not arguing for/against your actual patch.) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel