Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
119decde
Commit
119decde
authored
11 years ago
by
Jingning Han
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Cosmetic changes in 16x16 ADST/DCT unit test"
parents
84c3ac04
29c45f31
v1.14.0-linphone
1.4.X
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/dct16x16_test.cc
+10
-11
test/dct16x16_test.cc
with
10 additions
and
11 deletions
test/dct16x16_test.cc
+
10
−
11
View file @
119decde
...
...
@@ -275,8 +275,8 @@ void idct16x16_add(int16_t* /*in*/, int16_t *out, uint8_t *dst,
}
void
fht16x16
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
/*dst*/
,
int
stride
,
int
tx_type
)
{
// FIXME(jingning):
patch dependency on SSE2 16x16 hybrid transform coding
#if HAVE_SSE2
&& 0
// FIXME(jingning):
need to test both SSE2 and c
#if HAVE_SSE2
vp9_short_fht16x16_sse2
(
in
,
out
,
stride
>>
1
,
tx_type
);
#else
vp9_short_fht16x16_c
(
in
,
out
,
stride
>>
1
,
tx_type
);
...
...
@@ -289,10 +289,9 @@ void iht16x16_add(int16_t* /*in*/, int16_t *out, uint8_t *dst,
class
FwdTrans16x16Test
:
public
::
testing
::
TestWithParam
<
int
>
{
public:
FwdTrans16x16Test
()
{
SetUpTestTxfm
();
}
~
FwdTrans16x16Test
()
{}
virtual
~
FwdTrans16x16Test
()
{}
void
SetUp
TestTxfm
()
{
virtual
void
SetUp
()
{
tx_type_
=
GetParam
();
if
(
tx_type_
==
0
)
{
fwd_txfm
=
fdct16x16
;
...
...
@@ -332,10 +331,9 @@ TEST_P(FwdTrans16x16Test, AccuracyCheck) {
for
(
int
j
=
0
;
j
<
256
;
++
j
)
{
src
[
j
]
=
rnd
.
Rand8
();
dst
[
j
]
=
rnd
.
Rand8
();
}
// Initialize a test block with input range [-255, 255].
for
(
int
j
=
0
;
j
<
256
;
++
j
)
// Initialize a test block with input range [-255, 255].
test_input_block
[
j
]
=
src
[
j
]
-
dst
[
j
];
}
const
int
pitch
=
32
;
RunFwdTxfm
(
test_input_block
,
test_temp_block
,
dst
,
pitch
,
tx_type_
);
...
...
@@ -382,10 +380,11 @@ TEST_P(FwdTrans16x16Test, CoeffSizeCheck) {
// The minimum quant value is 4.
for
(
int
j
=
0
;
j
<
256
;
++
j
)
{
EXPECT_GE
(
4
*
DCT_MAX_VALUE
,
abs
(
output_block
[
j
]))
EXPECT_GE
(
4
*
DCT_MAX_VALUE
,
abs
(
output_block
[
j
]))
<<
"Error: 16x16 FDCT has coefficient larger than 4*DCT_MAX_VALUE"
;
EXPECT_GE
(
4
*
DCT_MAX_VALUE
,
abs
(
output_extreme_block
[
j
]))
<<
"Error: 16x16 FDCT extreme has coefficient larger than 4*DCT_MAX_VALUE"
;
EXPECT_GE
(
4
*
DCT_MAX_VALUE
,
abs
(
output_extreme_block
[
j
]))
<<
"Error: 16x16 FDCT extreme has coefficient larger "
<<
"than 4*DCT_MAX_VALUE"
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets