[FFmpeg-trac] #11182(swscale:closed): yuvtestsrc and yuv444p->rgba->yuv444p conversion result in huge difference

FFmpeg trac at avcodec.org
Sat Sep 14 02:14:24 EEST 2024


#11182: yuvtestsrc and yuv444p->rgba->yuv444p conversion result in huge difference
-------------------------------------+-------------------------------------
             Reporter:  Andrew-R     |                    Owner:  (none)
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  swscale
              Version:  unspecified  |               Resolution:  invalid
             Keywords:  colorspace   |               Blocked By:
  color_primaries                    |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by MasterQuestionable):

 ͏    "Why it calls limited to full if src already in full range?"
 <!^>    Looks like a valid bug?
 ͏    But the formatting...

 ͏    `diff --git "a/libswscale/swscale.c" "b/libswscale/swscale.c"`
 ͏    index df0d5708aa..c33082ca2a 100644
 {{{#!diff
 --- a/libswscale/swscale.c
 +++ b/libswscale/swscale.c
 @@ -538,9 +538,12 @@ av_cold void ff_sws_init_range_convert(SwsContext *c)
      if (c->srcRange != c->dstRange && !isAnyRGB(c->dstFormat)) {
          if (c->dstBpc <= 14) {
              if (c->srcRange) {
 +               printf("luma range from full to limied\n");
                  c->lumConvertRange = lumRangeFromJpeg_c;
                  c->chrConvertRange = chrRangeFromJpeg_c;
              } else {
 +               printf("luma range from limited to full, srcrange %i
 dstrange = %i \n", c->srcRange, c->dstRange);
 +
                  c->lumConvertRange = lumRangeToJpeg_c;
                  c->chrConvertRange = chrRangeToJpeg_c;
              }
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11182#comment:34>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list