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
9917842f
Commit
9917842f
authored
Mar 15, 2016
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for VP9E_CONTENT_SCREEN.
Change-Id: Id28007576205b7f46957b20eeacb5fda6872663e
parent
627a3ddc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
test/cpu_speed_test.cc
test/cpu_speed_test.cc
+19
-1
No files found.
test/cpu_speed_test.cc
View file @
9917842f
...
...
@@ -26,7 +26,8 @@ class CpuSpeedTest
:
EncoderTest
(
GET_PARAM
(
0
)),
encoding_mode_
(
GET_PARAM
(
1
)),
set_cpu_used_
(
GET_PARAM
(
2
)),
min_psnr_
(
kMaxPSNR
)
{}
min_psnr_
(
kMaxPSNR
),
tune_content_
(
VP9E_CONTENT_DEFAULT
)
{}
virtual
~
CpuSpeedTest
()
{}
virtual
void
SetUp
()
{
...
...
@@ -49,6 +50,7 @@ class CpuSpeedTest
::
libvpx_test
::
Encoder
*
encoder
)
{
if
(
video
->
frame
()
==
1
)
{
encoder
->
Control
(
VP8E_SET_CPUUSED
,
set_cpu_used_
);
encoder
->
Control
(
VP9E_SET_TUNE_CONTENT
,
VP9E_CONTENT_SCREEN
);
if
(
encoding_mode_
!=
::
libvpx_test
::
kRealTime
)
{
encoder
->
Control
(
VP8E_SET_ENABLEAUTOALTREF
,
1
);
encoder
->
Control
(
VP8E_SET_ARNR_MAXFRAMES
,
7
);
...
...
@@ -66,6 +68,7 @@ class CpuSpeedTest
::
libvpx_test
::
TestMode
encoding_mode_
;
int
set_cpu_used_
;
double
min_psnr_
;
int
tune_content_
;
};
TEST_P
(
CpuSpeedTest
,
TestQ0
)
{
...
...
@@ -103,6 +106,21 @@ TEST_P(CpuSpeedTest, TestScreencastQ0) {
EXPECT_GE
(
min_psnr_
,
kMaxPSNR
);
}
TEST_P
(
CpuSpeedTest
,
TestTuneScreen
)
{
::
libvpx_test
::
Y4mVideoSource
video
(
"screendata.y4m"
,
0
,
25
);
cfg_
.
g_timebase
=
video
.
timebase
();
cfg_
.
rc_2pass_vbr_minsection_pct
=
5
;
cfg_
.
rc_2pass_vbr_minsection_pct
=
2000
;
cfg_
.
rc_target_bitrate
=
2000
;
cfg_
.
rc_max_quantizer
=
63
;
cfg_
.
rc_min_quantizer
=
0
;
tune_content_
=
VP9E_CONTENT_SCREEN
;
init_flags_
=
VPX_CODEC_USE_PSNR
;
ASSERT_NO_FATAL_FAILURE
(
RunLoop
(
&
video
));
}
TEST_P
(
CpuSpeedTest
,
TestEncodeHighBitrate
)
{
// Validate that this non multiple of 64 wide clip encodes and decodes
// without a mismatch when passing in a very low max q. This pushes
...
...
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