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
13bb236a
Commit
13bb236a
authored
Nov 16, 2013
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some warnings
parent
8f6f9c3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
cap_openni.cpp
modules/highgui/src/cap_openni.cpp
+7
-4
No files found.
modules/highgui/src/cap_openni.cpp
View file @
13bb236a
...
@@ -172,6 +172,9 @@ public:
...
@@ -172,6 +172,9 @@ public:
xn
::
ImageGenerator
&
imageGenerator
;
xn
::
ImageGenerator
&
imageGenerator
;
private
:
private
:
ApproximateSyncGrabber
(
const
ApproximateSyncGrabber
&
);
ApproximateSyncGrabber
&
operator
=
(
ApproximateSyncGrabber
&
);
int
maxBufferSize
;
int
maxBufferSize
;
bool
isCircleBuffer
;
bool
isCircleBuffer
;
int
maxTimeDuration
;
int
maxTimeDuration
;
...
@@ -215,7 +218,7 @@ private:
...
@@ -215,7 +218,7 @@ private:
virtual
bool
grab
(
xn
::
DepthMetaData
&
depthMetaData
,
virtual
bool
grab
(
xn
::
DepthMetaData
&
depthMetaData
,
xn
::
ImageMetaData
&
imageMetaData
)
xn
::
ImageMetaData
&
imageMetaData
)
{
{
while
(
1
)
for
(;;
)
{
{
if
(
!
isDepthFilled
)
if
(
!
isDepthFilled
)
isDepthFilled
=
popDepthMetaData
(
depth
);
isDepthFilled
=
popDepthMetaData
(
depth
);
...
@@ -971,7 +974,7 @@ double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx )
...
@@ -971,7 +974,7 @@ double CvCapture_OpenNI::getDepthGeneratorProperty( int propIdx )
propValue
=
depthGenerator
.
GetAlternativeViewPointCap
().
IsViewPointAs
(
imageGenerator
)
?
1.0
:
0.0
;
propValue
=
depthGenerator
.
GetAlternativeViewPointCap
().
IsViewPointAs
(
imageGenerator
)
?
1.0
:
0.0
;
break
;
break
;
case
CV_CAP_PROP_POS_MSEC
:
case
CV_CAP_PROP_POS_MSEC
:
propValue
=
depthGenerator
.
GetTimestamp
();
propValue
=
(
double
)
depthGenerator
.
GetTimestamp
();
break
;
break
;
case
CV_CAP_PROP_POS_FRAMES
:
case
CV_CAP_PROP_POS_FRAMES
:
propValue
=
depthGenerator
.
GetFrameID
();
propValue
=
depthGenerator
.
GetFrameID
();
...
@@ -1067,10 +1070,10 @@ double CvCapture_OpenNI::getImageGeneratorProperty( int propIdx )
...
@@ -1067,10 +1070,10 @@ double CvCapture_OpenNI::getImageGeneratorProperty( int propIdx )
propValue
=
mode
.
nFPS
;
propValue
=
mode
.
nFPS
;
break
;
break
;
case
CV_CAP_PROP_POS_MSEC
:
case
CV_CAP_PROP_POS_MSEC
:
propValue
=
imageGenerator
.
GetTimestamp
();
propValue
=
(
double
)
imageGenerator
.
GetTimestamp
();
break
;
break
;
case
CV_CAP_PROP_POS_FRAMES
:
case
CV_CAP_PROP_POS_FRAMES
:
propValue
=
imageGenerator
.
GetFrameID
();
propValue
=
(
double
)
imageGenerator
.
GetFrameID
();
break
;
break
;
default
:
default
:
{
{
...
...
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