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
9cf301e2
Commit
9cf301e2
authored
Sep 17, 2013
by
Alexander Smorkalov
Committed by
OpenCV Buildbot
Sep 17, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1449 from SpecLad:dc1394-095
parents
8853d19e
671e5e39
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
cvconfig.h.cmake
cmake/templates/cvconfig.h.cmake
+0
-3
cap_dc1394.cpp
modules/highgui/src/cap_dc1394.cpp
+3
-15
No files found.
cmake/templates/cvconfig.h.cmake
View file @
9cf301e2
...
...
@@ -49,9 +49,6 @@
/* IEEE1394 capturing support */
#cmakedefine HAVE_DC1394
/* libdc1394 0.9.4 or 0.9.5 */
#cmakedefine HAVE_DC1394_095
/* IEEE1394 capturing support - libdc1394 v2.x */
#cmakedefine HAVE_DC1394_2
...
...
modules/highgui/src/cap_dc1394.cpp
View file @
9cf301e2
...
...
@@ -296,11 +296,7 @@ static CvCaptureCAM_DC1394 * icvCaptureFromCAM_DC1394 (int index)
if
(
pcap
->
format
!=
FORMAT_SCALABLE_IMAGE_SIZE
)
{
// everything except Format 7
if
(
dc1394_dma_setup_capture
(
pcap
->
handle
,
pcap
->
camera
->
node
,
index
+
1
/*channel*/
,
pcap
->
format
,
pcap
->
mode
,
SPEED_400
,
pcap
->
frame_rate
,
NUM_BUFFERS
,
#ifdef HAVE_DC1394_095
0
/*do_extra_buffering*/
,
#endif
1
/*DROP_FRAMES*/
,
pcap
->
frame_rate
,
NUM_BUFFERS
,
1
/*drop_frames*/
,
pcap
->
device_name
,
pcap
->
camera
)
!=
DC1394_SUCCESS
)
{
fprintf
(
stderr
,
"%s:%d: Failed to setup DMA capture with VIDEO1394
\n
"
,
__FILE__
,
__LINE__
);
goto
ERROR
;
...
...
@@ -311,11 +307,7 @@ static CvCaptureCAM_DC1394 * icvCaptureFromCAM_DC1394 (int index)
pcap
->
mode
,
SPEED_400
,
QUERY_FROM_CAMERA
,
(
unsigned
int
)
QUERY_FROM_CAMERA
,
(
unsigned
int
)
QUERY_FROM_CAMERA
,
(
unsigned
int
)
QUERY_FROM_CAMERA
,
(
unsigned
int
)
QUERY_FROM_CAMERA
,
NUM_BUFFERS
,
#ifdef HAVE_DC1394_095
0
/*do_extra_buffering*/
,
#endif
1
/*DROP_FRAMES*/
,
NUM_BUFFERS
,
1
/*drop_frames*/
,
pcap
->
device_name
,
pcap
->
camera
)
!=
DC1394_SUCCESS
)
{
fprintf
(
stderr
,
"%s:%d: Failed to setup DMA capture with VIDEO1394
\n
"
,
__FILE__
,
__LINE__
);
goto
ERROR
;
...
...
@@ -661,11 +653,7 @@ icvSetModeCAM_DC1394( CvCaptureCAM_DC1394 * capture, int mode ){
dc1394_dma_unlisten
(
capture
->
handle
,
capture
->
camera
);
if
(
dc1394_dma_setup_capture
(
capture
->
handle
,
capture
->
camera
->
node
,
capture
->
camera
->
channel
/*channel*/
,
format
,
mode
,
SPEED_400
,
frame_rate
,
NUM_BUFFERS
,
#ifdef HAVE_DC1394_095
0
/*do_extra_buffering*/
,
#endif
1
/*DROP_FRAMES*/
,
frame_rate
,
NUM_BUFFERS
,
1
/*drop_frames*/
,
capture
->
device_name
,
capture
->
camera
)
!=
DC1394_SUCCESS
)
{
fprintf
(
stderr
,
"%s:%d: Failed to setup DMA capture with VIDEO1394
\n
"
,
__FILE__
,
__LINE__
);
return
0
;
...
...
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