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
25870fa6
Commit
25870fa6
authored
Jan 14, 2014
by
Nick D'Ademo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PVAPI enums to highgui.hpp
Added "PVAPI_" prefix to FrameStartTriggerMode definition
parent
3cf5c0b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
highgui.hpp
modules/highgui/include/opencv2/highgui.hpp
+9
-1
highgui_c.h
modules/highgui/include/opencv2/highgui/highgui_c.h
+5
-7
cap_pvapi.cpp
modules/highgui/src/cap_pvapi.cpp
+2
-2
No files found.
modules/highgui/include/opencv2/highgui.hpp
View file @
25870fa6
...
...
@@ -385,9 +385,17 @@ enum { CAP_PROP_GSTREAMER_QUEUE_LENGTH = 200 // default is 1
// PVAPI
enum
{
CAP_PROP_PVAPI_MULTICASTIP
=
300
// ip for anable multicast master mode. 0 for disable multicast
enum
{
CAP_PROP_PVAPI_MULTICASTIP
=
300
// ip for anable multicast master mode. 0 for disable multicast
CAP_PROP_PVAPI_FRAMESTARTTRIGGERMODE
=
301
// FrameStartTriggerMode: Determines how a frame is initiated
};
// PVAPI: FrameStartTriggerMode
enum
{
CAP_PVAPI_FSTRIGMODE_FREERUN
=
0
,
// Freerun
CAP_PVAPI_FSTRIGMODE_SYNCIN1
=
1
,
// SyncIn1
CAP_PVAPI_FSTRIGMODE_SYNCIN2
=
2
,
// SyncIn2
CAP_PVAPI_FSTRIGMODE_FIXEDRATE
=
3
,
// FixedRate
CAP_PVAPI_FSTRIGMODE_SOFTWARE
=
4
// Software
};
// Properties of cameras available through XIMEA SDK interface
enum
{
CAP_PROP_XI_DOWNSAMPLING
=
400
,
// Change image resolution by binning or skipping.
...
...
modules/highgui/include/opencv2/highgui/highgui_c.h
View file @
25870fa6
...
...
@@ -420,13 +420,11 @@ enum
CV_CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION_ON
=
CV_CAP_OPENNI_DEPTH_GENERATOR_REGISTRATION
,
// Properties of cameras available through GStreamer interface
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
CV_CAP_PROP_FRAMESTARTTRIGGERMODE
=
301
,
// 0: For Freerun
// 1: For SyncIn1
// 2: For SyncIn2
// 3: For Fixedrate
// 4: For Software
CV_CAP_GSTREAMER_QUEUE_LENGTH
=
200
,
// default is 1
// PVAPI
CV_CAP_PROP_PVAPI_MULTICASTIP
=
300
,
// ip for anable multicast master mode. 0 for disable multicast
CV_CAP_PROP_PVAPI_FRAMESTARTTRIGGERMODE
=
301
,
// FrameStartTriggerMode: Determines how a frame is initiated
// Properties of cameras available through XIMEA SDK interface
CV_CAP_PROP_XI_DOWNSAMPLING
=
400
,
// Change image resolution by binning or skipping.
...
...
modules/highgui/src/cap_pvapi.cpp
View file @
25870fa6
...
...
@@ -285,7 +285,7 @@ double CvCaptureCAM_PvAPI::getProperty( int property_id )
case
CV_CAP_PROP_GAIN
:
PvAttrUint32Get
(
Camera
.
Handle
,
"GainValue"
,
&
nTemp
);
return
(
double
)
nTemp
;
case
CV_CAP_PROP_FRAMESTARTTRIGGERMODE
:
case
CV_CAP_PROP_
PVAPI_
FRAMESTARTTRIGGERMODE
:
char
triggerMode
[
256
];
PvAttrEnumGet
(
Camera
.
Handle
,
"FrameStartTriggerMode"
,
triggerMode
,
256
,
NULL
);
if
(
strcmp
(
triggerMode
,
"Freerun"
)
==
0
)
...
...
@@ -388,7 +388,7 @@ bool CvCaptureCAM_PvAPI::setProperty( int property_id, double value )
return
false
;
}
break
;
case
CV_CAP_PROP_FRAMESTARTTRIGGERMODE
:
case
CV_CAP_PROP_
PVAPI_
FRAMESTARTTRIGGERMODE
:
tPvErr
error
;
if
(
value
==
0
)
error
=
PvAttrEnumSet
(
Camera
.
Handle
,
"FrameStartTriggerMode"
,
"Freerun"
);
...
...
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