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
b3b80bc3
Commit
b3b80bc3
authored
Feb 05, 2012
by
Andrey Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compile under linux
parent
eac055a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
test_positioning.cpp
modules/highgui/test/test_positioning.cpp
+7
-8
No files found.
modules/highgui/test/test_positioning.cpp
View file @
b3b80bc3
...
...
@@ -24,7 +24,7 @@ private:
class
CV_VideoProgressivePositioningTest
:
public
CV_VideoPositioningTest
{
public
:
CV_VideoProgressivePositioningTest
::
CV_VideoProgressivePositioningTest
()
:
CV_VideoPositioningTest
()
{};
CV_VideoProgressivePositioningTest
()
:
CV_VideoPositioningTest
()
{};
~
CV_VideoProgressivePositioningTest
();
void
run
(
int
);
};
...
...
@@ -32,7 +32,7 @@ public:
class
CV_VideoRandomPositioningTest
:
public
CV_VideoPositioningTest
{
public
:
CV_VideoRandomPositioningTest
::
CV_VideoRandomPositioningTest
()
:
CV_VideoPositioningTest
()
{};
CV_VideoRandomPositioningTest
()
:
CV_VideoPositioningTest
()
{};
~
CV_VideoRandomPositioningTest
();
void
run
(
int
);
};
...
...
@@ -48,7 +48,7 @@ void CV_VideoPositioningTest::generate_idx_seq(CvCapture* cap, int method)
int
N
=
(
int
)
cvGetCaptureProperty
(
cap
,
CV_CAP_PROP_FRAME_COUNT
);
switch
(
method
)
{
case
NAVIGATION_METHOD
:
:
PROGRESSIVE
:
case
PROGRESSIVE
:
{
int
pos
=
1
,
step
=
20
;
do
...
...
@@ -59,7 +59,7 @@ void CV_VideoPositioningTest::generate_idx_seq(CvCapture* cap, int method)
while
(
pos
<=
N
);
break
;
}
case
NAVIGATION_METHOD
:
:
RANDOM
:
case
RANDOM
:
{
RNG
rng
(
N
);
idx
.
clear
();
...
...
@@ -143,13 +143,13 @@ void CV_VideoPositioningTest::run_test(int method)
void
CV_VideoProgressivePositioningTest
::
run
(
int
)
{
run_test
(
NAVIGATION_METHOD
::
PROGRESSIVE
);
run_test
(
PROGRESSIVE
);
}
void
CV_VideoRandomPositioningTest
::
run
(
int
)
{
run_test
(
NAVIGATION_METHOD
::
RANDOM
);
run_test
(
RANDOM
);
}
TEST
(
HighguiPositioning
,
progressive
)
{
CV_VideoProgressivePositioningTest
test
;
test
.
safe_run
();
}
TEST
(
HighguiPositioning
,
random
)
{
CV_VideoRandomPositioningTest
test
;
test
.
safe_run
();
}
\ No newline at end of file
TEST
(
HighguiPositioning
,
random
)
{
CV_VideoRandomPositioningTest
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