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
ae77d0fe
Commit
ae77d0fe
authored
Jun 27, 2014
by
Alex Converse
Committed by
Gerrit Code Review
Jun 27, 2014
Browse files
Merge "Add a CPU speed test with screen content."
parents
9cd90d46
5d088123
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/cpu_speed_test.cc
View file @
ae77d0fe
...
...
@@ -14,6 +14,7 @@
#include
"test/encode_test_driver.h"
#include
"test/i420_video_source.h"
#include
"test/util.h"
#include
"test/y4m_video_source.h"
namespace
{
...
...
@@ -94,6 +95,20 @@ TEST_P(CpuSpeedTest, TestQ0) {
EXPECT_GE
(
min_psnr_
,
kMaxPSNR
);
}
TEST_P
(
CpuSpeedTest
,
TestScreencastQ0
)
{
::
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
=
400
;
cfg_
.
rc_max_quantizer
=
0
;
cfg_
.
rc_min_quantizer
=
0
;
init_flags_
=
VPX_CODEC_USE_PSNR
;
ASSERT_NO_FATAL_FAILURE
(
RunLoop
(
&
video
));
EXPECT_GE
(
min_psnr_
,
kMaxPSNR
);
}
TEST_P
(
CpuSpeedTest
,
TestEncodeHighBitrate
)
{
// Validate that this non multiple of 64 wide clip encodes and decodes
...
...
test/test.mk
View file @
ae77d0fe
...
...
@@ -135,6 +135,7 @@ endif # CONFIG_SHARED
LIBVPX_TEST_DATA-$(CONFIG_ENCODERS)
+=
hantro_collage_w352h288.yuv
LIBVPX_TEST_DATA-$(CONFIG_ENCODERS)
+=
hantro_odd.yuv
LIBVPX_TEST_DATA-$(CONFIG_VP9_ENCODER)
+=
rush_hour_444.y4m
LIBVPX_TEST_DATA-$(CONFIG_VP9_ENCODER)
+=
screendata.y4m
LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER)
+=
vp80-00-comprehensive-001.ivf
LIBVPX_TEST_DATA-$(CONFIG_VP8_DECODER)
+=
vp80-00-comprehensive-001.ivf.md5
...
...
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