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
a87d12eb
Commit
a87d12eb
authored
Jun 06, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added CV_CAP_PROP_PVAPI_MULTICASTIP property (thanks to Stefano Fabri for the patch)
parent
fcd2a0c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
highgui_c.h
modules/highgui/include/opencv2/highgui/highgui_c.h
+2
-1
cap_pvapi.cpp
modules/highgui/src/cap_pvapi.cpp
+18
-1
No files found.
modules/highgui/include/opencv2/highgui/highgui_c.h
View file @
a87d12eb
...
@@ -365,7 +365,8 @@ enum
...
@@ -365,7 +365,8 @@ enum
CV_CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH
=
CV_CAP_OPENNI_DEPTH_GENERATOR
+
CV_CAP_PROP_OPENNI_FOCAL_LENGTH
,
CV_CAP_OPENNI_DEPTH_GENERATOR_FOCAL_LENGTH
=
CV_CAP_OPENNI_DEPTH_GENERATOR
+
CV_CAP_PROP_OPENNI_FOCAL_LENGTH
,
// Properties of cameras available through GStreamer interface
// Properties of cameras available through GStreamer interface
CV_CAP_GSTREAMER_QUEUE_LENGTH
=
200
// default is 1
CV_CAP_GSTREAMER_QUEUE_LENGTH
=
200
,
// default is 1
CV_CAP_PROP_PVAPI_MULTICASTIP
=
300
// ip for anable multicast master mode. 0 for disable multicast
};
};
enum
enum
...
...
modules/highgui/src/cap_pvapi.cpp
View file @
a87d12eb
...
@@ -308,10 +308,27 @@ bool CvCaptureCAM_PvAPI::setProperty( int property_id, double value )
...
@@ -308,10 +308,27 @@ bool CvCaptureCAM_PvAPI::setProperty( int property_id, double value )
monocrome
=
false
;
monocrome
=
false
;
break
;
break
;
case
CV_CAP_PROP_EXPOSURE
:
case
CV_CAP_PROP_EXPOSURE
:
if
(
PvAttrUint32Set
(
Camera
.
Handle
,
"ExposureValue"
,(
tPvUint32
)
value
)
==
ePvErrSuccess
)
if
((
PvAttrUint32Set
(
Camera
.
Handle
,
"ExposureValue"
,(
tPvUint32
)
value
)
==
ePvErrSuccess
))
break
;
break
;
else
else
return
false
;
return
false
;
case
CV_CAP_PROP_PVAPI_MULTICASTIP
:
if
(
value
==-
1
)
{
if
((
PvAttrEnumSet
(
Camera
.
Handle
,
"MulticastEnable"
,
"Off"
)
==
ePvErrSuccess
))
break
;
else
return
false
;
}
else
{
string
ip
=
cv
::
format
(
"%d.%d.%d.%d"
,
(
value
>>
24
)
&
255
,
(
value
>>
16
)
&
255
,
(
value
>>
8
)
&
255
,
value
&
255
);
if
((
PvAttrEnumSet
(
Camera
.
Handle
,
"MulticastEnable"
,
"On"
)
==
ePvErrSuccess
)
&&
(
PvAttrStringSet
(
priv
->
handle
,
"MulticastIPAddress"
,
ip
.
c_str
())
==
ePvErrSuccess
))
{
break
;
else
return
false
;
}
}
default
:
default
:
return
false
;
return
false
;
}
}
...
...
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