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
a419ecfd
Commit
a419ecfd
authored
Jun 24, 2010
by
Stefano Fabri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return false if cannot adapt packed size with mtu max of network adapter
parent
686737e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cap_pvapi.cpp
modules/highgui/src/cap_pvapi.cpp
+2
-1
No files found.
modules/highgui/src/cap_pvapi.cpp
View file @
a419ecfd
...
@@ -186,7 +186,8 @@ bool CvCaptureCAM_PvAPI::open( int index )
...
@@ -186,7 +186,8 @@ bool CvCaptureCAM_PvAPI::open( int index )
//PvAttrEnumGet(Camera.Handle, "pixelFormat", pixelFormat,256,NULL);
//PvAttrEnumGet(Camera.Handle, "pixelFormat", pixelFormat,256,NULL);
maxSize
=
8228
;
maxSize
=
8228
;
PvAttrUint32Get
(
Camera
.
Handle
,
"PacketSize"
,
&
maxSize
);
PvAttrUint32Get
(
Camera
.
Handle
,
"PacketSize"
,
&
maxSize
);
PvCaptureAdjustPacketSize
(
Camera
.
Handle
,
maxSize
);
if
(
PvCaptureAdjustPacketSize
(
Camera
.
Handle
,
maxSize
)
!=
ePvErrSuccess
)
return
false
;
//printf ("Pixel Format %s %d %d\n ", pixelFormat,frameWidth,frameHeight);
//printf ("Pixel Format %s %d %d\n ", pixelFormat,frameWidth,frameHeight);
if
(
strncmp
(
pixelFormat
,
"Mono8"
,
NULL
)
==
0
)
{
if
(
strncmp
(
pixelFormat
,
"Mono8"
,
NULL
)
==
0
)
{
grayframe
=
cvCreateImage
(
cvSize
((
int
)
frameWidth
,
(
int
)
frameHeight
),
IPL_DEPTH_8U
,
1
);
grayframe
=
cvCreateImage
(
cvSize
((
int
)
frameWidth
,
(
int
)
frameHeight
),
IPL_DEPTH_8U
,
1
);
...
...
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