Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
a0b5ed67
Commit
a0b5ed67
authored
Mar 12, 2014
by
Jim Bankoski
Committed by
Gerrit Code Review
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error_resilience_test renaming -> Suffix Large
Change-Id: I62daa5938c93f0fce0c90ad3b67a2eb590120e38
parent
5d185d10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
test/error_resilience_test.cc
test/error_resilience_test.cc
+13
-12
No files found.
test/error_resilience_test.cc
View file @
a0b5ed67
...
...
@@ -19,19 +19,20 @@ namespace {
const
int
kMaxErrorFrames
=
12
;
const
int
kMaxDroppableFrames
=
12
;
class
ErrorResilienceTest
:
public
::
libvpx_test
::
EncoderTest
,
class
ErrorResilienceTest
Large
:
public
::
libvpx_test
::
EncoderTest
,
public
::
libvpx_test
::
CodecTestWithParam
<
libvpx_test
::
TestMode
>
{
protected:
ErrorResilienceTest
()
:
EncoderTest
(
GET_PARAM
(
0
)),
psnr_
(
0.0
),
nframes_
(
0
),
mismatch_psnr_
(
0.0
),
mismatch_nframes_
(
0
),
encoding_mode_
(
GET_PARAM
(
1
))
{
ErrorResilienceTestLarge
()
:
EncoderTest
(
GET_PARAM
(
0
)),
psnr_
(
0.0
),
nframes_
(
0
),
mismatch_psnr_
(
0.0
),
mismatch_nframes_
(
0
),
encoding_mode_
(
GET_PARAM
(
1
))
{
Reset
();
}
virtual
~
ErrorResilienceTest
()
{}
virtual
~
ErrorResilienceTest
Large
()
{}
void
Reset
()
{
error_nframes_
=
0
;
...
...
@@ -144,7 +145,7 @@ class ErrorResilienceTest : public ::libvpx_test::EncoderTest,
libvpx_test
::
TestMode
encoding_mode_
;
};
TEST_P
(
ErrorResilienceTest
,
OnVersusOff
)
{
TEST_P
(
ErrorResilienceTest
Large
,
OnVersusOff
)
{
const
vpx_rational
timebase
=
{
33333333
,
1000000000
};
cfg_
.
g_timebase
=
timebase
;
cfg_
.
rc_target_bitrate
=
2000
;
...
...
@@ -179,7 +180,7 @@ TEST_P(ErrorResilienceTest, OnVersusOff) {
// if we lose (i.e., drop before decoding) a set of droppable
// frames (i.e., frames that don't update any reference buffers).
// Check both isolated and consecutive loss.
TEST_P
(
ErrorResilienceTest
,
DropFramesWithoutRecovery
)
{
TEST_P
(
ErrorResilienceTest
Large
,
DropFramesWithoutRecovery
)
{
const
vpx_rational
timebase
=
{
33333333
,
1000000000
};
cfg_
.
g_timebase
=
timebase
;
cfg_
.
rc_target_bitrate
=
500
;
...
...
@@ -235,7 +236,7 @@ TEST_P(ErrorResilienceTest, DropFramesWithoutRecovery) {
#endif
}
VP8_INSTANTIATE_TEST_CASE
(
ErrorResilienceTest
,
ONE_PASS_TEST_MODES
);
VP9_INSTANTIATE_TEST_CASE
(
ErrorResilienceTest
,
ONE_PASS_TEST_MODES
);
VP8_INSTANTIATE_TEST_CASE
(
ErrorResilienceTest
Large
,
ONE_PASS_TEST_MODES
);
VP9_INSTANTIATE_TEST_CASE
(
ErrorResilienceTest
Large
,
ONE_PASS_TEST_MODES
);
}
// namespace
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