[FFmpeg-trac] #9751(swscale:new): Incorrect YUV->RGB24 conversion results on IBM Power9

FFmpeg trac at avcodec.org
Wed Apr 27 16:17:03 EEST 2022


#9751: Incorrect YUV->RGB24 conversion results on IBM Power9
-------------------------------------+-----------------------------------
             Reporter:  gciaparrone  |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  swscale
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------
Comment (by Balling):

 When you convert ffmpeg -i black.png -pix_fmt yuv420p black.yuv you get
 limited range data with Y set to 16 and Cb, Cb achromatic (128 for 8 bit,
 12 bit per pixel yuv420p). Please attach that yuv file for IBM Power9.

 When you convert back you are IMHO supposed to set input range and because
 it is somehow gbr use accurate_rnd.

 ffmpeg -s:v 64x64 -pix_fmt yuv420p -i black.yuv -frames:v 1 -vf
 scale=in_range=tv:flags=accurate_rnd,format=rgb24 reblack1.png

 Please test.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9751#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list