Hello, Patch in attach add some bitexact conversion for grayf32 and unscaled conv for gray16 to grayf32.
Pass fate test for me (x86_64, macos 10.12) 001 : Add bit exact conv for float to uint16 002 : Add bit exact conv for float to uint8 003 : Add bit exact lut generation for 8b to float (alloc/free the lut). 004 : Add bit exact and non bitexact lut generation for 16b to float and add unscale conv from uint16 to grayF32. In bit exact mode, the last part of the lut (32768 to 65535), have on some value an offset of 1 in the mantissa part (comparing to float conv). In practice, doesn't have a visual impact on the result. I will add later patch to add swap managment in the unscale part for float input/output I still have a problem with output func : yuv2plane1_float_c_template/yuv2planeX_float_c_template, where i would like to use the uint2float lut, store inside SwsContext, but doesn't find a way to pass it to the processing func. Will take a look later, for SIMD for the float to uint conv (in order to decide if we keep float and bitexact version of the conv). For lut generation, i'm not sure, trying to add SIMD is need (probably not a lot of impact on global speed) Martin
0001-swscale-input-add-bit_exact-for-float-to-uint16-conv.patch
Description: Binary data
0003-swscale-add-bit_exact-lut-creation-for-8bit-to-float.patch
Description: Binary data
0004-swscale-swscale_unscaled-add-conversion-from-float-Y.patch
Description: Binary data
0002-swscale-unscale-add-bitexact-conversion-for-float-to.patch
Description: Binary data
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel