Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
023304e4
Commit
023304e4
authored
May 14, 2012
by
Yaowu Xu
Committed by
On2 (Google) Code Review
May 14, 2012
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Reversible WHT pair" into experimental
parents
5cf8a327
7968d29f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
78 deletions
+58
-78
vp8/common/idctllm.c
vp8/common/idctllm.c
+34
-39
vp8/encoder/dct.c
vp8/encoder/dct.c
+24
-39
No files found.
vp8/common/idctllm.c
View file @
023304e4
...
...
@@ -138,65 +138,60 @@ void vp8_short_inv_walsh4x4_c(short *input, short *output)
{
int
i
;
int
a1
,
b1
,
c1
,
d1
;
int
a2
,
b2
,
c2
,
d2
;
short
*
ip
=
input
;
short
*
op
=
output
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
a1
=
ip
[
0
]
+
ip
[
12
]
;
b1
=
ip
[
4
]
+
ip
[
8
]
;
c1
=
ip
[
4
]
-
ip
[
8
]
;
d1
=
ip
[
0
]
-
ip
[
12
]
;
a1
=
((
ip
[
0
]
+
ip
[
3
]))
;
b1
=
((
ip
[
1
]
+
ip
[
2
]))
;
c1
=
((
ip
[
1
]
-
ip
[
2
]))
;
d1
=
((
ip
[
0
]
-
ip
[
3
]))
;
op
[
0
]
=
a1
+
b1
;
op
[
4
]
=
c1
+
d1
;
op
[
8
]
=
a1
-
b1
;
op
[
12
]
=
d1
-
c1
;
ip
++
;
op
++
;
op
[
0
]
=
(
a1
+
b1
+
1
)
>>
1
;
op
[
1
]
=
(
c1
+
d1
)
>>
1
;
op
[
2
]
=
(
a1
-
b1
)
>>
1
;
op
[
3
]
=
(
d1
-
c1
)
>>
1
;
ip
+=
4
;
op
+=
4
;
}
ip
=
output
;
op
=
output
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
a1
=
ip
[
0
]
+
ip
[
3
];
b1
=
ip
[
1
]
+
ip
[
2
];
c1
=
ip
[
1
]
-
ip
[
2
];
d1
=
ip
[
0
]
-
ip
[
3
];
a2
=
a1
+
b1
;
b2
=
c1
+
d1
;
c2
=
a1
-
b1
;
d2
=
d1
-
c1
;
op
[
0
]
=
(
a2
+
1
)
>>
2
;
op
[
1
]
=
(
b2
+
1
)
>>
2
;
op
[
2
]
=
(
c2
+
1
)
>>
2
;
op
[
3
]
=
(
d2
+
1
)
>>
2
;
ip
+=
4
;
op
+=
4
;
a1
=
ip
[
0
]
+
ip
[
12
];
b1
=
ip
[
4
]
+
ip
[
8
];
c1
=
ip
[
4
]
-
ip
[
8
];
d1
=
ip
[
0
]
-
ip
[
12
];
op
[
0
]
=
(
a1
+
b1
+
1
)
>>
1
;
op
[
4
]
=
(
c1
+
d1
)
>>
1
;
op
[
8
]
=
(
a1
-
b1
)
>>
1
;
op
[
12
]
=
(
d1
-
c1
)
>>
1
;
ip
++
;
op
++
;
}
}
void
vp8_short_inv_walsh4x4_1_c
(
short
*
in
put
,
short
*
out
put
)
void
vp8_short_inv_walsh4x4_1_c
(
short
*
in
,
short
*
out
)
{
int
i
;
int
a1
;
short
*
op
=
output
;
short
tmp
[
4
];
short
*
ip
=
in
;
short
*
op
=
tmp
;
a1
=
(
input
[
0
]
+
1
)
>>
2
;
op
[
0
]
=
(
ip
[
0
]
+
1
)
>>
1
;
op
[
1
]
=
op
[
2
]
=
op
[
3
]
=
(
ip
[
0
]
>>
1
);
for
(
i
=
0
;
i
<
4
;
i
++
)
ip
=
tmp
;
op
=
out
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
op
[
0
]
=
a1
;
op
[
1
]
=
a1
;
op
[
2
]
=
a1
;
op
[
3
]
=
a1
;
op
+=
4
;
op
[
0
]
=
(
ip
[
0
]
+
1
)
>>
1
;
op
[
4
]
=
op
[
8
]
=
op
[
12
]
=
(
ip
[
0
]
>>
1
);
ip
++
;
op
++
;
}
}
...
...
vp8/encoder/dct.c
View file @
023304e4
...
...
@@ -13,10 +13,6 @@
#include "vpx_ports/config.h"
void
vp8_short_fdct8x8_c
(
short
*
block
,
short
*
coefs
,
int
pitch
)
{
int
j1
,
i
,
j
,
k
;
...
...
@@ -181,52 +177,41 @@ void vp8_short_walsh4x4_c(short *input, short *output, int pitch)
{
int
i
;
int
a1
,
b1
,
c1
,
d1
;
int
a2
,
b2
,
c2
,
d2
;
short
*
ip
=
input
;
short
*
op
=
output
;
int
pitch_short
=
pitch
>>
1
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
a1
=
((
ip
[
0
]
+
ip
[
2
]));
d1
=
((
ip
[
1
]
+
ip
[
3
]));
c1
=
((
ip
[
1
]
-
ip
[
3
]));
b1
=
((
ip
[
0
]
-
ip
[
2
]));
op
[
0
]
=
a1
+
d1
;
op
[
1
]
=
b1
+
c1
;
op
[
2
]
=
b1
-
c1
;
op
[
3
]
=
a1
-
d1
;
ip
+=
pitch
/
2
;
op
+=
4
;
}
a1
=
ip
[
0
*
pitch_short
]
+
ip
[
3
*
pitch_short
];
b1
=
ip
[
1
*
pitch_short
]
+
ip
[
2
*
pitch_short
];
c1
=
ip
[
1
*
pitch_short
]
-
ip
[
2
*
pitch_short
];
d1
=
ip
[
0
*
pitch_short
]
-
ip
[
3
*
pitch_short
];
op
[
0
]
=
(
a1
+
b1
+
1
)
>>
1
;
op
[
4
]
=
(
c1
+
d1
)
>>
1
;
op
[
8
]
=
(
a1
-
b1
)
>>
1
;
op
[
12
]
=
(
d1
-
c1
)
>>
1
;
ip
++
;
op
++
;
}
ip
=
output
;
op
=
output
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
a1
=
ip
[
0
]
+
ip
[
8
];
d1
=
ip
[
4
]
+
ip
[
12
];
c1
=
ip
[
4
]
-
ip
[
12
];
b1
=
ip
[
0
]
-
ip
[
8
];
a2
=
a1
+
d1
;
b2
=
b1
+
c1
;
c2
=
b1
-
c1
;
d2
=
a1
-
d1
;
a2
+=
a2
<
0
;
b2
+=
b2
<
0
;
c2
+=
c2
<
0
;
d2
+=
d2
<
0
;
op
[
0
]
=
(
a2
+
1
)
>>
2
;
op
[
4
]
=
(
b2
+
1
)
>>
2
;
op
[
8
]
=
(
c2
+
1
)
>>
2
;
op
[
12
]
=
(
d2
+
1
)
>>
2
;
a1
=
ip
[
0
]
+
ip
[
3
];
b1
=
ip
[
1
]
+
ip
[
2
];
c1
=
ip
[
1
]
-
ip
[
2
];
d1
=
ip
[
0
]
-
ip
[
3
];
ip
++
;
op
++
;
op
[
0
]
=
(
a1
+
b1
+
1
)
>>
1
;
op
[
1
]
=
(
c1
+
d1
)
>>
1
;
op
[
2
]
=
(
a1
-
b1
)
>>
1
;
op
[
3
]
=
(
d1
-
c1
)
>>
1
;
ip
+=
4
;
op
+=
4
;
}
}
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