[FFmpeg-trac] #10882(undetermined:new): swscale wastefully scales luma during yuv420p -> yuv422p

FFmpeg trac at avcodec.org
Mon Feb 26 00:39:06 EET 2024


#10882: swscale wastefully scales luma during yuv420p -> yuv422p
-------------------------------------+-------------------------------------
             Reporter:  Kieran       |                    Owner:  (none)
  Kunhya                             |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by Kieran Kunhya:

Old description:

> Run any conversion from yuv420p to yuv422p.
>
> Swscale appears to run hscale and vscale on the unscaled luma plane as
> follows:
>
> dst[x] = (src[x] * (2^n)) >> n;
>
> This uses a lot of CPU for no benefit.

New description:

 Run any conversion from yuv420p to yuv422p.

 Swscale appears to run hscale and vscale on the unscaled luma plane as
 follows:

 {{{
 dst[x] = (src[x] * (2^n)) >> n;
 }}}

 This uses a lot of CPU for no benefit.

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


More information about the FFmpeg-trac mailing list