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
Guillaume Martres
aom-rav1e
Commits
aaea40d8
Commit
aaea40d8
authored
Aug 22, 2014
by
James Zern
Committed by
Gerrit Code Review
Aug 22, 2014
Browse files
Merge "tests: use vpx_codec_dec_cfg_t() to initialize vars"
parents
0b0ef4c7
b4b191ab
Changes
11
Hide whitespace changes
Inline
Side-by-side
test/decode_perf_test.cc
View file @
aaea40d8
...
...
@@ -74,7 +74,7 @@ TEST_P(DecodePerfTest, PerfTest) {
libvpx_test
::
WebMVideoSource
video
(
video_name
);
video
.
Init
();
vpx_codec_dec_cfg_t
cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
cfg
=
vpx_codec_dec_cfg_t
()
;
cfg
.
threads
=
threads
;
libvpx_test
::
VP9Decoder
decoder
(
cfg
,
0
);
...
...
test/decode_test_driver.cc
View file @
aaea40d8
...
...
@@ -106,7 +106,7 @@ void DecoderTest::RunLoop(CompressedVideoSource *video,
}
void
DecoderTest
::
RunLoop
(
CompressedVideoSource
*
video
)
{
vpx_codec_dec_cfg_t
dec_cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
dec_cfg
=
vpx_codec_dec_cfg_t
()
;
RunLoop
(
video
,
dec_cfg
);
}
...
...
test/encode_test_driver.cc
View file @
aaea40d8
...
...
@@ -139,7 +139,7 @@ void EncoderTest::MismatchHook(const vpx_image_t* /*img1*/,
}
void
EncoderTest
::
RunLoop
(
VideoSource
*
video
)
{
vpx_codec_dec_cfg_t
dec_cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
dec_cfg
=
vpx_codec_dec_cfg_t
()
;
stats_
.
Reset
();
...
...
test/external_frame_buffer_test.cc
View file @
aaea40d8
...
...
@@ -285,7 +285,7 @@ class ExternalFrameBufferTest : public ::testing::Test {
video_
->
Init
();
video_
->
Begin
();
vpx_codec_dec_cfg_t
cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
cfg
=
vpx_codec_dec_cfg_t
()
;
decoder_
=
new
libvpx_test
::
VP9Decoder
(
cfg
,
0
);
ASSERT_TRUE
(
decoder_
!=
NULL
);
}
...
...
test/invalid_file_test.cc
View file @
aaea40d8
...
...
@@ -73,7 +73,7 @@ class InvalidFileTest
void
RunTest
()
{
const
DecodeParam
input
=
GET_PARAM
(
1
);
libvpx_test
::
CompressedVideoSource
*
video
=
NULL
;
vpx_codec_dec_cfg_t
cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
cfg
=
vpx_codec_dec_cfg_t
()
;
cfg
.
threads
=
input
.
threads
;
const
std
::
string
filename
=
input
.
filename
;
...
...
test/svc_test.cc
View file @
aaea40d8
...
...
@@ -60,7 +60,7 @@ class SvcTest : public ::testing::Test {
codec_enc_
.
kf_min_dist
=
100
;
codec_enc_
.
kf_max_dist
=
100
;
vpx_codec_dec_cfg_t
dec_cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
dec_cfg
=
vpx_codec_dec_cfg_t
()
;
VP9CodecFactory
codec_factory
;
decoder_
=
codec_factory
.
CreateDecoder
(
dec_cfg
,
0
);
}
...
...
test/tile_independence_test.cc
View file @
aaea40d8
...
...
@@ -29,7 +29,7 @@ class TileIndependenceTest : public ::libvpx_test::EncoderTest,
md5_inv_order_
(),
n_tiles_
(
GET_PARAM
(
1
))
{
init_flags_
=
VPX_CODEC_USE_PSNR
;
vpx_codec_dec_cfg_t
cfg
;
vpx_codec_dec_cfg_t
cfg
=
vpx_codec_dec_cfg_t
()
;
cfg
.
w
=
704
;
cfg
.
h
=
144
;
cfg
.
threads
=
1
;
...
...
test/user_priv_test.cc
View file @
aaea40d8
...
...
@@ -47,7 +47,7 @@ string DecodeFile(const string &filename) {
libvpx_test
::
WebMVideoSource
video
(
filename
);
video
.
Init
();
vpx_codec_dec_cfg_t
cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
cfg
=
vpx_codec_dec_cfg_t
()
;
libvpx_test
::
VP9Decoder
decoder
(
cfg
,
0
);
libvpx_test
::
MD5
md5
;
...
...
test/vp8_decrypt_test.cc
View file @
aaea40d8
...
...
@@ -47,7 +47,7 @@ TEST(TestDecrypt, DecryptWorksVp8) {
libvpx_test
::
IVFVideoSource
video
(
"vp80-00-comprehensive-001.ivf"
);
video
.
Init
();
vpx_codec_dec_cfg_t
dec_cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
dec_cfg
=
vpx_codec_dec_cfg_t
()
;
VP8Decoder
decoder
(
dec_cfg
,
0
);
video
.
Begin
();
...
...
test/vp9_decrypt_test.cc
View file @
aaea40d8
...
...
@@ -47,7 +47,7 @@ TEST(TestDecrypt, DecryptWorksVp9) {
libvpx_test
::
IVFVideoSource
video
(
"vp90-2-05-resize.ivf"
);
video
.
Init
();
vpx_codec_dec_cfg_t
dec_cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
dec_cfg
=
vpx_codec_dec_cfg_t
()
;
VP9Decoder
decoder
(
dec_cfg
,
0
);
video
.
Begin
();
...
...
test/vp9_thread_test.cc
View file @
aaea40d8
...
...
@@ -163,7 +163,7 @@ string DecodeFile(const string& filename, int num_threads) {
libvpx_test
::
WebMVideoSource
video
(
filename
);
video
.
Init
();
vpx_codec_dec_cfg_t
cfg
=
{
0
}
;
vpx_codec_dec_cfg_t
cfg
=
vpx_codec_dec_cfg_t
()
;
cfg
.
threads
=
num_threads
;
libvpx_test
::
VP9Decoder
decoder
(
cfg
,
0
);
...
...
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