mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
videoconvert: fix I420 to BGRA fast-path some more
Calculate alpha value differently so that we can avoid running out of registers.
This commit is contained in:
parent
38e1541466
commit
5ca04cb798
1 changed files with 5 additions and 4 deletions
|
@ -725,6 +725,7 @@ x4 addb argb, x, 128
|
||||||
.temp 1 r
|
.temp 1 r
|
||||||
.temp 1 g
|
.temp 1 g
|
||||||
.temp 1 b
|
.temp 1 b
|
||||||
|
.temp 4 x
|
||||||
.const 1 c8 8
|
.const 1 c8 8
|
||||||
.const 1 c128 128
|
.const 1 c128 128
|
||||||
|
|
||||||
|
@ -766,7 +767,7 @@ convssswb g, wg
|
||||||
convssswb b, wb
|
convssswb b, wb
|
||||||
|
|
||||||
mergebw t1, b, g
|
mergebw t1, b, g
|
||||||
x2 subb t1, t1, c128
|
mergebw t2, r, 127
|
||||||
subb r, r, c128
|
mergewl x, t1, t2
|
||||||
mergebw t2, r, 255
|
x4 addb argb, x, c128
|
||||||
mergewl argb, t1, t2
|
|
||||||
|
|
Loading…
Reference in a new issue