Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
5d185d10
Commit
5d185d10
authored
11 years ago
by
Jim Bankoski
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "datarate_test renaming with suffix large because it is slow."
parents
954dbb28
6505b075
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/datarate_test.cc
+17
-15
test/datarate_test.cc
with
17 additions
and
15 deletions
test/datarate_test.cc
+
17
−
15
View file @
5d185d10
...
@@ -17,10 +17,12 @@
...
@@ -17,10 +17,12 @@
namespace
{
namespace
{
class
DatarateTest
:
public
::
libvpx_test
::
EncoderTest
,
class
DatarateTest
Large
:
public
::
libvpx_test
::
EncoderTest
,
public
::
libvpx_test
::
CodecTestWithParam
<
libvpx_test
::
TestMode
>
{
public
::
libvpx_test
::
CodecTestWithParam
<
libvpx_test
::
TestMode
>
{
public:
public:
DatarateTest
()
:
EncoderTest
(
GET_PARAM
(
0
))
{}
DatarateTestLarge
()
:
EncoderTest
(
GET_PARAM
(
0
))
{}
virtual
~
DatarateTestLarge
()
{}
protected
:
protected
:
virtual
void
SetUp
()
{
virtual
void
SetUp
()
{
...
@@ -120,7 +122,7 @@ class DatarateTest : public ::libvpx_test::EncoderTest,
...
@@ -120,7 +122,7 @@ class DatarateTest : public ::libvpx_test::EncoderTest,
size_t
bits_in_last_frame_
;
size_t
bits_in_last_frame_
;
};
};
TEST_P
(
DatarateTest
,
BasicBufferModel
)
{
TEST_P
(
DatarateTest
Large
,
BasicBufferModel
)
{
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_dropframe_thresh
=
1
;
cfg_
.
rc_dropframe_thresh
=
1
;
cfg_
.
rc_max_quantizer
=
56
;
cfg_
.
rc_max_quantizer
=
56
;
...
@@ -151,7 +153,7 @@ TEST_P(DatarateTest, BasicBufferModel) {
...
@@ -151,7 +153,7 @@ TEST_P(DatarateTest, BasicBufferModel) {
}
}
}
}
TEST_P
(
DatarateTest
,
ChangingDropFrameThresh
)
{
TEST_P
(
DatarateTest
Large
,
ChangingDropFrameThresh
)
{
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_max_quantizer
=
36
;
cfg_
.
rc_max_quantizer
=
36
;
cfg_
.
rc_end_usage
=
VPX_CBR
;
cfg_
.
rc_end_usage
=
VPX_CBR
;
...
@@ -179,13 +181,13 @@ TEST_P(DatarateTest, ChangingDropFrameThresh) {
...
@@ -179,13 +181,13 @@ TEST_P(DatarateTest, ChangingDropFrameThresh) {
}
}
}
}
class
DatarateTestVP9
:
public
::
libvpx_test
::
EncoderTest
,
class
DatarateTestVP9
Large
:
public
::
libvpx_test
::
EncoderTest
,
public
::
libvpx_test
::
CodecTestWith2Params
<
libvpx_test
::
TestMode
,
int
>
{
public
::
libvpx_test
::
CodecTestWith2Params
<
libvpx_test
::
TestMode
,
int
>
{
public:
public:
DatarateTestVP9
()
:
EncoderTest
(
GET_PARAM
(
0
))
{}
DatarateTestVP9
Large
()
:
EncoderTest
(
GET_PARAM
(
0
))
{}
protected
:
protected
:
virtual
~
DatarateTestVP9
()
{}
virtual
~
DatarateTestVP9
Large
()
{}
virtual
void
SetUp
()
{
virtual
void
SetUp
()
{
InitializeConfig
();
InitializeConfig
();
...
@@ -358,7 +360,7 @@ class DatarateTestVP9 : public ::libvpx_test::EncoderTest,
...
@@ -358,7 +360,7 @@ class DatarateTestVP9 : public ::libvpx_test::EncoderTest,
};
};
// Check basic rate targeting,
// Check basic rate targeting,
TEST_P
(
DatarateTestVP9
,
BasicRateTargeting
)
{
TEST_P
(
DatarateTestVP9
Large
,
BasicRateTargeting
)
{
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_sz
=
1000
;
cfg_
.
rc_buf_sz
=
1000
;
...
@@ -382,7 +384,7 @@ TEST_P(DatarateTestVP9, BasicRateTargeting) {
...
@@ -382,7 +384,7 @@ TEST_P(DatarateTestVP9, BasicRateTargeting) {
}
}
// Check basic rate targeting,
// Check basic rate targeting,
TEST_P
(
DatarateTestVP9
,
BasicRateTargeting444
)
{
TEST_P
(
DatarateTestVP9
Large
,
BasicRateTargeting444
)
{
::
libvpx_test
::
Y4mVideoSource
video
(
"rush_hour_444.y4m"
,
0
,
140
);
::
libvpx_test
::
Y4mVideoSource
video
(
"rush_hour_444.y4m"
,
0
,
140
);
cfg_
.
g_profile
=
1
;
cfg_
.
g_profile
=
1
;
...
@@ -414,7 +416,7 @@ TEST_P(DatarateTestVP9, BasicRateTargeting444) {
...
@@ -414,7 +416,7 @@ TEST_P(DatarateTestVP9, BasicRateTargeting444) {
// as the drop frame threshold is increased, and (2) that the total number of
// as the drop frame threshold is increased, and (2) that the total number of
// frame drops does not decrease as we increase frame drop threshold.
// frame drops does not decrease as we increase frame drop threshold.
// Use a lower qp-max to force some frame drops.
// Use a lower qp-max to force some frame drops.
TEST_P
(
DatarateTestVP9
,
ChangingDropFrameThresh
)
{
TEST_P
(
DatarateTestVP9
Large
,
ChangingDropFrameThresh
)
{
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_sz
=
1000
;
cfg_
.
rc_buf_sz
=
1000
;
...
@@ -455,7 +457,7 @@ TEST_P(DatarateTestVP9, ChangingDropFrameThresh) {
...
@@ -455,7 +457,7 @@ TEST_P(DatarateTestVP9, ChangingDropFrameThresh) {
}
}
// Check basic rate targeting for 2 temporal layers.
// Check basic rate targeting for 2 temporal layers.
TEST_P
(
DatarateTestVP9
,
BasicRateTargeting2TemporalLayers
)
{
TEST_P
(
DatarateTestVP9
Large
,
BasicRateTargeting2TemporalLayers
)
{
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_sz
=
1000
;
cfg_
.
rc_buf_sz
=
1000
;
...
@@ -492,7 +494,7 @@ TEST_P(DatarateTestVP9, BasicRateTargeting2TemporalLayers) {
...
@@ -492,7 +494,7 @@ TEST_P(DatarateTestVP9, BasicRateTargeting2TemporalLayers) {
}
}
// Check basic rate targeting for 3 temporal layers.
// Check basic rate targeting for 3 temporal layers.
TEST_P
(
DatarateTestVP9
,
BasicRateTargeting3TemporalLayers
)
{
TEST_P
(
DatarateTestVP9
Large
,
BasicRateTargeting3TemporalLayers
)
{
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_sz
=
1000
;
cfg_
.
rc_buf_sz
=
1000
;
...
@@ -533,7 +535,7 @@ TEST_P(DatarateTestVP9, BasicRateTargeting3TemporalLayers) {
...
@@ -533,7 +535,7 @@ TEST_P(DatarateTestVP9, BasicRateTargeting3TemporalLayers) {
// Check basic rate targeting for 3 temporal layers, with frame dropping.
// Check basic rate targeting for 3 temporal layers, with frame dropping.
// Only for one (low) bitrate with lower max_quantizer, and somewhat higher
// Only for one (low) bitrate with lower max_quantizer, and somewhat higher
// frame drop threshold, to force frame dropping.
// frame drop threshold, to force frame dropping.
TEST_P
(
DatarateTestVP9
,
BasicRateTargeting3TemporalLayersFrameDropping
)
{
TEST_P
(
DatarateTestVP9
Large
,
BasicRateTargeting3TemporalLayersFrameDropping
)
{
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_initial_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_optimal_sz
=
500
;
cfg_
.
rc_buf_sz
=
1000
;
cfg_
.
rc_buf_sz
=
1000
;
...
@@ -574,8 +576,8 @@ TEST_P(DatarateTestVP9, BasicRateTargeting3TemporalLayersFrameDropping) {
...
@@ -574,8 +576,8 @@ TEST_P(DatarateTestVP9, BasicRateTargeting3TemporalLayersFrameDropping) {
}
}
}
}
VP8_INSTANTIATE_TEST_CASE
(
DatarateTest
,
ALL_TEST_MODES
);
VP8_INSTANTIATE_TEST_CASE
(
DatarateTest
Large
,
ALL_TEST_MODES
);
VP9_INSTANTIATE_TEST_CASE
(
DatarateTestVP9
,
VP9_INSTANTIATE_TEST_CASE
(
DatarateTestVP9
Large
,
::
testing
::
Values
(
::
libvpx_test
::
kOnePassGood
,
::
testing
::
Values
(
::
libvpx_test
::
kOnePassGood
,
::
libvpx_test
::
kRealTime
),
::
libvpx_test
::
kRealTime
),
::
testing
::
Range
(
2
,
7
));
::
testing
::
Range
(
2
,
7
));
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets