Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
7a89d4c3
Commit
7a89d4c3
authored
Jul 19, 2010
by
Yaowu Xu
Committed by
Code Review
Jul 19, 2010
Browse files
Merge "Improve the accuracy of forward walsh-hadamard transform"
parents
0ba32632
b62d093e
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp8/encoder/dct.c
View file @
7a89d4c3
...
...
@@ -69,17 +69,18 @@ void vp8_short_walsh4x4_c(short *input, short *output, int pitch)
short
*
ip
=
input
;
short
*
op
=
output
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
a1
=
ip
[
0
]
+
ip
[
3
]
;
b
1
=
ip
[
1
]
+
ip
[
2
]
;
c1
=
ip
[
1
]
-
ip
[
2
]
;
d
1
=
ip
[
0
]
-
ip
[
3
]
;
op
[
0
]
=
a1
+
b1
;
op
[
1
]
=
c
1
+
d
1
;
op
[
2
]
=
a
1
-
b
1
;
op
[
3
]
=
d
1
-
c
1
;
a1
=
((
ip
[
0
]
+
ip
[
2
])
<<
2
)
;
d
1
=
((
ip
[
1
]
+
ip
[
3
])
<<
2
)
;
c1
=
((
ip
[
1
]
-
ip
[
3
])
<<
2
)
;
b
1
=
((
ip
[
0
]
-
ip
[
2
])
<<
2
)
;
op
[
0
]
=
a1
+
d1
+
(
a1
!=
0
)
;
op
[
1
]
=
b
1
+
c
1
;
op
[
2
]
=
b
1
-
c
1
;
op
[
3
]
=
a
1
-
d
1
;
ip
+=
pitch
/
2
;
op
+=
4
;
}
...
...
@@ -89,25 +90,25 @@ void vp8_short_walsh4x4_c(short *input, short *output, int pitch)
for
(
i
=
0
;
i
<
4
;
i
++
)
{
a1
=
ip
[
0
]
+
ip
[
12
];
b
1
=
ip
[
4
]
+
ip
[
8
];
c1
=
ip
[
4
]
-
ip
[
8
];
d
1
=
ip
[
0
]
-
ip
[
12
];
a2
=
a1
+
b
1
;
b2
=
c
1
+
d
1
;
c2
=
a
1
-
b
1
;
d2
=
d
1
-
c
1
;
a2
+=
(
a2
>
0
)
;
b2
+=
(
b2
>
0
)
;
c2
+=
(
c2
>
0
)
;
d2
+=
(
d2
>
0
)
;
op
[
0
]
=
(
a2
)
>>
1
;
op
[
4
]
=
(
b2
)
>>
1
;
op
[
8
]
=
(
c2
)
>>
1
;
op
[
12
]
=
(
d2
)
>>
1
;
a1
=
ip
[
0
]
+
ip
[
8
];
d
1
=
ip
[
4
]
+
ip
[
12
];
c1
=
ip
[
4
]
-
ip
[
12
];
b
1
=
ip
[
0
]
-
ip
[
8
];
a2
=
a1
+
d
1
;
b2
=
b
1
+
c
1
;
c2
=
b
1
-
c
1
;
d2
=
a
1
-
d
1
;
a2
+=
a2
<
0
;
b2
+=
b2
<
0
;
c2
+=
c2
<
0
;
d2
+=
d2
<
0
;
op
[
0
]
=
(
a2
+
3
)
>>
3
;
op
[
4
]
=
(
b2
+
3
)
>>
3
;
op
[
8
]
=
(
c2
+
3
)
>>
3
;
op
[
12
]
=
(
d2
+
3
)
>>
3
;
ip
++
;
op
++
;
...
...
vp8/encoder/x86/x86_csystemdependent.c
View file @
7a89d4c3
...
...
@@ -278,7 +278,7 @@ void vp8_arch_x86_encoder_init(VP8_COMP *cpi)
cpi
->
rtcd
.
fdct
.
fast4x4
=
vp8_short_fdct4x4_sse2
;
cpi
->
rtcd
.
fdct
.
fast8x4
=
vp8_short_fdct8x4_sse2
;
cpi
->
rtcd
.
fdct
.
walsh_short4x4
=
vp8_short_walsh4x4_
sse2
;
cpi
->
rtcd
.
fdct
.
walsh_short4x4
=
vp8_short_walsh4x4_
c
;
cpi
->
rtcd
.
encodemb
.
berr
=
vp8_block_error_xmm
;
cpi
->
rtcd
.
encodemb
.
mberr
=
vp8_mbblock_error_xmm
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment