Skip to content
GitLab
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
310666b1
Commit
310666b1
authored
Jul 24, 2012
by
Johann
Committed by
Gerrit Code Review
Jul 24, 2012
Browse files
Merge "Allow specifying the seed"
parents
9f89c4c2
9ec25527
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/video_source.h
View file @
310666b1
...
...
@@ -102,13 +102,15 @@ class DummyVideoSource : public VideoSource {
class
RandomVideoSource
:
public
DummyVideoSource
{
public:
RandomVideoSource
()
:
rnd_
(
ACMRandom
::
DeterministicSeed
())
{}
RandomVideoSource
(
int
seed
=
ACMRandom
::
DeterministicSeed
())
:
rnd_
(
seed
),
seed_
(
seed
)
{
}
protected:
// Reset the RNG to get a matching stream for the second pass
virtual
void
Begin
()
{
frame_
=
0
;
rnd_
.
Reset
(
ACMRandom
::
DeterministicS
eed
()
);
rnd_
.
Reset
(
s
eed
_
);
FillFrame
();
}
...
...
@@ -123,6 +125,7 @@ class RandomVideoSource : public DummyVideoSource {
}
ACMRandom
rnd_
;
int
seed_
;
};
}
// namespace libvpx_test
...
...
Write
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!
Cancel
Please
register
or
sign in
to comment