summaryrefslogtreecommitdiffstats
path: root/tests/manual/minimal-player
diff options
context:
space:
mode:
authorMikko Hallamaa <mikko.hallamaa@qt.io>2025-04-11 17:14:22 +0200
committerMikko Hallamaa <mikko.hallamaa@qt.io>2025-12-16 13:42:13 +0100
commitec793ce3541dfdec0efa5a4f55d64c817a245e5d (patch)
treed71b7903691d308147f94b52650a485561eacebd /tests/manual/minimal-player
parentd78b5db0bb0c528645888f36e3ada018ca0318c2 (diff)
QVideoFrame: Fix calculation of UV line strideHEADdev
UV line stride in planar YUV and YV formats is calculated from overall frame size in bytes, frame height, and the known Y-plane stride. The overall size comes from bytesRequired in texture description, which aligned the U and V plane heights to the nearest even number. This caused an inaccuracy in the calculation for UV stride for resolutions where the U and V planes have odd heights. The increase of horizontal scaling in packed texture formats (fallback for YUV420p10) increased this error, and caused an extra pixel to be added to the stride. This patch replaces the alignment in bytesRequired of these formats, to align the sum of U and V plane heights instead, and re-enables previously failing tests. Pick-to: 6.11 6.10 6.8 Change-Id: I9c8912eeba4729b0117bdd7e87a76c43569cb87a Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
Diffstat (limited to 'tests/manual/minimal-player')
0 files changed, 0 insertions, 0 deletions