Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
288663e7
Commit
288663e7
authored
11 years ago
by
Marco Paniconi
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add consective frame loss to error_resilience test."
parents
1cc769a5
f61b962c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/error_resilience_test.cc
+16
-8
16 additions, 8 deletions
test/error_resilience_test.cc
with
16 additions
and
8 deletions
test/error_resilience_test.cc
+
16
−
8
View file @
288663e7
...
...
@@ -16,8 +16,8 @@
namespace
{
const
int
kMaxErrorFrames
=
8
;
const
int
kMaxDroppableFrames
=
8
;
const
int
kMaxErrorFrames
=
12
;
const
int
kMaxDroppableFrames
=
12
;
class
ErrorResilienceTest
:
public
::
libvpx_test
::
EncoderTest
,
public
::
libvpx_test
::
CodecTestWithParam
<
libvpx_test
::
TestMode
>
{
...
...
@@ -175,6 +175,10 @@ TEST_P(ErrorResilienceTest, OnVersusOff) {
}
}
// Check for successful decoding and no encoder/decoder mismatch
// 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
)
{
const
vpx_rational
timebase
=
{
33333333
,
1000000000
};
cfg_
.
g_timebase
=
timebase
;
...
...
@@ -186,14 +190,18 @@ TEST_P(ErrorResilienceTest, DropFramesWithoutRecovery) {
init_flags_
=
VPX_CODEC_USE_PSNR
;
libvpx_test
::
I420VideoSource
video
(
"hantro_collage_w352h288.yuv"
,
352
,
288
,
timebase
.
den
,
timebase
.
num
,
0
,
3
0
);
timebase
.
den
,
timebase
.
num
,
0
,
4
0
);
// Error resilient mode ON.
cfg_
.
g_error_resilient
=
1
;
// Set an arbitrary set of error frames same as droppable frames
unsigned
int
num_droppable_frames
=
2
;
unsigned
int
droppable_frame_list
[]
=
{
5
,
16
};
cfg_
.
kf_mode
=
VPX_KF_DISABLED
;
// Set an arbitrary set of error frames same as droppable frames.
// In addition to isolated loss/drop, add a long consecutive series
// (of size 9) of dropped frames.
unsigned
int
num_droppable_frames
=
11
;
unsigned
int
droppable_frame_list
[]
=
{
5
,
16
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
};
SetDroppableFrames
(
num_droppable_frames
,
droppable_frame_list
);
SetErrorFrames
(
num_droppable_frames
,
droppable_frame_list
);
ASSERT_NO_FATAL_FAILURE
(
RunLoop
(
&
video
));
...
...
@@ -202,7 +210,7 @@ TEST_P(ErrorResilienceTest, DropFramesWithoutRecovery) {
<<
GetMismatchFrames
()
<<
"
\n
"
;
EXPECT_EQ
(
GetMismatchFrames
(),
(
unsigned
int
)
0
);
//
r
eset previously set error/droppable frames
//
R
eset previously set
of
error/droppable frames
.
Reset
();
#if 0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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