Opened 10 months ago

Last modified 10 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, 10 months ago

Description: modified (diff)

comment:2 by Balling, 10 months ago

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

Version 0, edited 10 months ago by Balling (next)
Note: See TracTickets for help on using tickets.