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
cac2e9bc
Commit
cac2e9bc
authored
Oct 31, 2010
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation errors under GCC
parent
d661b8e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
devmem2d.hpp
modules/gpu/include/opencv2/gpu/devmem2d.hpp
+4
-4
No files found.
modules/gpu/include/opencv2/gpu/devmem2d.hpp
View file @
cac2e9bc
...
...
@@ -95,17 +95,17 @@ namespace cv
__CV_GPU_HOST_DEVICE__
T
*
ptr
(
int
y
=
0
)
{
return
(
T
*
)(
(
char
*
)
data
+
y
*
step
);
}
__CV_GPU_HOST_DEVICE__
const
T
*
ptr
(
int
y
=
0
)
const
{
return
(
const
T
*
)(
(
const
char
*
)
data
+
y
*
step
);
}
};
template
<
bool
>
struct
StaticCheck
;
template
<>
struct
StaticCheck
<
true
>
{};
template
<
typename
T
>
struct
PtrElemStep_
:
public
PtrStep_
<
T
>
{
PtrElemStep_
(
const
DevMem2D_
<
T
>&
mem
)
:
PtrStep_
<
T
>
(
mem
)
{
step
/=
elem_size
;
this
->
step
/=
PtrStep_
<
T
>::
elem_size
;
}
private
:
template
<
bool
>
struct
StaticCheck
;
template
<>
struct
StaticCheck
<
true
>
{};
StaticCheck
<
256
%
sizeof
(
T
)
==
0
>
ElemStepTypeCheck
;
};
...
...
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