compositor: Replace shift and conv opcodes by convh in BGRA SOURCE operator
authorSebastian Dröge <sebastian@centricular.com>
Fri, 24 May 2019 13:54:50 +0000 (15:54 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Fri, 24 May 2019 15:56:56 +0000 (15:56 +0000)
Potentially speeds up processing a bit.

gst/compositor/compositororc.orc

index beb10b8..18938dd 100644 (file)
@@ -142,9 +142,8 @@ storel d, t
 .const 4 a_not_alpha 0x00ffffff
 
 loadl t, s
-shrul t2, t, 24
-convlw tw, t2
-convwb tb, tw
+convhlw tw, t
+convhwb tb, tw
 splatbl a, tb
 x4 convubw a_wide, a
 x4 mullw a_wide, a_wide, alpha