Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yushin Cho
aom-rav1e
Commits
6db4d93a
Commit
6db4d93a
authored
Aug 24, 2012
by
Ronald S. Bultje
Committed by
Gerrit Code Review
Aug 24, 2012
Browse files
Merge "change to properly account for coef scaling in unit tests" into experimental
parents
2d60bee1
95ee7f11
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/fdct4x4_test.cc
View file @
6db4d93a
...
...
@@ -107,6 +107,19 @@ TEST(Vp8FdctTest, RoundTripErrorCheck) {
// to test optimized versions of this function.
const
int
pitch
=
8
;
vp8_short_fdct4x4_c
(
test_input_block
,
test_temp_block
,
pitch
);
for
(
int
j
=
0
;
j
<
16
;
++
j
)
{
if
(
test_temp_block
[
j
]
>
0
)
{
test_temp_block
[
j
]
+=
2
;
test_temp_block
[
j
]
/=
4
;
test_temp_block
[
j
]
*=
4
;
}
else
{
test_temp_block
[
j
]
-=
2
;
test_temp_block
[
j
]
/=
4
;
test_temp_block
[
j
]
*=
4
;
}
}
// Because the bitstream is not frozen yet, use the idct in the codebase.
vp8_short_idct4x4llm_c
(
test_temp_block
,
test_output_block
,
pitch
);
...
...
@@ -118,7 +131,6 @@ TEST(Vp8FdctTest, RoundTripErrorCheck) {
total_error
+=
error
;
}
}
EXPECT_GE
(
1
,
max_error
)
<<
"Error: FDCT/IDCT has an individual roundtrip error > 1"
;
...
...
test/fdct8x8_test.cc
View file @
6db4d93a
...
...
@@ -101,6 +101,17 @@ TEST(VP8Fdct8x8Test, RoundTripErrorCheck) {
const
int
pitch
=
16
;
vp8_short_fdct8x8_c
(
test_input_block
,
test_temp_block
,
pitch
);
for
(
int
j
=
0
;
j
<
64
;
++
j
){
if
(
test_temp_block
[
j
]
>
0
)
{
test_temp_block
[
j
]
+=
2
;
test_temp_block
[
j
]
/=
4
;
test_temp_block
[
j
]
*=
4
;
}
else
{
test_temp_block
[
j
]
-=
2
;
test_temp_block
[
j
]
/=
4
;
test_temp_block
[
j
]
*=
4
;
}
}
vp8_short_idct8x8_c
(
test_temp_block
,
test_output_block
,
pitch
);
for
(
int
j
=
0
;
j
<
64
;
++
j
)
{
...
...
Write
Preview
Supports
Markdown
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