Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
c202100f
Commit
c202100f
authored
Dec 04, 2012
by
Yaowu Xu
Browse files
Enable unit tests to build with MSVC
Change-Id: Ie80597221bee494679ae2ba50cca22dea2609cba
parent
6a5e6e05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
libs.mk
libs.mk
+2
-0
test/idct8x8_test.cc
test/idct8x8_test.cc
+9
-0
No files found.
libs.mk
View file @
c202100f
...
...
@@ -425,6 +425,7 @@ gtest.vcproj: $(SRC_PATH_BARE)/third_party/googletest/src/src/gtest-all.cc
--proj-guid
=
EC00E1EC-AF68-4D92-A255-181690D1C9B1
\
--ver
=
$(CONFIG_VS_VERSION)
\
--src-path-bare
=
"
$(SRC_PATH_BARE)
"
\
-D_VARIADIC_MAX
=
10
\
--out
=
gtest.vcproj
$(SRC_PATH_BARE)
/third_party/googletest/src/src/gtest-all.cc
\
-I
.
-I
"
$(SRC_PATH_BARE)
/third_party/googletest/src/include"
-I
"
$(SRC_PATH_BARE)
/third_party/googletest/src"
...
...
@@ -436,6 +437,7 @@ test_libvpx.vcproj: $(LIBVPX_TEST_SRCS)
--exe
\
--target
=
$(TOOLCHAIN)
\
--name
=
test_libvpx
\
-D_VARIADIC_MAX
=
10
\
--proj-guid
=
CD837F5F-52D8-4314-A370-895D614166A7
\
--ver
=
$(CONFIG_VS_VERSION)
\
$(
if
$(CONFIG_STATIC_MSVCRT)
,--static-crt
)
\
...
...
test/idct8x8_test.cc
View file @
c202100f
...
...
@@ -25,6 +25,15 @@ using libvpx_test::ACMRandom;
namespace
{
#ifdef _MSC_VER
static
int
round
(
double
x
)
{
if
(
x
<
0
)
return
(
int
)
ceil
(
x
-
0.5
);
else
return
(
int
)
floor
(
x
+
0.5
);
}
#endif
void
reference_dct_1d
(
double
input
[
8
],
double
output
[
8
])
{
const
double
kPi
=
3.141592653589793238462643383279502884
;
const
double
kInvSqrt2
=
0.707106781186547524400844362104
;
...
...
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