[FFmpeg-trac] #5083(swscale:open): Conversion from yuv410p to rgb24 looks wrong

FFmpeg trac at avcodec.org
Sun Dec 13 12:01:22 CET 2015


#5083: Conversion from yuv410p to rgb24 looks wrong
------------------------------------+-----------------------------------
             Reporter:  khali       |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  swscale
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by khali):

 You are correct that the problem is with swscale.

 If I pass -sws_flags neighbor then the output is correct and looks the
 same as what "convert" produces. So I guess that ImageMagick doesn't
 perform any upscaling of the chroma planes but simply applies the chroma
 samples directly to 4x4 areas (which is what I originally expected from
 ffmpeg.)

 Also note that if I change the resolution from 16x16 to 32x32 with the
 same 8x8 red square at 4,4, the other algorithms, including the default
 (bicubic) algorithm, produce different results for the common 16x16 part.

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


More information about the FFmpeg-trac mailing list