mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
videomixer: Fix argb/rgba overlay orc code
Remove some redundant operations (convubw) and use the correct variable, t2, in the orc_overlay_bgra function.
This commit is contained in:
parent
fd6ac6aa8a
commit
e757793b21
1 changed files with 2 additions and 4 deletions
|
@ -132,7 +132,6 @@ x4 subw alpha_s_inv, alpha_s_inv, alpha_s
|
|||
loadl t, d
|
||||
convlw tw, t
|
||||
convwb tb, tw
|
||||
convubw tw, tb
|
||||
splatbl a, tb
|
||||
x4 convubw alpha_d, a
|
||||
x4 mullw alpha_d, alpha_d, alpha_s_inv
|
||||
|
@ -179,7 +178,7 @@ storel d, t
|
|||
# calc source alpha as alpha_s = alpha_s * alpha / 256
|
||||
loadl t, s
|
||||
shrul t2, t, 24
|
||||
convlw tw, t
|
||||
convlw tw, t2
|
||||
convwb tb, tw
|
||||
splatbl a, tb
|
||||
x4 convubw alpha_s, a
|
||||
|
@ -194,9 +193,8 @@ x4 convubw alpha_s_inv, a
|
|||
x4 subw alpha_s_inv, alpha_s_inv, alpha_s
|
||||
loadl t, d
|
||||
shrul t2, t, 24
|
||||
convlw tw, t
|
||||
convlw tw, t2
|
||||
convwb tb, tw
|
||||
convubw tw, tb
|
||||
splatbl a, tb
|
||||
x4 convubw alpha_d, a
|
||||
x4 mullw alpha_d, alpha_d, alpha_s_inv
|
||||
|
|
Loading…
Reference in a new issue