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
Xiph.Org
aom-rav1e
Commits
46f02da7
Commit
46f02da7
authored
Jan 30, 2014
by
James Zern
Committed by
Gerrit Code Review
Jan 30, 2014
Browse files
Merge "tests: fix a few msvc warnings"
parents
54ba75a5
77e64d8c
Changes
4
Show whitespace changes
Inline
Side-by-side
test/i420_video_source.h
View file @
46f02da7
...
@@ -52,7 +52,7 @@ class I420VideoSource : public VideoSource {
...
@@ -52,7 +52,7 @@ class I420VideoSource : public VideoSource {
ASSERT_TRUE
(
input_file_
!=
NULL
)
<<
"Input file open failed. Filename: "
ASSERT_TRUE
(
input_file_
!=
NULL
)
<<
"Input file open failed. Filename: "
<<
file_name_
;
<<
file_name_
;
if
(
start_
)
{
if
(
start_
)
{
fseek
(
input_file_
,
raw_sz_
*
start_
,
SEEK_SET
);
fseek
(
input_file_
,
static_cast
<
unsigned
>
(
raw_sz_
)
*
start_
,
SEEK_SET
);
}
}
frame_
=
start_
;
frame_
=
start_
;
...
...
test/subtract_test.cc
View file @
46f02da7
...
@@ -59,7 +59,7 @@ TEST_P(SubtractBlockTest, SimpleSubtract) {
...
@@ -59,7 +59,7 @@ TEST_P(SubtractBlockTest, SimpleSubtract) {
int16_t
*
src_diff
=
be
.
src_diff
;
int16_t
*
src_diff
=
be
.
src_diff
;
for
(
int
r
=
0
;
r
<
kBlockHeight
;
++
r
)
{
for
(
int
r
=
0
;
r
<
kBlockHeight
;
++
r
)
{
for
(
int
c
=
0
;
c
<
kBlockWidth
;
++
c
)
{
for
(
int
c
=
0
;
c
<
kBlockWidth
;
++
c
)
{
src_diff
[
c
]
=
static_cast
<
int16_t
>
(
0xa5a5
);
src_diff
[
c
]
=
static_cast
<
int16_t
>
(
0xa5a5
u
);
}
}
src_diff
+=
kDiffPredStride
;
src_diff
+=
kDiffPredStride
;
}
}
...
...
test/test_vector_test.cc
View file @
46f02da7
...
@@ -35,7 +35,7 @@ class TestVectorTest : public ::libvpx_test::DecoderTest,
...
@@ -35,7 +35,7 @@ class TestVectorTest : public ::libvpx_test::DecoderTest,
void
OpenMD5File
(
const
std
::
string
&
md5_file_name_
)
{
void
OpenMD5File
(
const
std
::
string
&
md5_file_name_
)
{
md5_file_
=
libvpx_test
::
OpenTestDataFile
(
md5_file_name_
);
md5_file_
=
libvpx_test
::
OpenTestDataFile
(
md5_file_name_
);
ASSERT_TRUE
(
md5_file_
)
<<
"Md5 file open failed. Filename: "
ASSERT_TRUE
(
md5_file_
!=
NULL
)
<<
"Md5 file open failed. Filename: "
<<
md5_file_name_
;
<<
md5_file_name_
;
}
}
...
...
test/vp8_boolcoder_test.cc
View file @
46f02da7
...
@@ -43,7 +43,7 @@ void encrypt_buffer(uint8_t *buffer, int size) {
...
@@ -43,7 +43,7 @@ void encrypt_buffer(uint8_t *buffer, int size) {
void
test_decrypt_cb
(
void
*
decrypt_state
,
const
uint8_t
*
input
,
void
test_decrypt_cb
(
void
*
decrypt_state
,
const
uint8_t
*
input
,
uint8_t
*
output
,
int
count
)
{
uint8_t
*
output
,
int
count
)
{
in
t
offset
=
input
-
reinterpret_cast
<
uint8_t
*>
(
decrypt_state
);
const
size_
t
offset
=
input
-
reinterpret_cast
<
uint8_t
*>
(
decrypt_state
);
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
output
[
i
]
=
input
[
i
]
^
secret_key
[(
offset
+
i
)
&
15
];
output
[
i
]
=
input
[
i
]
^
secret_key
[(
offset
+
i
)
&
15
];
}
}
...
...
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