projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38e1541
)
videoconvert: fix I420 to BGRA fast-path some more
author
Wim Taymans
<wtaymans@redhat.com>
Thu, 9 Jan 2014 17:08:41 +0000
(18:08 +0100)
committer
Wim Taymans
<wtaymans@redhat.com>
Thu, 9 Jan 2014 17:08:41 +0000
(18:08 +0100)
Calculate alpha value differently so that we can avoid running out
of registers.
gst/videoconvert/gstvideoconvertorc.orc
patch
|
blob
|
history
diff --git
a/gst/videoconvert/gstvideoconvertorc.orc
b/gst/videoconvert/gstvideoconvertorc.orc
index
885a711
..
1c9bfac
100644
(file)
--- a/
gst/videoconvert/gstvideoconvertorc.orc
+++ b/
gst/videoconvert/gstvideoconvertorc.orc
@@
-725,6
+725,7
@@
x4 addb argb, x, 128
.temp 1 r
.temp 1 g
.temp 1 b
+.temp 4 x
.const 1 c8 8
.const 1 c128 128
@@
-766,7
+767,7
@@
convssswb g, wg
convssswb b, wb
mergebw t1, b, g
-x2 subb t1, t1, c128
-subb r, r, c128
-mergebw t2, r, 255
-mergewl argb, t1, t2
+mergebw t2, r, 127
+mergewl x, t1, t2
+x4 addb argb, x, c128
+