videomixer: Fix argb/rgba overlay orc code
authorRobert Swain <robert.swain@collabora.co.uk>
Fri, 15 Apr 2011 13:36:41 +0000 (15:36 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Apr 2011 12:00:49 +0000 (13:00 +0100)
Remove some redundant operations (convubw) and use the correct variable,
t2, in the orc_overlay_bgra function.

gst/videomixer/blendorc.orc

index a284513..9140345 100644 (file)
@@ -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