Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ce8c2892
Commit
ce8c2892
authored
Mar 22, 2012
by
Alexander Reshetnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed OS conditions from highgui tests
parent
45fd8a6a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
36 deletions
+0
-36
test_framecount.cpp
modules/highgui/test/test_framecount.cpp
+0
-6
test_positioning.cpp
modules/highgui/test/test_positioning.cpp
+0
-12
test_video_io.cpp
modules/highgui/test/test_video_io.cpp
+0
-18
No files found.
modules/highgui/test/test_framecount.cpp
View file @
ce8c2892
...
@@ -55,9 +55,6 @@ public:
...
@@ -55,9 +55,6 @@ public:
void
CV_FramecountTest
::
run
(
int
)
void
CV_FramecountTest
::
run
(
int
)
{
{
#if defined WIN32 || (defined __linux__ && !defined ANDROID)
#if !defined HAVE_GSTREAMER || defined HAVE_GSTREAMER_APP
const
int
time_sec
=
5
,
fps
=
25
;
const
int
time_sec
=
5
,
fps
=
25
;
const
string
ext
[]
=
{
"avi"
,
"mov"
,
"mp4"
,
"mpg"
,
"wmv"
};
const
string
ext
[]
=
{
"avi"
,
"mov"
,
"mp4"
,
"mpg"
,
"wmv"
};
...
@@ -126,9 +123,6 @@ void CV_FramecountTest::run(int)
...
@@ -126,9 +123,6 @@ void CV_FramecountTest::run(int)
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"
\n
Successfull experiments: %d (%d%%)
\n
"
,
n
-
failed
,
(
n
-
failed
)
*
100
/
n
);
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"
\n
Successfull experiments: %d (%d%%)
\n
"
,
n
-
failed
,
(
n
-
failed
)
*
100
/
n
);
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Failed experiments: %d (%d%%)
\n
"
,
failed
,
failed
*
100
/
n
);
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Failed experiments: %d (%d%%)
\n
"
,
failed
,
failed
*
100
/
n
);
#endif
#endif
}
}
TEST
(
HighguiFramecount
,
regression
)
{
CV_FramecountTest
test
;
test
.
safe_run
();}
TEST
(
HighguiFramecount
,
regression
)
{
CV_FramecountTest
test
;
test
.
safe_run
();}
modules/highgui/test/test_positioning.cpp
View file @
ce8c2892
...
@@ -209,24 +209,12 @@ void CV_VideoPositioningTest::run_test(int method)
...
@@ -209,24 +209,12 @@ void CV_VideoPositioningTest::run_test(int method)
void
CV_VideoProgressivePositioningTest
::
run
(
int
)
void
CV_VideoProgressivePositioningTest
::
run
(
int
)
{
{
#if defined WIN32 || (defined __linux__ && !defined ANDROID)
#if !defined HAVE_GSTREAMER || defined HAVE_GSTREAMER_APP
run_test
(
PROGRESSIVE
);
run_test
(
PROGRESSIVE
);
#endif
#endif
}
}
void
CV_VideoRandomPositioningTest
::
run
(
int
)
void
CV_VideoRandomPositioningTest
::
run
(
int
)
{
{
#if defined WIN32 || (defined __linux__ && !defined ANDROID)
#if !defined HAVE_GSTREAMER || defined HAVE_GSTREAMER_APP
run_test
(
RANDOM
);
run_test
(
RANDOM
);
#endif
#endif
}
}
TEST
(
HighguiPositioning
,
progressive
)
{
CV_VideoProgressivePositioningTest
test
;
test
.
safe_run
();
}
TEST
(
HighguiPositioning
,
progressive
)
{
CV_VideoProgressivePositioningTest
test
;
test
.
safe_run
();
}
...
...
modules/highgui/test/test_video_io.cpp
View file @
ce8c2892
...
@@ -633,9 +633,6 @@ void CV_SpecificImageTest::run(int)
...
@@ -633,9 +633,6 @@ void CV_SpecificImageTest::run(int)
void
CV_VideoTest
::
run
(
int
)
void
CV_VideoTest
::
run
(
int
)
{
{
#if defined WIN32 || (defined __linux__ && !defined ANDROID)
#if !defined HAVE_GSTREAMER || defined HAVE_GSTREAMER_APP
const
char
codecs
[][
4
]
=
{
{
'I'
,
'Y'
,
'U'
,
'V'
},
const
char
codecs
[][
4
]
=
{
{
'I'
,
'Y'
,
'U'
,
'V'
},
{
'X'
,
'V'
,
'I'
,
'D'
},
{
'X'
,
'V'
,
'I'
,
'D'
},
{
'M'
,
'P'
,
'G'
,
'2'
},
{
'M'
,
'P'
,
'G'
,
'2'
},
...
@@ -649,16 +646,10 @@ void CV_VideoTest::run(int)
...
@@ -649,16 +646,10 @@ void CV_VideoTest::run(int)
{
{
VideoTest
(
ts
->
get_data_path
(),
CV_FOURCC
(
codecs
[
i
][
0
],
codecs
[
i
][
1
],
codecs
[
i
][
2
],
codecs
[
i
][
3
]));
VideoTest
(
ts
->
get_data_path
(),
CV_FOURCC
(
codecs
[
i
][
0
],
codecs
[
i
][
1
],
codecs
[
i
][
2
],
codecs
[
i
][
3
]));
}
}
#endif
#endif
}
}
void
CV_SpecificVideoFileTest
::
run
(
int
)
void
CV_SpecificVideoFileTest
::
run
(
int
)
{
{
#if defined WIN32 || (defined __linux__ && !defined ANDROID)
#if !defined HAVE_GSTREAMER || defined HAVE_GSTREAMER_APP
const
char
codecs
[][
4
]
=
{
{
'M'
,
'P'
,
'G'
,
'2'
},
const
char
codecs
[][
4
]
=
{
{
'M'
,
'P'
,
'G'
,
'2'
},
{
'X'
,
'V'
,
'I'
,
'D'
},
{
'X'
,
'V'
,
'I'
,
'D'
},
{
'M'
,
'J'
,
'P'
,
'G'
},
{
'M'
,
'J'
,
'P'
,
'G'
},
...
@@ -670,16 +661,10 @@ void CV_SpecificVideoFileTest::run(int)
...
@@ -670,16 +661,10 @@ void CV_SpecificVideoFileTest::run(int)
{
{
SpecificVideoFileTest
(
ts
->
get_data_path
(),
codecs
[
i
]);
SpecificVideoFileTest
(
ts
->
get_data_path
(),
codecs
[
i
]);
}
}
#endif
#endif
}
}
void
CV_SpecificVideoCameraTest
::
run
(
int
)
void
CV_SpecificVideoCameraTest
::
run
(
int
)
{
{
#if defined WIN32 || (defined __linux__ && !defined ANDROID)
#if !defined HAVE_GSTREAMER || defined HAVE_GSTREAMER_APP
const
char
codecs
[][
4
]
=
{
{
'M'
,
'P'
,
'G'
,
'2'
},
const
char
codecs
[][
4
]
=
{
{
'M'
,
'P'
,
'G'
,
'2'
},
{
'X'
,
'V'
,
'I'
,
'D'
},
{
'X'
,
'V'
,
'I'
,
'D'
},
{
'M'
,
'J'
,
'P'
,
'G'
},
{
'M'
,
'J'
,
'P'
,
'G'
},
...
@@ -691,9 +676,6 @@ void CV_SpecificVideoCameraTest::run(int)
...
@@ -691,9 +676,6 @@ void CV_SpecificVideoCameraTest::run(int)
{
{
SpecificVideoCameraTest
(
ts
->
get_data_path
(),
codecs
[
i
]);
SpecificVideoCameraTest
(
ts
->
get_data_path
(),
codecs
[
i
]);
}
}
#endif
#endif
}
}
TEST
(
Highgui_Image
,
regression
)
{
CV_ImageTest
test
;
test
.
safe_run
();
}
TEST
(
Highgui_Image
,
regression
)
{
CV_ImageTest
test
;
test
.
safe_run
();
}
...
...
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