Opened 8 months ago

Last modified 8 months ago

#10882 new defect

swscale wastefully scales luma during yuv420p -> yuv422p

Reported by: Kieran Kunhya Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Kieran Kunhya Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Kieran Kunhya)

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.

Change History (2)

comment:1 by Kieran Kunhya, 8 months ago

Description: modified (diff)

comment:2 by Balling, 8 months ago

Does not really matter, Kieran. Zscale should be used. Concern yourself with H.222 buffer managment instead of this.

Last edited 8 months ago by Balling (previous) (diff)
Note: See TracTickets for help on using tickets.