[FFmpeg-trac] #3657(swscale:open): float pixel format

FFmpeg trac at avcodec.org
Tue Sep 20 17:26:34 EEST 2016


#3657: float pixel format
-------------------------------------+-----------------------------------
             Reporter:  sun          |                    Owner:
                 Type:  enhancement  |                   Status:  open
             Priority:  wish         |                Component:  swscale
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by emilyb):

 We would like to have this too.

 The use case is high bit depth processing in HDR mode where we want to be
 able to have super white/black (i.e. < 0.0 and > 1.0 values) at certain
 stages in the processing. Using floats is simpler to work with than 32bit
 integers with headroom and still has enough precision. We also do some
 advanced image processing which requires conversion to float at some point
 so having the conversion early is beneficial for performance for us.

 As one person noted earlier floats have higher precision around 0.0 than
 1.0,but in the range [0.5, 1.0] you still have 23 bits per component in
 precision which is enough.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3657#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list