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
Xiph.Org
aom-rav1e
Commits
51ebb9a3
Commit
51ebb9a3
authored
Aug 08, 2012
by
James Zern
Browse files
EncoderTest: check that timestamps are monotonic
Change-Id: I813fa94c83df6282f382b24bbaccb1fe2fa94276
parent
3c37e7d2
Changes
2
Show whitespace changes
Inline
Side-by-side
test/encode_test_driver.cc
View file @
51ebb9a3
...
...
@@ -94,6 +94,8 @@ void EncoderTest::SetMode(TestMode mode) {
void
EncoderTest
::
RunLoop
(
VideoSource
*
video
)
{
for
(
unsigned
int
pass
=
0
;
pass
<
passes_
;
pass
++
)
{
last_pts_
=
0
;
if
(
passes_
==
1
)
cfg_
.
g_pass
=
VPX_RC_ONE_PASS
;
else
if
(
pass
==
0
)
...
...
@@ -120,6 +122,8 @@ void EncoderTest::RunLoop(VideoSource *video) {
if
(
pkt
->
kind
!=
VPX_CODEC_CX_FRAME_PKT
)
continue
;
ASSERT_GE
(
pkt
->
data
.
frame
.
pts
,
last_pts_
);
last_pts_
=
pkt
->
data
.
frame
.
pts
;
FramePktHook
(
pkt
);
}
...
...
test/encode_test_driver.h
View file @
51ebb9a3
...
...
@@ -138,7 +138,7 @@ class Encoder {
// classes directly, so that tests can be parameterized differently.
class
EncoderTest
{
protected:
EncoderTest
()
:
abort_
(
false
),
flags_
(
0
)
{}
EncoderTest
()
:
abort_
(
false
),
flags_
(
0
)
,
last_pts_
(
0
)
{}
virtual
~
EncoderTest
()
{}
...
...
@@ -177,6 +177,7 @@ class EncoderTest {
unsigned
long
deadline_
;
TwopassStatsStore
stats_
;
unsigned
long
flags_
;
vpx_codec_pts_t
last_pts_
;
};
}
// namespace libvpx_test
...
...
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