[FFmpeg-trac] #3785(swscale:new): SWSCALE: in_range, in_color_matrix, out_range, out_color_matrix incorrect

FFmpeg trac at avcodec.org
Sun Jul 20 02:04:38 CEST 2014


#3785: SWSCALE: in_range, in_color_matrix, out_range, out_color_matrix incorrect
------------------------------------+-----------------------------------
             Reporter:  troy_s      |                    Owner:
                 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 troy_s):

 Just performed a git pull and tested the raw YCbCr output again. Looks
 better, but still not quite there given that there are channels that use
 the whole range of values.

 Working on a better test case, but until then, here's the result which
 again shows error in the Cb plane from what I can see:
 {{{
 Channel statistics:
     Red:
       min: 0 (0)
       max: 255 (1)
       mean: 103.415 (0.40555)
       standard deviation: 84.4958 (0.331356)
       kurtosis: -1.32109
       skewness: 0.447833
     Green:
       min: 18 (0.0705882)
       max: 255 (1)
       mean: 130.343 (0.51115)
       standard deviation: 43.1051 (0.169039)
       kurtosis: 0.529155
       skewness: 0.18529
     Blue:
       min: 0 (0)
       max: 255 (1)
       mean: 0.940625 (0.00368873)
       standard deviation: 13.2052 (0.051785)
       kurtosis: 269.06
       skewness: 15.9677
 }}}

 Cb showing 18 is close to broadcast range, but still off. No idea what
 might be causing it, but it suggests more than pure broadcast scaling.

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


More information about the FFmpeg-trac mailing list