Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
29b6e73c
Commit
29b6e73c
authored
Jun 21, 2013
by
Jingning Han
Browse files
Cosmetic changes in 4x4 fwd transform unit test
Change-Id: I7a9ea03b92160f1052e56665b19a155211ee241f
parent
cd6932db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
test/fdct4x4_test.cc
test/fdct4x4_test.cc
+16
-14
No files found.
test/fdct4x4_test.cc
View file @
29b6e73c
...
...
@@ -24,17 +24,19 @@ extern "C" {
using
libvpx_test
::
ACMRandom
;
namespace
{
void
fdct4x4
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
)
{
void
fdct4x4
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*/
*
dst
*/
,
int
stride
,
int
/*tx_type*/
)
{
vp9_short_fdct4x4_c
(
in
,
out
,
stride
);
}
void
idct4x4_add
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
)
{
void
idct4x4_add
(
int16_t
*
/
*
in
*/
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
/*
tx_type
*/
)
{
vp9_short_idct4x4_add_c
(
out
,
dst
,
stride
>>
1
);
}
void
fht4x4
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
)
{
void
fht4x4
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*/
*
dst
*/
,
int
stride
,
int
tx_type
)
{
vp9_short_fht4x4_c
(
in
,
out
,
stride
>>
1
,
tx_type
);
}
void
iht4x4_add
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
void
iht4x4_add
(
int16_t
*
/
*
in
*/
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
)
{
vp9_short_iht4x4_add_c
(
out
,
dst
,
stride
>>
1
,
tx_type
);
}
...
...
@@ -47,29 +49,29 @@ class FwdTrans4x4Test : public ::testing::TestWithParam<int> {
void
SetUpTestTxfm
()
{
tx_type_
=
GetParam
();
if
(
tx_type_
==
0
)
{
fwd_txfm
=
fdct4x4
;
inv_txfm
=
idct4x4_add
;
fwd_txfm
_
=
fdct4x4
;
inv_txfm
_
=
idct4x4_add
;
}
else
{
fwd_txfm
=
fht4x4
;
inv_txfm
=
iht4x4_add
;
fwd_txfm
_
=
fht4x4
;
inv_txfm
_
=
iht4x4_add
;
}
}
protected:
void
RunFwdTxfm
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
)
{
(
*
fwd_txfm
)(
in
,
out
,
dst
,
stride
,
tx_type
);
(
*
fwd_txfm
_
)(
in
,
out
,
dst
,
stride
,
tx_type
);
}
void
RunInvTxfm
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
)
{
(
*
inv_txfm
)(
in
,
out
,
dst
,
stride
,
tx_type
);
(
*
inv_txfm
_
)(
in
,
out
,
dst
,
stride
,
tx_type
);
}
int
tx_type_
;
void
(
*
fwd_txfm
)(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
void
(
*
fwd_txfm
_
)(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
);
void
(
*
inv_txfm
)(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
void
(
*
inv_txfm
_
)(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
);
};
...
...
@@ -181,7 +183,7 @@ TEST_P(FwdTrans4x4Test, RoundTripErrorCheck) {
EXPECT_GE
(
count_test_block
,
total_error
)
<<
"Error: FDCT/IDCT or FHT/IHT has average "
"roundtrip error > 1 per block"
;
<<
"roundtrip error > 1 per block"
;
}
INSTANTIATE_TEST_CASE_P
(
VP9
,
FwdTrans4x4Test
,
::
testing
::
Range
(
0
,
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